summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kolistview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index e0e138e..341f473 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -1207,17 +1207,17 @@ void KOListViewListView::contentsMouseMoveEvent(QMouseEvent *e)
void KOListViewListView::popupMenu()
{
mPopupTimer->stop();
- //qDebug("HUUUUUUUUUUUUUUUUUUUU ");
QMouseEvent* e = new QMouseEvent( QEvent::MouseButtonPress, mEventPos ,mEventGlobalPos, RightButton , RightButton );
- QApplication::postEvent( this->viewport(), e );
+ QApplication::postEvent( this->viewport(), e );
+
}
void KOListViewListView::contentsMousePressEvent(QMouseEvent *e)
{
- //qDebug("contentsMousePressEvent++++ ");
+ //qDebug("contentsMousePressEvent++++ %d %d", e->pos().y(), e->globalPos().y());
mYMousePos = mapToGlobal( (e->pos())).y();
if ( e->button() == LeftButton ) {
mPopupTimer->start( 600 );
- mEventPos = e->pos();
+ mEventPos = contentsToViewport(e->pos());
mEventGlobalPos = e->globalPos();
}
KListView::contentsMousePressEvent( e );
@@ -1242,7 +1242,7 @@ void KOListViewListView::contentsMouseMoveEvent(QMouseEvent *e)
if ( diff > 15 )
mPopupTimer->stop();
else {
- mEventPos = e->pos();
+ mEventPos = contentsToViewport(e->pos());
mEventGlobalPos = e->globalPos();
}
KListView::contentsMouseMoveEvent(e);