Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -78,13 +78,17 @@ void WindowScriptingInterface::setFocus() { · 77 unmodified lines | |||
| 78 | }); | 78 | }); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | void WindowScriptingInterface::raiseMainWindow() { | 81 | void WindowScriptingInterface::raise() { |
| 82 | // It's forbidden to call raise() from another thread. | 82 | // It's forbidden to call raise() from another thread. |
| 83 | qApp->postLambdaEvent([] { | 83 | qApp->postLambdaEvent([] { |
| 84 | qApp->raise(); | 84 | qApp->raise(); |
| 85 | }); | 85 | }); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | void WindowScriptingInterface::raiseMainWindow() { | ||
| 89 | raise(); | ||
| 90 | } | ||
| 91 | |||
| 88 | /// Display an alert box | 92 | /// Display an alert box |
| 89 | /// \param const QString& message message to display | 93 | /// \param const QString& message message to display |
| 90 | /// \return QScriptValue::UndefinedValue | 94 | /// \return QScriptValue::UndefinedValue |