author | alwin <alwin> | 2004-04-06 23:53:34 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-04-06 23:53:34 (UTC) |
commit | 5cab9e2717383faaebb44cbb57df5badc3056206 (patch) (unidiff) | |
tree | 6a46f26ec6c522c7fb77b1adecc6007750908f4b | |
parent | ec7b97a772173992aa2f781eba3fbcd76fd71789 (diff) | |
download | opie-5cab9e2717383faaebb44cbb57df5badc3056206.zip opie-5cab9e2717383faaebb44cbb57df5badc3056206.tar.gz opie-5cab9e2717383faaebb44cbb57df5badc3056206.tar.bz2 |
made methods virtual, implement a sig_return signal
-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() | |||
58 | odebug << "init imageinfo keys" << oendl; | 58 | odebug << "init imageinfo keys" << oendl; |
59 | m_cfg = new Opie::Core::OConfig("phunkview"); | 59 | m_cfg = new Opie::Core::OConfig("phunkview"); |
60 | m_cfg->setGroup("Zecke_view" ); | 60 | m_cfg->setGroup("Zecke_view" ); |
61 | Opie::Ui::OKeyPair::List lst; | 61 | Opie::Ui::OKeyPair::List lst; |
62 | lst.append( Opie::Ui::OKeyPair::upArrowKey() ); | 62 | lst.append( Opie::Ui::OKeyPair::upArrowKey() ); |
63 | lst.append( Opie::Ui::OKeyPair::downArrowKey() ); | 63 | lst.append( Opie::Ui::OKeyPair::downArrowKey() ); |
64 | lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); | 64 | lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); |
65 | lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); | 65 | lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); |
66 | // lst.append( Opie::Ui::OKeyPair::returnKey() ); | 66 | lst.append( Opie::Ui::OKeyPair::returnKey() ); |
67 | 67 | ||
68 | m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "Imageinfo-KeyBoard-Config", | 68 | m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "Imageinfo-KeyBoard-Config", |
69 | lst, false,this, "keyconfig name" ); | 69 | lst, false,this, "keyconfig name" ); |
70 | m_viewManager->addKeyConfig( Opie::Ui::OKeyConfigItem(tr("View Full Image"), "view", | 70 | m_viewManager->addKeyConfig( Opie::Ui::OKeyConfigItem(tr("View Full Image"), "view", |
71 | Resource::loadPixmap("1to1"), ViewItem, | 71 | Resource::loadPixmap("1to1"), ViewItem, |
72 | Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), | 72 | Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), |
73 | this, SLOT(slotShowImage()))); | 73 | this, SLOT(slotShowImage()))); |
74 | m_viewManager->load(); | 74 | 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 | |||
26 | Q_OBJECT | 26 | Q_OBJECT |
27 | enum ActionIds { | 27 | enum ActionIds { |
28 | ViewItem | 28 | ViewItem |
29 | }; | 29 | }; |
30 | 30 | ||
31 | public: | 31 | public: |
32 | imageinfo( QWidget* parent = 0, const char* name = 0, WFlags fl =0); | 32 | imageinfo( QWidget* parent = 0, const char* name = 0, WFlags fl =0); |
33 | imageinfo(const QString&_path, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 33 | imageinfo(const QString&_path, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
34 | ~imageinfo(); | 34 | virtual ~imageinfo(); |
35 | 35 | ||
36 | void setDestructiveClose(); | 36 | void setDestructiveClose(); |
37 | Opie::Ui::OKeyConfigManager* manager(); | 37 | Opie::Ui::OKeyConfigManager* manager(); |
38 | 38 | ||
39 | signals: | 39 | signals: |
40 | void dispImage(const QString&); | 40 | void dispImage(const QString&); |
41 | void sig_return(); | ||
41 | 42 | ||
42 | public slots: | 43 | public slots: |
43 | void setPath( const QString& path ); | 44 | virtual void setPath( const QString& path ); |
44 | void slotShowImage(); | 45 | virtual void slotShowImage(); |
45 | 46 | ||
46 | private: | 47 | private: |
47 | void init(const char* name); | 48 | void init(const char* name); |
48 | 49 | ||
49 | protected: | 50 | protected: |
50 | QLabel* PixmapLabel1; | 51 | QLabel* PixmapLabel1; |
51 | QLabel* fnameLabel; | 52 | QLabel* fnameLabel; |
52 | QFrame* Line1; | 53 | QFrame* Line1; |