mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2025-01-15 00:42:05 +08:00
Added a basic usage example
This commit is contained in:
parent
4e5c1647cc
commit
6f585973dc
5
examples/basic/basic.pro
Executable file
5
examples/basic/basic.pro
Executable 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
9
examples/basic/main.cpp
Executable file
@ -0,0 +1,9 @@
|
||||
#include <SingleApplication.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// Allow secondary instances
|
||||
SingleApplication app( argc, argv );
|
||||
|
||||
return app.exec();
|
||||
}
|
Loading…
Reference in New Issue
Block a user