[rkward-cvs] SF.net SVN: rkward:[3218] trunk/rkward/rkward/rkward.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Fri Dec 3 15:35:04 UTC 2010
Revision: 3218
http://rkward.svn.sourceforge.net/rkward/?rev=3218&view=rev
Author: tfry
Date: 2010-12-03 15:35:04 +0000 (Fri, 03 Dec 2010)
Log Message:
-----------
Add (commented out) code to print the structure of menu items.
Modified Paths:
--------------
trunk/rkward/rkward/rkward.cpp
Modified: trunk/rkward/rkward/rkward.cpp
===================================================================
--- trunk/rkward/rkward/rkward.cpp 2010-12-03 15:33:15 UTC (rev 3217)
+++ trunk/rkward/rkward/rkward.cpp 2010-12-03 15:35:04 UTC (rev 3218)
@@ -392,6 +392,17 @@
run_menu_dummy->setEnabled (false);
}
+/*
+// debug code: prints out all current actions
+void printActionsRecursive (QAction* action, const QString &prefix) {
+ if (action->menu ()) {
+ foreach (QAction *a, action->menu ()->actions ()) printActionsRecursive (a, prefix + action->text () + "->");
+ } else {
+ qDebug ("%s", qPrintable (prefix + action->text ()));
+ }
+}
+*/
+
void RKWardMainWindow::partChanged (KParts::Part *part) {
RK_TRACE (APP);
@@ -408,6 +419,11 @@
view_menu_dummy->setVisible (menu && (menu->isEmpty ()));
menu = dynamic_cast<QMenu*>(guiFactory ()->container ("run", this));
run_menu_dummy->setVisible (menu && (menu->isEmpty ()));
+
+/*
+ // debug code: prints out all current actions
+ foreach (QAction *action, menuBar ()->actions ()) printActionsRecursive (action, QString ());
+*/
}
void RKWardMainWindow::initStatusBar () {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list