[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/libs/plasma/widgets
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2008-01-13 5:33:06
Message-ID: 1200202386.208527.18648.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 760630 by aseigo:
icons moving doesn't trigger a click action
M +3 -0 icon.cpp
M +1 -0 icon_p.h
--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/icon.cpp #760629:760630
@@ -963,6 +963,7 @@
}
d->states |= Private::PressedState;
+ d->clickStartPos = scenePos();
bool handled = false;
foreach (IconAction *action, d->cornerActions) {
@@ -1016,6 +1017,8 @@
}
}
+ handled = d->clickStartPos != scenePos();
+
if (!handled) {
if (boundingRect().contains(event->pos())) {
emit clicked();
--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/icon_p.h #760629:760630
@@ -174,6 +174,7 @@
bool invertLayout;
bool drawBg;
QSizeF currentSize;
+ QPointF clickStartPos;
QList<IconAction*> cornerActions;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic