diff options
author | Weblate <noreply@weblate.org> | 2018-01-02 22:18:34 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2018-01-02 22:18:34 +0000 |
commit | 4bf6d3f38634dbb517055444a22d824d6eba99d8 (patch) | |
tree | bbe3e3e511f37222cdd9db145bde2f41a35e1260 /src-qt5/src-cpp/tests/main.cpp | |
parent | Translated using Weblate (Danish) (diff) | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | lumina-4bf6d3f38634dbb517055444a22d824d6eba99d8.tar.gz lumina-4bf6d3f38634dbb517055444a22d824d6eba99d8.tar.bz2 lumina-4bf6d3f38634dbb517055444a22d824d6eba99d8.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/src-cpp/tests/main.cpp')
-rw-r--r-- | src-qt5/src-cpp/tests/main.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src-qt5/src-cpp/tests/main.cpp b/src-qt5/src-cpp/tests/main.cpp new file mode 100644 index 00000000..682c318a --- /dev/null +++ b/src-qt5/src-cpp/tests/main.cpp @@ -0,0 +1,38 @@ +#include <QDebug> +#include <QApplication> + +#include <framework-OSInterface.h> + +/* +class tester : public QObject{ + Q_OBJECT +public slots: + void finished(){ QApplication::exit(0); } + +public: + QTimer *timer; + + tester(){ + timer = new QTimer(this); + timer->setInterval(5000); + timer->setSingleShot(true); + connect(timer, SIGNAL(timeout()), this, SLOT(finished()) ); + } + +}; +*/ + +int main(int argc, char** argv){ + + QApplication A(argc,argv); + OSInterface OS; + OS.start(); + QTimer *timer = new QTimer(); + timer->setInterval(5000); + timer->setSingleShot(true); + QObject::connect(timer, SIGNAL(timeout()), &A, SLOT(quit()) ); + timer->start(); + int ret = A.exec(); + qDebug() << " - Finished"; + return ret; +} |