From af17830d7962b46a17421f00cf80aa3926e88a11 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 23 Oct 2017 21:45:11 +0200 Subject: [PATCH] QtSupport: Use FancyLineEdit as Welcome Page search filter edit FancyLineEdit has fancier features than plain QLineEdit. Change-Id: Ibec542641abdf0e8f762bf7bfc6a5bac2fd056e5 Reviewed-by: Eike Ziller --- src/plugins/qtsupport/gettingstartedwelcomepage.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/qtsupport/gettingstartedwelcomepage.cpp b/src/plugins/qtsupport/gettingstartedwelcomepage.cpp index 23872cdf61c..045222fe77f 100644 --- a/src/plugins/qtsupport/gettingstartedwelcomepage.cpp +++ b/src/plugins/qtsupport/gettingstartedwelcomepage.cpp @@ -257,18 +257,19 @@ public: QPalette pal; pal.setColor(QPalette::Base, themeColor(Theme::Welcome_BackgroundColor)); - m_lineEdit = new QLineEdit; + m_lineEdit = new FancyLineEdit; + m_lineEdit->setFiltering(true); m_lineEdit->setFrame(false); m_lineEdit->setFont(sizedFont(14, this)); m_lineEdit->setAttribute(Qt::WA_MacShowFocusRect, false); m_lineEdit->setPalette(pal); auto box = new QHBoxLayout(this); - box->setContentsMargins(15, 3, 15, 3); + box->setContentsMargins(10, 3, 3, 3); box->addWidget(m_lineEdit); } - QLineEdit *m_lineEdit; + FancyLineEdit *m_lineEdit; }; class GridView : public QTableView