summaryrefslogtreecommitdiff
path: root/src/findbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-30 16:52:23 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-30 16:52:23 +0100
commit9cbf281f4df98feec4325dac050cc633e3bbfe2f (patch)
tree0627ff26b4899e5c0757bfea8fbd1248f63ef691 /src/findbar.cpp
parentSolved history && bookmarks menu problems.. (diff)
downloadrekonq-9cbf281f4df98feec4325dac050cc633e3bbfe2f.tar.xz
Fixed FindBar crash && refactored to look like kate searchbar
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r--src/findbar.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/findbar.cpp b/src/findbar.cpp
index 73f6c784..382f9b09 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -24,12 +24,12 @@
#include <KAction>
#include <KIcon>
#include <KToolBar>
-#include <KStandardAction>
#include <KDialog>
+#include <KPushButton>
#include <QtGui>
-FindBar::FindBar(KMainWindow *parent)
+FindBar::FindBar(KXmlGuiWindow *parent)
: KToolBar( "FindBar" , parent, Qt::BottomToolBarArea, true, false, false)
, m_lineEdit(0)
{
@@ -47,8 +47,15 @@ FindBar::FindBar(KMainWindow *parent)
connect( m_lineEdit, SIGNAL( textEdited(const QString &) ), parent, SLOT( slotFindNext() ) );
addWidget( m_lineEdit );
- addAction( KStandardAction::findNext(parent, SLOT( slotFindNext() ) , this ) );
- addAction( KStandardAction::findPrev(parent, SLOT( slotFindPrevious() ) , this ) );
+ KPushButton *findNext = new KPushButton( KIcon("go-down"), "&Next", this );
+ KPushButton *findPrev = new KPushButton( KIcon("go-up"), "&Previous", this );
+ // perhaps we don't need working on style..
+// findNext->setStyle();
+// findPrev->setStyle();
+ connect( findNext, SIGNAL( clicked() ), parent, SLOT( slotFindNext() ) );
+ connect( findPrev, SIGNAL( clicked() ), parent, SLOT( slotFindPrevious() ) );
+ addWidget( findNext );
+ addWidget( findPrev );
// we start off hidden
hide();