From 871d069b8bb7347458f12cde19239e4fa9213cd2 Mon Sep 17 00:00:00 2001 From: Tsu Jan Date: Mon, 8 Oct 2018 01:20:28 +0330 Subject: [PATCH] Fix visual glitches in search-bar Closes https://github.com/lxqt/qterminal/issues/249 --- lib/SearchBar.cpp | 1 + lib/SearchBar.ui | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/SearchBar.cpp b/lib/SearchBar.cpp index 493f6ca..7a5e52b 100644 --- a/lib/SearchBar.cpp +++ b/lib/SearchBar.cpp @@ -26,6 +26,7 @@ SearchBar::SearchBar(QWidget *parent) : QWidget(parent) { widget.setupUi(this); + setAutoFillBackground(true); // make it always opaque, especially inside translucent windows connect(widget.closeButton, SIGNAL(clicked()), this, SLOT(hide())); connect(widget.searchTextEdit, SIGNAL(textChanged(QString)), this, SIGNAL(searchCriteriaChanged())); connect(widget.findPreviousButton, SIGNAL(clicked()), this, SIGNAL(findPrevious())); diff --git a/lib/SearchBar.ui b/lib/SearchBar.ui index 6e0c4e8..91947d9 100644 --- a/lib/SearchBar.ui +++ b/lib/SearchBar.ui @@ -66,16 +66,11 @@ ... - - - + QToolButton::InstantPopup - - Qt::DownArrow -