aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/basic/basic.pro5
-rwxr-xr-xexamples/basic/main.cpp9
2 files changed, 14 insertions, 0 deletions
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 <SingleApplication.h>
+
+int main(int argc, char *argv[])
+{
+ // Allow secondary instances
+ SingleApplication app( argc, argv );
+
+ return app.exec();
+}