From d2527038a35ed47be4ef727ce25726ae3c27c56d Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 24 Dec 2018 14:47:48 +0100 Subject: [PATCH] Polishment of the simple Search dialog Based on a patch by racoon. --- src/frontends/qt4/GuiSearch.cpp | 3 + src/frontends/qt4/ui/SearchUi.ui | 314 ++++++++++++++----------------- 2 files changed, 148 insertions(+), 169 deletions(-) diff --git a/src/frontends/qt4/GuiSearch.cpp b/src/frontends/qt4/GuiSearch.cpp index dd1a002fed..02678fae60 100644 --- a/src/frontends/qt4/GuiSearch.cpp +++ b/src/frontends/qt4/GuiSearch.cpp @@ -47,6 +47,9 @@ GuiSearch::GuiSearch(GuiView & lv) { setupUi(this); + // fix height to minimum + setFixedHeight(sizeHint().height()); + connect(buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(slotButtonBox(QAbstractButton *))); connect(findPB, SIGNAL(clicked()), this, SLOT(findClicked())); diff --git a/src/frontends/qt4/ui/SearchUi.ui b/src/frontends/qt4/ui/SearchUi.ui index ebc00e3cfc..d4bd85ea59 100644 --- a/src/frontends/qt4/ui/SearchUi.ui +++ b/src/frontends/qt4/ui/SearchUi.ui @@ -7,57 +7,102 @@ 0 0 416 - 197 + 228 + + + 0 + 0 + + true - + - - - Fi&nd: - - - findCO - - - - - - - - 0 - 0 - - - - Qt::StrongFocus - - - true - - - 666 - - - QComboBox::InsertAtTop - - - false - - - false - - - - - - + + + + + + + Fi&nd: + + + findCO + + + + + + + + 0 + 0 + + + + Qt::StrongFocus + + + true + + + 666 + + + QComboBox::InsertAtTop + + + false + + + false + + + + + + + Repla&ce with: + + + replaceCO + + + + + + + + 0 + 0 + + + + true + + + 666 + + + QComboBox::InsertAtTop + + + false + + + false + + + + + + false @@ -70,7 +115,7 @@ - + false @@ -80,141 +125,72 @@ - - - - false - - - Replace &All - - + + + + + + Case &sensitive[[search]] + + + + + + + Match w&hole words only + + + + + + + Search &backwards + + + + - - - - QDialogButtonBox::Close - - + + + + + + false + + + Replace &All + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 89 + 13 + + + + + - - - - Repla&ce with: - - - replaceCO + + + + QDialogButtonBox::Close - - - - - 0 - 0 - - - - true - - - 666 - - - QComboBox::InsertAtTop - - - false - - - false - - - - - - - Case &sensitive[[search]] - - - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - Match w&hole words only - - - - - - - Search &backwards - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - findCO - replaceCO - caseCB - wordsCB - backwardsCB - findPB - replacePB - replaceallPB - qt_i18n.h -- 2.39.5