summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index b45dc8fa..73f6c784 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -41,6 +41,8 @@ FindBar::FindBar(KMainWindow *parent)
addWidget( label );
m_lineEdit = new KLineEdit();
+ m_lineEdit->setMaximumWidth( 200 );
+
connect( m_lineEdit, SIGNAL( returnPressed() ), parent, SLOT( slotFindNext() ) );
connect( m_lineEdit, SIGNAL( textEdited(const QString &) ), parent, SLOT( slotFindNext() ) );
addWidget( m_lineEdit );
@@ -48,9 +50,6 @@ FindBar::FindBar(KMainWindow *parent)
addAction( KStandardAction::findNext(parent, SLOT( slotFindNext() ) , this ) );
addAction( KStandardAction::findPrev(parent, SLOT( slotFindPrevious() ) , this ) );
- QLabel *spaceLabel = new QLabel(" "); // FIXME
- addWidget( spaceLabel );
-
// we start off hidden
hide();
}