mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +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() {
|
||||
QPoint pos = QCursor::pos();
|
||||
return pos.x();
|
||||
return QCursor::pos().x();
|
||||
}
|
||||
|
||||
QScriptValue WindowScriptingInterface::getCursorPositionY() {
|
||||
QPoint pos = QCursor::pos();
|
||||
return pos.y();
|
||||
return QCursor::pos().y();
|
||||
}
|
||||
|
||||
QScriptValue WindowScriptingInterface::alert(const QString& message) {
|
||||
|
|
Loading…
Reference in a new issue