[Kde-imaging] branches/extragear/kde3/libs/kipi-plugins
Valerio Fuoglio
valerio.fuoglio at kdemail.net
Thu Jun 7 05:57:29 CEST 2007
SVN commit 672427 by vfuoglio:
Skip to next or previous image can be also done with a mouse click.
Backported some code from digiKam's slideshow (thanks to Gilles).
CCMAIL: kde-imaging at kde.org
BUG: 143450
M +4 -1 NEWS
M +16 -3 slideshow/slideshow.cpp
M +15 -2 slideshow/slideshowgl.cpp
--- branches/extragear/kde3/libs/kipi-plugins/NEWS #672426:672427
@@ -5,11 +5,14 @@
Kipi-plugins NEW FEATURES
+SlideShow : Skip to next or previous image by a right or left click
+
Kipi-plugins BUG FIXING from B.K.O (http://bugs.kde.org):
001 ==> 140477 : SendImages : Ability to rename images being sent via email.
-002 ==>
+002 ==> 143450 : SlideShow : Skip to next or previous image by a right or left click
+003 ==>
v 0.1.4 beta1
----------------------------------------------------------------------------
--- branches/extragear/kde3/libs/kipi-plugins/slideshow/slideshow.cpp #672426:672427
@@ -547,13 +547,25 @@
/////////////////////////////////////////////////////////////////////////////////////////////////////
-void SlideShow::mousePressEvent(QMouseEvent *)
+void SlideShow::mousePressEvent(QMouseEvent *e)
{
if (m_endOfShow)
- close();
+ slotClose();
+
+ if (e->button() == Qt::LeftButton)
+ {
+ m_timer->stop();
+ m_toolBar->setPaused(true);
+ slotNext();
+ }
+ else if (e->button() == Qt::RightButton && m_fileIndex-1 >= 0)
+ {
+ m_timer->stop();
+ m_toolBar->setPaused(true);
+ slotPrev();
+ }
}
-
/////////////////////////////////////////////////////////////////////////////////////////////////////
void SlideShow::mouseMoveEvent(QMouseEvent *e)
@@ -1120,6 +1132,7 @@
}
+
/////////////////////////////////////////////////////////////////////////////////////////////////////
void SlideShow::startPainter(Qt::PenStyle aPen)
--- branches/extragear/kde3/libs/kipi-plugins/slideshow/slideshowgl.cpp #672426:672427
@@ -240,10 +240,23 @@
m_toolBar->keyPressEvent(event);
}
-void SlideShowGL::mousePressEvent(QMouseEvent *)
+void SlideShowGL::mousePressEvent(QMouseEvent *e)
{
if (m_endOfShow)
- close();
+ slotClose();
+
+ if (e->button() == Qt::LeftButton)
+ {
+ m_timer->stop();
+ m_toolBar->setPaused(true);
+ slotNext();
+ }
+ else if (e->button() == Qt::RightButton && m_fileIndex-1 >= 0)
+ {
+ m_timer->stop();
+ m_toolBar->setPaused(true);
+ slotPrev();
+ }
}
void SlideShowGL::mouseMoveEvent(QMouseEvent *e)
More information about the Kde-imaging
mailing list