summaryrefslogtreecommitdiffstats
path: root/kio/kfile/tests/kcustommenueditortest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kio/kfile/tests/kcustommenueditortest.cpp')
-rw-r--r--kio/kfile/tests/kcustommenueditortest.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/kio/kfile/tests/kcustommenueditortest.cpp b/kio/kfile/tests/kcustommenueditortest.cpp
new file mode 100644
index 000000000..532297d0c
--- /dev/null
+++ b/kio/kfile/tests/kcustommenueditortest.cpp
@@ -0,0 +1,19 @@
+#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();
+ }
+}
+