summaryrefslogtreecommitdiff
path: root/src/singleinstance.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/singleinstance.h')
-rw-r--r--src/singleinstance.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/singleinstance.h b/src/singleinstance.h
index d500a056..5f6c3633 100644
--- a/src/singleinstance.h
+++ b/src/singleinstance.h
@@ -36,19 +36,9 @@ class SingleInstance : public QObject
Q_OBJECT
public:
- enum Flag
- {
- NoFlags = 0x00,
-
- // if another instance is running, run this one disconnected from the
- // shared memory
- AllowMultiple = 0x01
- };
-
- using Flags = QFlags<Flag>;
-
-
- explicit SingleInstance(Flags flags, QObject *parent = 0);
+ // `allowMultiple`: if another instance is running, run this one
+ // disconnected from the shared memory
+ explicit SingleInstance(bool allowMultiple, QObject *parent = 0);
/**
* @return true if this instance's job is to forward data to the primary
@@ -97,6 +87,4 @@ private:
};
-Q_DECLARE_OPERATORS_FOR_FLAGS(SingleInstance::Flags);
-
#endif // SINGLEINSTANCE_H