author | zecke <zecke> | 2004-10-08 21:34:32 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-08 21:34:32 (UTC) |
commit | 16afa90172c9b1facaa8888780ed8bb8bd93598c (patch) (unidiff) | |
tree | 3642810e51ceaacff2f6fba499e78d0cff0121b9 | |
parent | 0c3966672847b3b81c96c942727178368ac70e65 (diff) | |
download | opie-16afa90172c9b1facaa8888780ed8bb8bd93598c.zip opie-16afa90172c9b1facaa8888780ed8bb8bd93598c.tar.gz opie-16afa90172c9b1facaa8888780ed8bb8bd93598c.tar.bz2 |
Use KeyPressed instead of KeyReleased for the Accelerator
Key in the Image Display component. This fixes the
double 'next' problem when going from the browser to the viewer/display
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageview.cpp | 14 |
1 files changed, 10 insertions, 4 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 | |||
@@ -26,7 +26,5 @@ ImageView::~ImageView() | |||
26 | { | 26 | { |
27 | odebug << "Delete Imageview" << oendl; | 27 | odebug << "Delete Imageview" << oendl; |
28 | if (m_viewManager) { | 28 | delete m_viewManager; |
29 | delete m_viewManager; | ||
30 | } | ||
31 | } | 29 | } |
32 | 30 | ||
@@ -56,4 +54,12 @@ void ImageView::initKeys() | |||
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, |
@@ -147,5 +153,5 @@ void ImageView::focusInEvent(QFocusEvent *) | |||
147 | } | 153 | } |
148 | 154 | ||
149 | void ImageView::hide() | 155 | void ImageView::hide() |
150 | { | 156 | { |
151 | if (fullScreen()) { | 157 | if (fullScreen()) { |