Commit ddf691fb authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Port away from deprecated QDesktopWidget::numScreens

parent 265b85fd
......@@ -32,7 +32,7 @@ DlgPresentation::DlgPresentation(QWidget *parent)
QStringList choices;
choices.append(i18nc("@label:listbox The current screen, for the presentation mode", "Current Screen"));
choices.append(i18nc("@label:listbox The default screen for the presentation mode", "Default Screen"));
const int screenCount = QApplication::desktop()->numScreens();
const int screenCount = QGuiApplication::screens().count();
for (int i = 0; i < screenCount; ++i) {
choices.append(i18nc("@label:listbox %1 is the screen number (0, 1, ...)", "Screen %1", i));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment