Refresh display resolutions when opening the settings page

This commit is contained in:
Cameron Gutman
2020-12-07 19:58:42 -06:00
parent 8381039f97
commit 53e3cd143e
3 changed files with 46 additions and 26 deletions
+1
View File
@@ -23,6 +23,7 @@ public:
Q_PROPERTY(QSize maximumResolution MEMBER maximumResolution CONSTANT)
Q_PROPERTY(QString versionString MEMBER versionString CONSTANT)
Q_INVOKABLE void refreshDisplays();
Q_INVOKABLE QRect getDesktopResolution(int displayIndex);
Q_INVOKABLE QRect getNativeResolution(int displayIndex);