diff options
author | Simon Rettberg | 2017-02-24 12:33:55 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-02-24 12:33:55 +0100 |
commit | d4f10f9fe446da2aff65088e5236d6ffcdd034b5 (patch) | |
tree | 5d7467a6f67272064619c000a14800e706368ac6 /src/main.cpp | |
download | speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.gz speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.tar.xz speedcheck-d4f10f9fe446da2aff65088e5236d6ffcdd034b5.zip |
initial commit
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..d5b71fb --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,16 @@ +#include "speedcheck.h" +#include <QApplication> +#include <QMessageBox> + +int main(int argc, char **argv) +{ + QApplication app(argc, argv); + if (argc != 2) { + QMessageBox::critical(NULL, "Error", "Need one argument: file name"); + return 1; + } + SpeedCheck main(QString::fromLocal8Bit(argv[1])); + main.show(); + app.exec(); + return 0; +} |