File indexing completed on 2024-05-12 05:00:14

0001 #include "kcustommenueditor.h"
0002 #include <kapplication.h>
0003 #include <KLocalizedString>
0004 #include <kconfig.h>
0005 #include <kcmdlineargs.h>
0006 
0007 int main(int argc, char **argv)
0008 {
0009     KCmdLineArgs::init(argc, argv, "kcustommenueditortest", "kdelibs4", ki18n("kcustommenueditortest"), "0", ki18n("test app"));
0010     KApplication app;
0011     app.setQuitOnLastWindowClosed(false);
0012     KCustomMenuEditor editor(0);
0013     KConfig *cfg = new KConfig("kdesktop_custom_menu2");
0014     editor.load(cfg);
0015     if (editor.exec()) {
0016         editor.save(cfg);
0017         cfg->sync();
0018     }
0019     delete cfg;
0020 }
0021