-rw-r--r-- | noncore/graphics/opie-eye/gui/imageview.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.cpp b/noncore/graphics/opie-eye/gui/imageview.cpp index b4f3110..5522131 100644 --- a/noncore/graphics/opie-eye/gui/imageview.cpp +++ b/noncore/graphics/opie-eye/gui/imageview.cpp | |||
@@ -25,10 +25,8 @@ ImageView::ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name | |||
25 | ImageView::~ImageView() | 25 | ImageView::~ImageView() |
26 | { | 26 | { |
27 | odebug << "Delete Imageview" << oendl; | 27 | odebug << "Delete Imageview" << oendl; |
28 | if (m_viewManager) { | ||
29 | delete m_viewManager; | 28 | delete m_viewManager; |
30 | } | 29 | } |
31 | } | ||
32 | 30 | ||
33 | Opie::Core::OKeyConfigManager* ImageView::manager() | 31 | Opie::Core::OKeyConfigManager* ImageView::manager() |
34 | { | 32 | { |
@@ -55,6 +53,14 @@ void ImageView::initKeys() | |||
55 | m_viewManager = new Opie::Core::OKeyConfigManager(m_cfg, "image_view_keys", | 53 | m_viewManager = new Opie::Core::OKeyConfigManager(m_cfg, "image_view_keys", |
56 | lst, false,this, "image_view_keys" ); | 54 | lst, false,this, "image_view_keys" ); |
57 | 55 | ||
56 | /** | ||
57 | * Handle KeyEvents when they're pressed. This avoids problems | ||
58 | * with 'double next' on Return. | ||
59 | * The Return press would switch to this view and the return | ||
60 | * release would emit the dispNext Signal. | ||
61 | */ | ||
62 | m_viewManager->setEventMask( Opie::Core::OKeyConfigManager::MaskPressed ); | ||
63 | |||
58 | m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("View Image Info"), "imageviewinfo", | 64 | m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("View Image Info"), "imageviewinfo", |
59 | Resource::loadPixmap("1to1"), ViewInfo, | 65 | Resource::loadPixmap("1to1"), ViewInfo, |
60 | Opie::Core::OKeyPair(Qt::Key_I,0), | 66 | Opie::Core::OKeyPair(Qt::Key_I,0), |