From d4f10f9fe446da2aff65088e5236d6ffcdd034b5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 24 Feb 2017 12:33:55 +0100 Subject: initial commit --- src/main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') 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 +#include + +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; +} -- cgit v1.2.3-55-g7522