summaryrefslogtreecommitdiff
path: root/core/apps/helpbrowser
authordrw <drw>2005-04-15 17:25:13 (UTC)
committer drw <drw>2005-04-15 17:25:13 (UTC)
commit86b1feed1ab2e47a082d974e1fcc513c59a74469 (patch) (side-by-side diff)
tree2a3965d7adf4633db6b9e1e4150b4bd374cb761d /core/apps/helpbrowser
parente2d5048b65d95ba7d658aabadece4e91f17f6310 (diff)
downloadopie-86b1feed1ab2e47a082d974e1fcc513c59a74469.zip
opie-86b1feed1ab2e47a082d974e1fcc513c59a74469.tar.gz
opie-86b1feed1ab2e47a082d974e1fcc513c59a74469.tar.bz2
Resource -> OResource
Diffstat (limited to 'core/apps/helpbrowser') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/helpbrowser/helpbrowser.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/apps/helpbrowser/helpbrowser.cpp b/core/apps/helpbrowser/helpbrowser.cpp
index 4bd9565..c2059c0 100644
--- a/core/apps/helpbrowser/helpbrowser.cpp
+++ b/core/apps/helpbrowser/helpbrowser.cpp
@@ -25,8 +25,10 @@
/* OPIE */
#include <opie2/odebug.h>
+#include <opie2/oresource.h>
+
#include <qpe/qpeapplication.h>
-#include <qpe/resource.h>
+
using namespace Opie::Core;
/* QT */
@@ -47,7 +49,7 @@ HelpBrowser::HelpBrowser( QWidget* parent, const char *name, WFlags f )
void HelpBrowser::init( const QString& _home )
{
- setIcon( Resource::loadPixmap( "HelpBrowser" ) );
+ setIcon( Opie::Core::OResource::loadPixmap( "HelpBrowser", Opie::Core::OResource::SmallIcon ) );
setBackgroundMode( PaletteButton );
browser = new MagicTextBrowser( this );
@@ -69,7 +71,8 @@ void HelpBrowser::init( const QString& _home )
// addToolBar( toolbar, "Toolbar");
QPopupMenu* go = new QPopupMenu( this );
- backAction = new QAction( tr( "Backward" ), Resource::loadIconSet( "back" ), QString::null, 0, this, 0 );
+ backAction = new QAction( tr( "Backward" ), Opie::Core::OResource::loadPixmap( "back", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( backAction, SIGNAL( activated() ), browser, SLOT( backward() ) );
connect( browser, SIGNAL( backwardAvailable(bool) ),
backAction, SLOT( setEnabled(bool) ) );
@@ -77,7 +80,8 @@ void HelpBrowser::init( const QString& _home )
backAction->addTo( toolbar );
backAction->setEnabled( FALSE );
- forwardAction = new QAction( tr( "Forward" ), Resource::loadIconSet( "forward" ), QString::null, 0, this, 0 );
+ forwardAction = new QAction( tr( "Forward" ), Opie::Core::OResource::loadPixmap( "forward", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( forwardAction, SIGNAL( activated() ), browser, SLOT( forward() ) );
connect( browser, SIGNAL( forwardAvailable(bool) ),
forwardAction, SLOT( setEnabled(bool) ) );
@@ -85,7 +89,8 @@ void HelpBrowser::init( const QString& _home )
forwardAction->addTo( toolbar );
forwardAction->setEnabled( FALSE );
- QAction *a = new QAction( tr( "Home" ), Resource::loadIconSet( "home" ), QString::null, 0, this, 0 );
+ QAction *a = new QAction( tr( "Home" ), Opie::Core::OResource::loadPixmap( "home", Opie::Core::OResource::SmallIcon ),
+ QString::null, 0, this, 0 );
connect( a, SIGNAL( activated() ), browser, SLOT( home() ) );
a->addTo( go );
a->addTo( toolbar );