summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/imageview.cpp
Side-by-side diff
Diffstat (limited to 'noncore/graphics/opie-eye/gui/imageview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/imageview.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.cpp b/noncore/graphics/opie-eye/gui/imageview.cpp
index b919ca8..cda1a96 100644
--- a/noncore/graphics/opie-eye/gui/imageview.cpp
+++ b/noncore/graphics/opie-eye/gui/imageview.cpp
@@ -5,4 +5,4 @@
#include <opie2/okeyconfigwidget.h>
+#include <opie2/oresource.h>
-#include <qpe/resource.h>
#include <qpe/qpeapplication.h>
@@ -165,4 +165,4 @@ void ImageView::initKeys()
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("View Image Info"), "imageviewinfo",
- Resource::loadPixmap("1to1"), ViewInfo,
- Opie::Core::OKeyPair(Qt::Key_I,0),
+ Opie::Core::OResource::loadPixmap("1to1", Opie::Core::OResource::SmallIcon),
+ ViewInfo, Opie::Core::OKeyPair(Qt::Key_I,0),
this, SLOT(slotShowImageInfo())));
@@ -170,8 +170,8 @@ void ImageView::initKeys()
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Toggle autorotate"), "imageautorotate",
- Resource::loadPixmap("rotate"), Autorotate,
- Opie::Core::OKeyPair(Qt::Key_R,0),
+ Opie::Core::OResource::loadPixmap("rotate", Opie::Core::OResource::SmallIcon),
+ Autorotate, Opie::Core::OKeyPair(Qt::Key_R,0),
this, SIGNAL(toggleAutorotate())));
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Toggle autoscale"), "imageautoscale",
- Resource::loadPixmap("1to1"), Autoscale,
- Opie::Core::OKeyPair(Qt::Key_S,0),
+ Opie::Core::OResource::loadPixmap("1to1", Opie::Core::OResource::SmallIcon),
+ Autoscale, Opie::Core::OKeyPair(Qt::Key_S,0),
this, SIGNAL(toggleAutoscale())));
@@ -179,16 +179,16 @@ void ImageView::initKeys()
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Switch to next image"), "imageshownext",
- Resource::loadPixmap("forward"), ShowNext,
- Opie::Core::OKeyPair(Qt::Key_Return,0),
+ Opie::Core::OResource::loadPixmap("forward", Opie::Core::OResource::SmallIcon),
+ ShowNext, Opie::Core::OKeyPair(Qt::Key_Return,0),
this, SIGNAL(dispNext())));
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Switch to previous image"), "imageshowprev",
- Resource::loadPixmap("back"), ShowPrevious,
- Opie::Core::OKeyPair(Qt::Key_P,0),
+ Opie::Core::OResource::loadPixmap("back", Opie::Core::OResource::SmallIcon),
+ ShowPrevious, Opie::Core::OKeyPair(Qt::Key_P,0),
this, SIGNAL(dispPrev())));
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Toggle fullscreen"), "imagefullscreen",
- Resource::loadPixmap("fullscreen"), FullScreen,
- Opie::Core::OKeyPair(Qt::Key_F,0),
+ Opie::Core::OResource::loadPixmap("fullscreen", Opie::Core::OResource::SmallIcon),
+ FullScreen, Opie::Core::OKeyPair(Qt::Key_F,0),
this, SIGNAL(toggleFullScreen())));
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Toggle thumbnail"), "imagezoomer",
- Resource::loadPixmap("mag"), Zoomer,
- Opie::Core::OKeyPair(Qt::Key_T,0),
+ Opie::Core::OResource::loadPixmap("mag", Opie::Core::OResource::SmallIcon),
+ Zoomer, Opie::Core::OKeyPair(Qt::Key_T,0),
this, SIGNAL(toggleZoomer())));
@@ -196,8 +196,8 @@ void ImageView::initKeys()
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Increase brightness"), "incbrightness",
- Resource::loadPixmap("up"), Incbrightness,
- Opie::Core::OKeyPair(Qt::Key_B,0),
+ Opie::Core::OResource::loadPixmap("up", Opie::Core::OResource::SmallIcon),
+ Incbrightness, Opie::Core::OKeyPair(Qt::Key_B,0),
this, SIGNAL(incBrightness())));
m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("Decrease brightness"), "decbrightness",
- Resource::loadPixmap("down"), Decbrightness,
- Opie::Core::OKeyPair(Qt::Key_D,0),
+ Opie::Core::OResource::loadPixmap("down", Opie::Core::OResource::SmallIcon),
+ Decbrightness, Opie::Core::OKeyPair(Qt::Key_D,0),
this, SIGNAL(decBrightness())));