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.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.cpp b/noncore/graphics/opie-eye/gui/imageview.cpp index be58c72..ebdfc60 100644 --- a/noncore/graphics/opie-eye/gui/imageview.cpp +++ b/noncore/graphics/opie-eye/gui/imageview.cpp | |||
@@ -29,24 +29,25 @@ ImageView::ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name | |||
29 | m_hGroup = 0; | 29 | m_hGroup = 0; |
30 | } | 30 | } |
31 | 31 | ||
32 | void ImageView::setMenuActions(QActionGroup*hGroup,QActionGroup*nextprevGroup, QActionGroup*disptypeGroup) | 32 | void ImageView::setMenuActions(QActionGroup*hGroup,QActionGroup*nextprevGroup, QActionGroup*disptypeGroup) |
33 | { | 33 | { |
34 | m_gDisplayType = disptypeGroup; | 34 | m_gDisplayType = disptypeGroup; |
35 | m_gPrevNext = nextprevGroup; | 35 | m_gPrevNext = nextprevGroup; |
36 | m_hGroup = hGroup; | 36 | m_hGroup = hGroup; |
37 | } | 37 | } |
38 | 38 | ||
39 | ImageView::~ImageView() | 39 | ImageView::~ImageView() |
40 | { | 40 | { |
41 | odebug << "Destructor imageview" << oendl; | ||
41 | delete m_viewManager; | 42 | delete m_viewManager; |
42 | } | 43 | } |
43 | 44 | ||
44 | Opie::Core::OKeyConfigManager* ImageView::manager() | 45 | Opie::Core::OKeyConfigManager* ImageView::manager() |
45 | { | 46 | { |
46 | if (!m_viewManager) { | 47 | if (!m_viewManager) { |
47 | initKeys(); | 48 | initKeys(); |
48 | } | 49 | } |
49 | return m_viewManager; | 50 | return m_viewManager; |
50 | } | 51 | } |
51 | 52 | ||
52 | void ImageView::startSlide(int value) | 53 | void ImageView::startSlide(int value) |
@@ -68,29 +69,31 @@ void ImageView::stopSlide() | |||
68 | return; | 69 | return; |
69 | } | 70 | } |
70 | m_slideTimer->stop(); | 71 | m_slideTimer->stop(); |
71 | delete m_slideTimer; | 72 | delete m_slideTimer; |
72 | m_slideTimer = 0; | 73 | m_slideTimer = 0; |
73 | } | 74 | } |
74 | 75 | ||
75 | void ImageView::nextSlide() | 76 | void ImageView::nextSlide() |
76 | { | 77 | { |
77 | if (!m_slideTimer) { | 78 | if (!m_slideTimer) { |
78 | return; | 79 | return; |
79 | } | 80 | } |
81 | #if 0 | ||
80 | if (isHidden()) { | 82 | if (isHidden()) { |
81 | delete m_slideTimer; | 83 | delete m_slideTimer; |
82 | m_slideTimer = 0; | 84 | m_slideTimer = 0; |
83 | return; | 85 | return; |
84 | } | 86 | } |
87 | #endif | ||
85 | emit dispNext(); | 88 | emit dispNext(); |
86 | m_slideTimer->start(m_slideValue*1000,true); | 89 | m_slideTimer->start(m_slideValue*1000,true); |
87 | } | 90 | } |
88 | void ImageView::initKeys() | 91 | void ImageView::initKeys() |
89 | { | 92 | { |
90 | odebug << "init imageview keys" << oendl; | 93 | odebug << "init imageview keys" << oendl; |
91 | if (!m_cfg) { | 94 | if (!m_cfg) { |
92 | m_cfg = new Opie::Core::OConfig("opie-eye"); | 95 | m_cfg = new Opie::Core::OConfig("opie-eye"); |
93 | m_cfg->setGroup("image_view_keys" ); | 96 | m_cfg->setGroup("image_view_keys" ); |
94 | } | 97 | } |
95 | Opie::Core::OKeyPair::List lst; | 98 | Opie::Core::OKeyPair::List lst; |
96 | lst.append( Opie::Core::OKeyPair::upArrowKey() ); | 99 | lst.append( Opie::Core::OKeyPair::upArrowKey() ); |