mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:57:59 +02:00
Remove extra local variable in getCursorPosition
This commit is contained in:
parent
50090c62f2
commit
3724472758
1 changed files with 2 additions and 4 deletions
|
@ -47,13 +47,11 @@ void WindowScriptingInterface::setCursorPosition(int x, int y) {
|
||||||
}
|
}
|
||||||
|
|
||||||
QScriptValue WindowScriptingInterface::getCursorPositionX() {
|
QScriptValue WindowScriptingInterface::getCursorPositionX() {
|
||||||
QPoint pos = QCursor::pos();
|
return QCursor::pos().x();
|
||||||
return pos.x();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QScriptValue WindowScriptingInterface::getCursorPositionY() {
|
QScriptValue WindowScriptingInterface::getCursorPositionY() {
|
||||||
QPoint pos = QCursor::pos();
|
return QCursor::pos().y();
|
||||||
return pos.y();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QScriptValue WindowScriptingInterface::alert(const QString& message) {
|
QScriptValue WindowScriptingInterface::alert(const QString& message) {
|
||||||
|
|
Loading…
Reference in a new issue