summaryrefslogtreecommitdiffstats
path: root/kio/kfile/tests/kcustommenueditortest.cpp
blob: 1cd4cb291d8590a1cefd22dd71fd77a97ff1a3f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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", true);
  KCustomMenuEditor editor(0);
  KConfig *cfg = new KConfig("kdesktop_custom_menu2");
  editor.load(cfg);
  if (editor.exec())
  {
     editor.save(cfg);
     cfg->sync();
  }
}