Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Okular
Commits
ddf691fb
Commit
ddf691fb
authored
Sep 24, 2020
by
Albert Astals Cid
Browse files
Port away from deprecated QDesktopWidget::numScreens
parent
265b85fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
conf/dlgpresentation.cpp
View file @
ddf691fb
...
@@ -32,7 +32,7 @@ DlgPresentation::DlgPresentation(QWidget *parent)
...
@@ -32,7 +32,7 @@ DlgPresentation::DlgPresentation(QWidget *parent)
QStringList
choices
;
QStringList
choices
;
choices
.
append
(
i18nc
(
"@label:listbox The current screen, for the presentation mode"
,
"Current Screen"
));
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"
));
choices
.
append
(
i18nc
(
"@label:listbox The default screen for the presentation mode"
,
"Default Screen"
));
const
int
screenCount
=
QApplication
::
desktop
()
->
numScreens
();
const
int
screenCount
=
Q
Gui
Application
::
screens
().
count
();
for
(
int
i
=
0
;
i
<
screenCount
;
++
i
)
{
for
(
int
i
=
0
;
i
<
screenCount
;
++
i
)
{
choices
.
append
(
i18nc
(
"@label:listbox %1 is the screen number (0, 1, ...)"
,
"Screen %1"
,
i
));
choices
.
append
(
i18nc
(
"@label:listbox %1 is the screen number (0, 1, ...)"
,
"Screen %1"
,
i
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment