Diffstat (limited to 'noncore/graphics/opie-eye/gui/imageview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.cpp b/noncore/graphics/opie-eye/gui/imageview.cpp index 86db732..be58c72 100644 --- a/noncore/graphics/opie-eye/gui/imageview.cpp +++ b/noncore/graphics/opie-eye/gui/imageview.cpp | |||
@@ -33,17 +33,16 @@ void ImageView::setMenuActions(QActionGroup*hGroup,QActionGroup*nextprevGroup, Q | |||
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 << "Delete Imageview" << oendl; | ||
42 | delete m_viewManager; | 41 | delete m_viewManager; |
43 | } | 42 | } |
44 | 43 | ||
45 | Opie::Core::OKeyConfigManager* ImageView::manager() | 44 | Opie::Core::OKeyConfigManager* ImageView::manager() |
46 | { | 45 | { |
47 | if (!m_viewManager) { | 46 | if (!m_viewManager) { |
48 | initKeys(); | 47 | initKeys(); |
49 | } | 48 | } |
@@ -52,17 +51,20 @@ Opie::Core::OKeyConfigManager* ImageView::manager() | |||
52 | 51 | ||
53 | void ImageView::startSlide(int value) | 52 | void ImageView::startSlide(int value) |
54 | { | 53 | { |
55 | if (!m_slideTimer) { | 54 | if (!m_slideTimer) { |
56 | m_slideTimer = new QTimer(this); | 55 | m_slideTimer = new QTimer(this); |
57 | } | 56 | } |
58 | m_slideValue=value; | 57 | m_slideValue=value; |
59 | connect(m_slideTimer,SIGNAL(timeout()),SLOT(nextSlide())); | 58 | connect(m_slideTimer,SIGNAL(timeout()),SLOT(nextSlide())); |
60 | m_slideTimer->start(m_slideValue*1000,true); | 59 | /* this "+1" is one millisecond. with that we can setup a slideshowvalue |
60 | of 0. eg "as fast as possible". | ||
61 | */ | ||
62 | m_slideTimer->start(m_slideValue*1000+1,true); | ||
61 | } | 63 | } |
62 | 64 | ||
63 | void ImageView::stopSlide() | 65 | void ImageView::stopSlide() |
64 | { | 66 | { |
65 | if (!m_slideTimer) { | 67 | if (!m_slideTimer) { |
66 | return; | 68 | return; |
67 | } | 69 | } |
68 | m_slideTimer->stop(); | 70 | m_slideTimer->stop(); |