summaryrefslogtreecommitdiffstats
path: root/tdeio/tdefile/tests/kcustommenueditortest.cpp
blob: 97e906fbefdabdd986dc24b091eca28180bcfd35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "kcustommenueditor.h"
#include <tdeapplication.h>
#include <tdelocale.h>
#include <tdeconfig.h>

int main(int argc, char** argv)
{
  TDELocale::setMainCatalogue("tdelibs");
  TDEApplication app(argc, argv, "KCustomMenuEditorTest", true);
  KCustomMenuEditor editor(0);
  TDEConfig *cfg = new TDEConfig("kdesktop_custom_menu2");
  editor.load(cfg);
  if (editor.exec())
  {
     editor.save(cfg);
     cfg->sync();
  }
}