diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2008-12-30 16:56:40 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2008-12-30 16:56:40 +0100 |
commit | c0ff12b2fbfcba0f43c9cf501ff94bccaf9c7f89 (patch) | |
tree | 0627ff26b4899e5c0757bfea8fbd1248f63ef691 /src/findbar.cpp | |
parent | Ignoring .ctagsdb (diff) | |
parent | Fixed FindBar crash && refactored to look like kate searchbar (diff) | |
download | rekonq-c0ff12b2fbfcba0f43c9cf501ff94bccaf9c7f89.tar.xz |
Merge branch 'xmlgui'
Diffstat (limited to 'src/findbar.cpp')
-rw-r--r-- | src/findbar.cpp | 15 |
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(); |