Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F86437
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/singleapplication.h b/singleapplication.h
index 0f3c4e6..d56cd98 100644
--- a/singleapplication.h
+++ b/singleapplication.h
@@ -1,37 +1,37 @@
#ifndef SINGLE_APPLICATION_H
#define SINGLE_APPLICATION_H
// Change this to inherit from QGuiApplication or QCoreApplication
#ifndef QAPPLICATION_CLASS
#define QAPPLICATION_CLASS QCoreApplication
#endif
#define QUOTE(C) #C
#define INCLUDE_FILE(C) QUOTE(C)
#include INCLUDE_FILE(QAPPLICATION_CLASS)
class SingleApplicationPrivate;
/**
* @brief The SingleApplication class handles multipe instances of the same Application
* @see QApplication
*/
class SingleApplication : public QAPPLICATION_CLASS
{
Q_OBJECT
public:
explicit SingleApplication(int &, char *[]);
~SingleApplication();
signals:
void showUp();
- void instanceArguments(QStringList arguments);
+ void instanceArguments(const QStringList arguments);
private slots:
void slotConnectionEstablished();
private:
SingleApplicationPrivate *d_ptr;
};
#endif // SINGLE_APPLICATION_H
diff --git a/singleapplication.pri b/singleapplication.pri
index 7e4e501..8af6e67 100644
--- a/singleapplication.pri
+++ b/singleapplication.pri
@@ -1,4 +1,6 @@
HEADERS += $$PWD/singleapplication.h
SOURCES += $$PWD/singleapplication.cpp
QT *= network
+
+DEFINES += "QAPPLICATION_CLASS=QApplication"
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Sep 12, 4:22 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42908
Default Alt Text
(1 KB)
Attached To
Mode
R64 cKaiser's QSingleApplicaiton
Attached
Detach File
Event Timeline
Log In to Comment