Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -64,18 +64,6 @@ void WindowScriptingInterface::raiseMainWindow() { · 63 unmodified lines | |||
| 64 | }); | 64 | }); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void WindowScriptingInterface::setCursorPosition(int x, int y) { | ||
| 68 | QCursor::setPos(x, y); | ||
| 69 | } | ||
| 70 | |||
| 71 | QScriptValue WindowScriptingInterface::getCursorPositionX() { | ||
| 72 | return QCursor::pos().x(); | ||
| 73 | } | ||
| 74 | |||
| 75 | QScriptValue WindowScriptingInterface::getCursorPositionY() { | ||
| 76 | return QCursor::pos().y(); | ||
| 77 | } | ||
| 78 | |||
| 79 | /// Display an alert box | 67 | /// Display an alert box |
| 80 | /// \param const QString& message message to display | 68 | /// \param const QString& message message to display |
| 81 | /// \return QScriptValue::UndefinedValue | 69 | /// \return QScriptValue::UndefinedValue |