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(); }