diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-10-11 16:29:51 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-10-11 18:05:21 +0200 |
commit | 5efaa9ef8073bb216e3dcdbb4476f2fa7c672b76 (patch) | |
tree | 7ff8f444c66c385e26206b2143a75fec9d9eea91 /rbutil/rbutilqt/preview.h | |
parent | 4e89e0e0eaff0c86f9ff71f04860c3e210c39490 (diff) |
rbutil: Use globalPos() for getting mouse position.
globalX() / globalY() are deprecated for Qt6. Use globalPos() instead,
which gives the same result.
Change-Id: Ie0b733b88107e971de9c3e8c42434d7d47a65b76
Diffstat (limited to 'rbutil/rbutilqt/preview.h')
-rw-r--r-- | rbutil/rbutilqt/preview.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/preview.h b/rbutil/rbutilqt/preview.h index 4c51cb8031..5e43c2d9ac 100644 --- a/rbutil/rbutilqt/preview.h +++ b/rbutil/rbutilqt/preview.h @@ -66,8 +66,7 @@ private slots: private: QTimer hovertimer; - int mousex; - int mousey; + QPoint mousepos; PreviewDlg* preview; }; |