Fixes to "hide mouse on inactivity" (#5476)
The feature wasn't working when the "single window mode" was off. Changed the cursor setting to only affect the render_window and moved to a signal/slot model to show the mouse.
This commit is contained in:
parent
7ae0fc7338
commit
2f5eec3576
4 changed files with 23 additions and 15 deletions
|
@ -199,6 +199,9 @@ signals:
|
|||
*/
|
||||
void FirstFrameDisplayed();
|
||||
|
||||
/// Emitted on mouse activity. Used to signal that the mouse should be shown if it's hidden
|
||||
void MouseActivity();
|
||||
|
||||
private:
|
||||
std::pair<u32, u32> ScaleTouch(QPointF pos) const;
|
||||
void TouchBeginEvent(const QTouchEvent* event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue