Add SingleCoreApplication

This commit is contained in:
Jonas Kvinge
2019-01-11 01:04:13 +01:00
parent 5746ee74cf
commit c94f9073f8
11 changed files with 845 additions and 40 deletions

View File

@@ -20,18 +20,13 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#ifndef SINGLE_APPLICATION_H
#define SINGLE_APPLICATION_H
#ifndef SINGLEAPPLICATION_H
#define SINGLEAPPLICATION_H
#include <QtCore/QtGlobal>
#include <QApplication>
#include <QtNetwork/QLocalSocket>
#ifndef QAPPLICATION_CLASS
#error "QAPPLICATION_CLASS not defined."
#endif
#include QT_STRINGIFY(QAPPLICATION_CLASS)
class SingleApplicationPrivate;
/**
@@ -39,11 +34,11 @@ class SingleApplicationPrivate;
* Application
* @see QCoreApplication
*/
class SingleApplication : public QAPPLICATION_CLASS
class SingleApplication : public QApplication
{
Q_OBJECT
typedef QAPPLICATION_CLASS app_t;
typedef QApplication app_t;
public:
/**
@@ -132,4 +127,4 @@ private:
Q_DECLARE_OPERATORS_FOR_FLAGS(SingleApplication::Options)
#endif // SINGLE_APPLICATION_H
#endif // SINGLEAPPLICATION_H