aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index 754e6b4..f677ba6 100644
--- a/README.md
+++ b/README.md
@@ -39,11 +39,12 @@ The SingleApplication class implements a `showUp()` signal. You can bind to that
Note that since `SingleApplication` extends the `QApplication` class you can do the following:
```cpp
// Truly raise your window.
-QObject::connect(&app, &SingleApplication::showUp, [&]{
- window.show();
- window.raise();
- window.activateWindow();
- }); // 'window' is your QWindow instance
+QObject::connect(&app, &SingleApplication::showUp, [&]
+{
+ window.show();
+ window.raise();
+ window.activateWindow();
+}); // 'window' is your QWindow instance
```
Using `QApplication::instance()` is a neat way to get the `SingleApplication` instance at any place in your program.