aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorItay Grudev <itay+github.com@grudev.com>2020-12-17 11:47:01 +0200
committerGitHub <noreply@github.com>2020-12-17 11:47:01 +0200
commitdc8042b5db58f36e06ba54f16f38b16c5eea9053 (patch)
tree1025557f8196116bf4c262c5ec4eecaf5707094e /README.md
parentUpdate CHANGELOG.md (diff)
parentAllow adding unique userdata to instances (diff)
downloadsingleapplication-dc8042b5db58f36e06ba54f16f38b16c5eea9053.tar.xz
Merge pull request #122 from LorenDB/master
Allow adding unique userdata to instances
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d20756f..457ab33 100644
--- a/README.md
+++ b/README.md
@@ -154,7 +154,7 @@ API
### Members
```cpp
-SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 100 )
+SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 100, QString userData = QString() )
```
Depending on whether `allowSecondary` is set, this constructor may terminate
@@ -163,7 +163,7 @@ can be specified to set whether the SingleApplication block should work
user-wide or system-wide. Additionally the `Mode::SecondaryNotification` may be
used to notify the primary instance whenever a secondary instance had been
started (disabled by default). `timeout` specifies the maximum time in
-milliseconds to wait for blocking operations.
+milliseconds to wait for blocking operations. Setting `userData` provides additional data that will isolate this instance from other instances that do not have the same (or any) user data set.
*__Note:__ `argc` and `argv` may be changed as Qt removes arguments that it
recognizes.*