Added a basic usage example

This commit is contained in:
Itay Grudev 2016-08-10 02:43:30 +01:00
parent 4e5c1647cc
commit 6f585973dc
No known key found for this signature in database
GPG Key ID: 913C021BA6F9DE98
2 changed files with 14 additions and 0 deletions

5
examples/basic/basic.pro Executable file
View File

@ -0,0 +1,5 @@
# Single Application implementation
include(../../singleapplication.pri)
DEFINES += QAPPLICATION_CLASS=QCoreApplication
SOURCES += main.cpp

9
examples/basic/main.cpp Executable file
View File

@ -0,0 +1,9 @@
#include <SingleApplication.h>
int main(int argc, char *argv[])
{
// Allow secondary instances
SingleApplication app( argc, argv );
return app.exec();
}