-rw-r--r-- | noncore/graphics/opie-eye/gui/imageinfoui.cpp | 2 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageinfoui.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.cpp b/noncore/graphics/opie-eye/gui/imageinfoui.cpp index 039dfa3..d56d65a 100644 --- a/noncore/graphics/opie-eye/gui/imageinfoui.cpp +++ b/noncore/graphics/opie-eye/gui/imageinfoui.cpp @@ -58,17 +58,17 @@ void imageinfo::initKeys() odebug << "init imageinfo keys" << oendl; m_cfg = new Opie::Core::OConfig("phunkview"); m_cfg->setGroup("Zecke_view" ); Opie::Ui::OKeyPair::List lst; lst.append( Opie::Ui::OKeyPair::upArrowKey() ); lst.append( Opie::Ui::OKeyPair::downArrowKey() ); lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); -// lst.append( Opie::Ui::OKeyPair::returnKey() ); + lst.append( Opie::Ui::OKeyPair::returnKey() ); m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "Imageinfo-KeyBoard-Config", lst, false,this, "keyconfig name" ); m_viewManager->addKeyConfig( Opie::Ui::OKeyConfigItem(tr("View Full Image"), "view", Resource::loadPixmap("1to1"), ViewItem, Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), this, SLOT(slotShowImage()))); m_viewManager->load(); diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.h b/noncore/graphics/opie-eye/gui/imageinfoui.h index 0a5e183..0ffa423 100644 --- a/noncore/graphics/opie-eye/gui/imageinfoui.h +++ b/noncore/graphics/opie-eye/gui/imageinfoui.h @@ -26,27 +26,28 @@ class imageinfo : public QWidget Q_OBJECT enum ActionIds { ViewItem }; public: imageinfo( QWidget* parent = 0, const char* name = 0, WFlags fl =0); imageinfo(const QString&_path, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); - ~imageinfo(); + virtual ~imageinfo(); void setDestructiveClose(); Opie::Ui::OKeyConfigManager* manager(); signals: void dispImage(const QString&); + void sig_return(); public slots: - void setPath( const QString& path ); - void slotShowImage(); + virtual void setPath( const QString& path ); + virtual void slotShowImage(); private: void init(const char* name); protected: QLabel* PixmapLabel1; QLabel* fnameLabel; QFrame* Line1; |