summaryrefslogtreecommitdiffstats
path: root/tdeio/tdefile/tests/kcustommenueditortest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/tdefile/tests/kcustommenueditortest.cpp')
-rw-r--r--tdeio/tdefile/tests/kcustommenueditortest.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tdeio/tdefile/tests/kcustommenueditortest.cpp b/tdeio/tdefile/tests/kcustommenueditortest.cpp
new file mode 100644
index 000000000..df2c692f6
--- /dev/null
+++ b/tdeio/tdefile/tests/kcustommenueditortest.cpp
@@ -0,0 +1,19 @@
+#include "kcustommenueditor.h"
+#include <kapplication.h>
+#include <klocale.h>
+#include <tdeconfig.h>
+
+int main(int argc, char** argv)
+{
+ KLocale::setMainCatalogue("tdelibs");
+ TDEApplication app(argc, argv, "KCustomMenuEditorTest");
+ KCustomMenuEditor editor(0);
+ TDEConfig *cfg = new TDEConfig("kdesktop_custom_menu2");
+ editor.load(cfg);
+ if (editor.exec())
+ {
+ editor.save(cfg);
+ cfg->sync();
+ }
+}
+