diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp
index aa7330950..8a993d33d 100644
--- a/src/gui/MainWindow.cpp
+++ b/src/gui/MainWindow.cpp
@@ -128,6 +128,7 @@ MainWindow::MainWindow()
? QKeySequence::Find
: QKeySequence(Qt::CTRL + Qt::Key_F);
connect(new QShortcut(seq, this), SIGNAL(activated()), m_ui->searchField, SLOT(setFocus()));
+ m_ui->searchField->setContentsMargins(5,0,5,0);
m_ui->actionEntryNew->setShortcut(Qt::CTRL + Qt::Key_N);
m_ui->actionEntryEdit->setShortcut(Qt::CTRL + Qt::Key_E);
m_ui->actionEntryDelete->setShortcut(Qt::CTRL + Qt::Key_D);
@@ -248,7 +249,8 @@ MainWindow::MainWindow()
m_ui->searchField->setPlaceholderText(tr("Type to search"));
m_ui->searchField->setEnabled(false);
- m_ui->toolBar->addWidget(m_ui->searchPanel);
+ m_ui->toolBar->addWidget(m_ui->mySpacer);
+ m_ui->toolBar->addWidget(m_ui->searchField);
m_actionMultiplexer.connect(m_ui->searchField, SIGNAL(textChanged(QString)),
SLOT(search(QString)));
QMenu* searchMenu = new QMenu(this);
diff --git a/src/gui/MainWindow.ui b/src/gui/MainWindow.ui
index cd40a86fd..7585a7549 100644
--- a/src/gui/MainWindow.ui
+++ b/src/gui/MainWindow.ui
@@ -55,34 +55,6 @@
- -
-
-
-
- 0
- 0
-
-
-
-
-
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
- -
-
-
-
-
-
-
@@ -214,6 +186,17 @@
+
+
+
+ 0
+ 0
+
+
+
+
+
+
diff --git a/src/gui/SearchWidget.ui b/src/gui/SearchWidget.ui
index 0e2121617..9f3348074 100644
--- a/src/gui/SearchWidget.ui
+++ b/src/gui/SearchWidget.ui
@@ -7,7 +7,7 @@
0
0
630
- 34
+ 16
@@ -32,10 +32,6 @@
closeSearchButton
- searchEdit
- caseSensitiveCheckBox
- searchCurrentRadioButton
- searchRootRadioButton