[rkward-cvs] SF.net SVN: rkward:[2581] trunk/rkward/rkward/windows/ detachedwindowcontainer.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Jul 28 12:19:16 UTC 2009


Revision: 2581
          http://rkward.svn.sourceforge.net/rkward/?rev=2581&view=rev
Author:   tfry
Date:     2009-07-28 12:19:16 +0000 (Tue, 28 Jul 2009)

Log Message:
-----------
Whoops. First create the actions, then load the xml. Else the actions do not become visible.

Modified Paths:
--------------
    trunk/rkward/rkward/windows/detachedwindowcontainer.cpp

Modified: trunk/rkward/rkward/windows/detachedwindowcontainer.cpp
===================================================================
--- trunk/rkward/rkward/windows/detachedwindowcontainer.cpp	2009-07-28 11:16:02 UTC (rev 2580)
+++ trunk/rkward/rkward/windows/detachedwindowcontainer.cpp	2009-07-28 12:19:16 UTC (rev 2581)
@@ -38,6 +38,12 @@
 DetachedWindowContainer::DetachedWindowContainer (RKMDIWindow *widget_to_capture) : KParts::MainWindow  () {
 	RK_TRACE (APP);
 
+	actionCollection ()->addAction (KStandardAction::Close, "dwindow_close", this, SLOT(close()));
+
+	QAction *reattach = actionCollection ()->addAction ("dwindow_attach", this, SLOT(slotReattach()));
+	reattach->setText (i18n ("Attach to main window"));
+	reattach->setIcon (RKStandardIcons::getIcon (RKStandardIcons::ActionAttachWindow));
+
 	setHelpMenuEnabled (false);
 // create own GUI
 	setXMLFile ("detachedwindowcontainer.rc");
@@ -45,12 +51,6 @@
 	statusBar ()->hide ();
 	createShellGUI ();
 
-	actionCollection ()->addAction (KStandardAction::Close, "dwindow_close", this, SLOT(close()));
-
-	QAction *reattach = actionCollection ()->addAction ("dwindow_attach", this, SLOT(slotReattach()));
-	reattach->setText (i18n ("Attach to main window"));
-	reattach->setIcon (RKStandardIcons::getIcon (RKStandardIcons::ActionAttachWindow));
-
 // copy main window toolbar settings
 	QMap<QString, Qt::ToolButtonStyle> main_window_toolbar_styles;
 	foreach (KToolBar *bar, RKWardMainWindow::getMain ()->toolBars ()) {


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