aboutsummaryrefslogtreecommitdiff
path: root/examples/calculator
diff options
context:
space:
mode:
Diffstat (limited to 'examples/calculator')
-rw-r--r--examples/calculator/main.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/calculator/main.cpp b/examples/calculator/main.cpp
index 7d8708b..32d8811 100644
--- a/examples/calculator/main.cpp
+++ b/examples/calculator/main.cpp
@@ -60,12 +60,10 @@ int main(int argc, char *argv[])
Calculator calc;
- QObject::connect(
- &app,
- &SingleApplication::instanceStarted,
- &calc,
- &Calculator::raise
- );
+ QObject::connect( &app, &SingleApplication::instanceStarted, [ &calc ]() {
+ calc.raise();
+ calc.activateWindow();
+ });
calc.show();