diff options
author | william <william.os4y@gmail.com> | 2015-03-26 21:54:09 +0100 |
---|---|---|
committer | william <william.os4y@gmail.com> | 2015-03-26 21:54:09 +0100 |
commit | c168111955fdaac4b546e82138de5e75545cfb07 (patch) | |
tree | 00494a256c392032a19821b9bbc83de0ac66bc1a /lumina-fileinfo/main.cpp | |
parent | Merge remote-tracking branch 'upstream/master' into deskEditor (diff) | |
download | lumina-c168111955fdaac4b546e82138de5e75545cfb07.tar.gz lumina-c168111955fdaac4b546e82138de5e75545cfb07.tar.bz2 lumina-c168111955fdaac4b546e82138de5e75545cfb07.zip |
put the name lumina-fileinfo
Diffstat (limited to 'lumina-fileinfo/main.cpp')
-rw-r--r-- | lumina-fileinfo/main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lumina-fileinfo/main.cpp b/lumina-fileinfo/main.cpp new file mode 100644 index 00000000..deefd46f --- /dev/null +++ b/lumina-fileinfo/main.cpp @@ -0,0 +1,20 @@ +#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(); + } + a.setApplicationName("Lumina File Info"); + w.show(); + + return a.exec(); +} |