Mercurial > hg > svgui
diff widgets/PluginReviewDialog.cpp @ 1478:d39db4673676 by-id
Fix a number of Qt deprecation warnings
author | Chris Cannam |
---|---|
date | Wed, 03 Jul 2019 08:55:02 +0100 |
parents | 9f9a7edd7d89 |
children | 11660e0c896f |
line wrap: on
line diff
--- a/widgets/PluginReviewDialog.cpp Tue Jul 02 19:05:45 2019 +0100 +++ b/widgets/PluginReviewDialog.cpp Wed Jul 03 08:55:02 2019 +0100 @@ -19,7 +19,7 @@ #include <QDialogButtonBox> #include <QFileInfo> #include <QHeaderView> -#include <QDesktopWidget> +#include <QScreen> #include <QApplication> #include "plugin/FeatureExtractionPluginFactory.h" @@ -129,8 +129,8 @@ int twidth = m_table->horizontalHeader()->length(); int theight = m_table->verticalHeader()->length(); - QDesktopWidget *desktop = QApplication::desktop(); - QRect available = desktop->availableGeometry(); + QScreen *screen = QGuiApplication::primaryScreen(); + QRect available = screen->availableGeometry(); int width = std::min(twidth + 30, (available.width() * 3) / 4); int height = std::min(theight + 30, (available.height() * 3) / 4);