diff options
Diffstat (limited to 'desktop-editor/main.cpp')
-rw-r--r-- | desktop-editor/main.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop-editor/main.cpp b/desktop-editor/main.cpp new file mode 100644 index 00000000..58cc3620 --- /dev/null +++ b/desktop-editor/main.cpp @@ -0,0 +1,19 @@ +#include <QApplication> +#include "dialog.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + Dialog w; + if (argc==2) { + w.LoadDesktopFile(QString(argv[1]).simplified()); + } else if (argc==3) { + w.Initialise(QString(argv[1]).simplified()); + w.LoadDesktopFile(QString(argv[2]).simplified()); + } else { + w.MissingInputs(); + } + w.show(); + + return a.exec(); +} |