[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/tests
From:       David Faure <faure () kde ! org>
Date:       2010-11-18 19:50:02
Message-ID: 20101118195002.5B333AC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1198523 by dfaure:

make it possible to use "configure toolbars" with this sample program


 M  +4 -0      kxmlguiwindowtest.cpp  


--- trunk/KDE/kdelibs/kdeui/tests/kxmlguiwindowtest.cpp #1198522:1198523
@@ -100,6 +100,10 @@
     : KXmlGuiWindow(parent)
 {
     setXMLFile(KDESRCDIR "/kxmlguiwindowtestui.rc", true);
+    // Because we use a full path in setXMLFile, we need to call setLocalXMLFile too.
+    // In your apps, just pass a relative filename to setXMLFile instead.
+    setLocalXMLFile(KStandardDirs::locateLocal("data", "kxmlguiwindowtest/kxmlguiwindowtestui.rc"));
+
     setCentralWidget(new QTextEdit(this));
     setupActions();
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic