-rw-r--r-- | korganizer/koagenda.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index ed7a443..1a24887 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -458,4 +458,12 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) mPopupPos = viewport()->mapToGlobal( me->pos() ); if (me->button() == RightButton) { + int x,y; + viewportToContents(viewportPos.x(),viewportPos.y(),x,y); + int gx,gy; + contentsToGrid(x,y,gx,gy); + mCurrentCellX = gx; + mCurrentCellY = gy; + mStartCellX = gx; + mStartCellY = gy; popupMenu(); } else if (me->button() == LeftButton) { |