[Kita-svn] [2523] use globalPos

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 8月 5日 (水) 23:32:56 JST


Revision: 2523
          http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2523
Author:   nogu
Date:     2009-08-05 23:32:56 +0900 (Wed, 05 Aug 2009)

Log Message:
-----------
use globalPos

Modified Paths:
--------------
    kita/branches/KITA-KDE4/kita/src/threadlistheaderview.cpp

Modified: kita/branches/KITA-KDE4/kita/src/threadlistheaderview.cpp
===================================================================
--- kita/branches/KITA-KDE4/kita/src/threadlistheaderview.cpp	2009-08-05 14:30:57 UTC (rev 2522)
+++ kita/branches/KITA-KDE4/kita/src/threadlistheaderview.cpp	2009-08-05 14:32:56 UTC (rev 2523)
@@ -10,6 +10,8 @@
 
 #include "threadlistheaderview.h"
 
+#include <QtGui/QContextMenuEvent>
+
 #include "kaction.h"
 #include "klocale.h"
 #include "kmenu.h"
@@ -59,7 +61,7 @@
     m_autoResizeAct->setCheckable(true);
 }
 
-void ThreadListHeaderView::contextMenuEvent(QContextMenuEvent * /*event*/)
+void ThreadListHeaderView::contextMenuEvent(QContextMenuEvent *event)
 {
     KMenu popup;
     for (int i = ColumnBegin; i <= ColumnEnd; i++) {
@@ -74,7 +76,7 @@
 //  m_autoResizeAct->setChecked(autoResize()); TODO
     popup.addAction(m_autoResizeAct);
 
-    QAction* action = popup.exec(QCursor::pos());
+    QAction* action = popup.exec(event->globalPos());
     if (!action) {
         return;
     }




Kita-svn メーリングリストの案内
Back to archive index