diff --git a/examples/basic/basic.pro b/examples/basic/basic.pro new file mode 100755 index 0000000..b7af16c --- /dev/null +++ b/examples/basic/basic.pro @@ -0,0 +1,5 @@ +# Single Application implementation +include(../../singleapplication.pri) +DEFINES += QAPPLICATION_CLASS=QCoreApplication + +SOURCES += main.cpp diff --git a/examples/basic/main.cpp b/examples/basic/main.cpp new file mode 100755 index 0000000..4787d1c --- /dev/null +++ b/examples/basic/main.cpp @@ -0,0 +1,9 @@ +#include + +int main(int argc, char *argv[]) +{ + // Allow secondary instances + SingleApplication app( argc, argv ); + + return app.exec(); +}