[Kita-svn] [2520] make more compatible with KDE3 versions of Kita

Back to archive index

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


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

Log Message:
-----------
make more compatible with KDE3 versions of Kita

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

Modified: kita/branches/KITA-KDE4/kita/src/threadtabwidget.cpp
===================================================================
--- kita/branches/KITA-KDE4/kita/src/threadtabwidget.cpp	2009-08-05 13:55:20 UTC (rev 2519)
+++ kita/branches/KITA-KDE4/kita/src/threadtabwidget.cpp	2009-08-05 14:09:04 UTC (rev 2520)
@@ -33,6 +33,8 @@
 {
     setXMLFile("threadtabwidgetui.rc");
 
+    m_actionList = actionCollection()->actions();
+
     setupActions();
 
     /* default view */
@@ -337,10 +339,9 @@
 
 void ThreadTabWidget::contextMenuEvent(QContextMenuEvent* e)
 {
-    QList<QAction*> list = actionCollection()->actions();
     KMenu popup;
     QAction* act;
-    foreach (act, list) {
+    foreach (act, m_actionList) {
          popup.addAction(act);
     }
     QAction* action = popup.exec(e->globalPos());

Modified: kita/branches/KITA-KDE4/kita/src/threadtabwidget.h
===================================================================
--- kita/branches/KITA-KDE4/kita/src/threadtabwidget.h	2009-08-05 13:55:20 UTC (rev 2519)
+++ kita/branches/KITA-KDE4/kita/src/threadtabwidget.h	2009-08-05 14:09:04 UTC (rev 2520)
@@ -48,6 +48,8 @@
         void setupActions();
         void contextMenuEvent(QContextMenuEvent* e);
 
+        QList<QAction*> m_actionList;
+
     public slots:
         void slotCopyText();
         void slotFocusSearchCombo();




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