From kde-core-devel Sun Jan 23 12:05:15 2005 From: Albert Astals Cid Date: Sun, 23 Jan 2005 12:05:15 +0000 To: kde-core-devel Subject: setupGui strange interaction with KConfig Message-Id: <200501231305.15573.astals11 () terra ! es> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=110648189707758 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_7L58BaPaTs47dsi" --Boundary-00=_7L58BaPaTs47dsi Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, look at this test, calling setupGui changes the group of the KInstance KConfig object. That is causing, for example bug http://bugs.kde.org/show_bug.cgi?id=97229 so i don't know if it may be causing any bug more. Is this the correct behaviour? If it is it could be at least documented on the api. Thanks Albert --Boundary-00=_7L58BaPaTs47dsi Content-Type: text/x-c++src; charset="us-ascii"; name="test.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test.cpp" #include #include #include #include #include #include class myWindow : public KMainWindow { public: myWindow() : KMainWindow() { KConfig *cfg = kapp -> config(); kdDebug() << cfg -> group() << endl; setupGUI(); cfg = kapp -> config(); kdDebug() << cfg -> group() << endl; show(); } }; int main(int argc, char *argv[]) { KAboutData about("test", "test", "0", "test", KAboutData::License_GPL); KCmdLineArgs::init(argc, argv, &about); KApplication app; app.setTopWidget(new myWindow()); return app.exec(); } --Boundary-00=_7L58BaPaTs47dsi--