You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
410 B
20 lines
410 B
15 years ago
|
#include "kcustommenueditor.h"
|
||
|
#include <kapplication.h>
|
||
|
#include <klocale.h>
|
||
|
#include <kconfig.h>
|
||
|
|
||
|
int main(int argc, char** argv)
|
||
|
{
|
||
|
KLocale::setMainCatalogue("kdelibs");
|
||
|
KApplication app(argc, argv, "KCustomMenuEditorTest");
|
||
|
KCustomMenuEditor editor(0);
|
||
|
KConfig *cfg = new KConfig("kdesktop_custom_menu2");
|
||
|
editor.load(cfg);
|
||
|
if (editor.exec())
|
||
|
{
|
||
|
editor.save(cfg);
|
||
|
cfg->sync();
|
||
|
}
|
||
|
}
|
||
|
|