summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-26 12:35:09 (UTC)
committer zautrix <zautrix>2005-06-26 12:35:09 (UTC)
commitd9255cd129d42abf08efc11ff9b29e831e05e803 (patch) (side-by-side diff)
tree68db283d33a569e71bdc186a36be004ff27c02b4
parentd45f07d85ab62205e07089f6e2f41b0d112ca757 (diff)
downloadkdepimpi-d9255cd129d42abf08efc11ff9b29e831e05e803.zip
kdepimpi-d9255cd129d42abf08efc11ff9b29e831e05e803.tar.gz
kdepimpi-d9255cd129d42abf08efc11ff9b29e831e05e803.tar.bz2
fixx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagenda.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index b99625c..faddac4 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -454,23 +454,27 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
blockmoveDist = blockmoveDist*2;
viewportPos = ((QWidget *)object)->mapToParent(me->pos());
} else {
viewportPos = me->pos();
}
bool objIsNotViewport = (object != viewport());
+ bool leftButt = false;
+#ifdef DESKTOP_VERSION
+ leftButt = (me->button() == LeftButton);
+#endif
switch (me->type()) {
case QEvent::MouseButtonPress:
if (me->button() == LeftButton) {
mPopupTimer->start( 600 );
mLeftMouseDown = true;
}
blockMoving = true;
startX = viewportPos.x();
startY = viewportPos.y();
mPopupPos = me->globalPos();
- if ( objIsNotViewport ) {
+ if ( objIsNotViewport && !leftButt ) {
KOAgendaItem * tempItem = (KOAgendaItem *)object;
if (mAllDayMode) {
if ( tempItem->height() > 10 ) {
int minV = tempItem->height()/4;
if ( minV > (blockmoveDist/2)-2 )
minV = (blockmoveDist/2)-2;