summaryrefslogtreecommitdiff
path: root/noncore/apps/dagger/searchbar.cpp
Unidiff
Diffstat (limited to 'noncore/apps/dagger/searchbar.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/dagger/searchbar.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/apps/dagger/searchbar.cpp b/noncore/apps/dagger/searchbar.cpp
index 9953e8f..b794bfd 100644
--- a/noncore/apps/dagger/searchbar.cpp
+++ b/noncore/apps/dagger/searchbar.cpp
@@ -18,6 +18,7 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
18#include "searchbar.h" 18#include "searchbar.h"
19#include "textwidget.h" 19#include "textwidget.h"
20 20
21#include <opie2/oresource.h>
21#include <opie2/owait.h> 22#include <opie2/owait.h>
22 23
23#include <qpe/qpeapplication.h> 24#include <qpe/qpeapplication.h>
@@ -32,6 +33,8 @@ file; see the file COPYING. If not, write to the Free Software Foundation, Inc.,
32#include <regex.h> 33#include <regex.h>
33#include <versekey.h> 34#include <versekey.h>
34 35
36using Opie::Core::OResource;
37
35void searchCallback( char /*percent*/, void */*userData*/ ) 38void searchCallback( char /*percent*/, void */*userData*/ )
36{ 39{
37 qApp->processEvents(); 40 qApp->processEvents();
@@ -48,7 +51,7 @@ SearchBar::SearchBar( QMainWindow *parent )
48 connect(m_searchText, SIGNAL(textChanged(const QString &)), 51 connect(m_searchText, SIGNAL(textChanged(const QString &)),
49 this, SLOT(slotTextChanged(const QString &)) ); 52 this, SLOT(slotTextChanged(const QString &)) );
50 53
51 m_actionFind = new QAction( tr( "Find" ), Resource::loadPixmap( "find" ), QString::null, 54 m_actionFind = new QAction( tr( "Find" ), OResource::loadPixmap( "find", OResource::SmallIcon ), QString::null,
52 0, this, 0 ); 55 0, this, 0 );
53 m_actionFind->setEnabled( false ); 56 m_actionFind->setEnabled( false );
54 m_actionFind->addTo( this ); 57 m_actionFind->addTo( this );
@@ -57,7 +60,7 @@ SearchBar::SearchBar( QMainWindow *parent )
57 60
58 addSeparator(); 61 addSeparator();
59 62
60 m_actionPrev = new QAction( tr( "Previous result" ), Resource::loadPixmap( "back" ), 63 m_actionPrev = new QAction( tr( "Previous result" ), OResource::loadPixmap( "back", OResource::SmallIcon ),
61 QString::null, 0, this, 0 ); 64 QString::null, 0, this, 0 );
62 m_actionPrev->setEnabled( false ); 65 m_actionPrev->setEnabled( false );
63 m_actionPrev->addTo( this ); 66 m_actionPrev->addTo( this );
@@ -69,7 +72,7 @@ SearchBar::SearchBar( QMainWindow *parent )
69 QWhatsThis::add( m_resultList, tr( "Select the desired search result here." ) ); 72 QWhatsThis::add( m_resultList, tr( "Select the desired search result here." ) );
70 connect( m_resultList, SIGNAL(activated(const QString &)), this, SIGNAL(sigResultClicked(const QString &)) ); 73 connect( m_resultList, SIGNAL(activated(const QString &)), this, SIGNAL(sigResultClicked(const QString &)) );
71 74
72 m_actionNext = new QAction( tr( "Next result" ), Resource::loadPixmap( "forward" ), 75 m_actionNext = new QAction( tr( "Next result" ), OResource::loadPixmap( "forward", OResource::SmallIcon ),
73 QString::null, 0, this, 0 ); 76 QString::null, 0, this, 0 );
74 m_actionNext->setEnabled( false ); 77 m_actionNext->setEnabled( false );
75 m_actionNext->addTo( this ); 78 m_actionNext->addTo( this );