Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Graphics
Okular
Commits
ddf691fb
Commit
ddf691fb
authored
Sep 24, 2020
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port away from deprecated QDesktopWidget::numScreens
parent
265b85fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
conf/dlgpresentation.cpp
conf/dlgpresentation.cpp
+1
-1
No files found.
conf/dlgpresentation.cpp
View file @
ddf691fb
...
...
@@ -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
=
Q
Gui
Application
::
screens
().
count
();
for
(
int
i
=
0
;
i
<
screenCount
;
++
i
)
{
choices
.
append
(
i18nc
(
"@label:listbox %1 is the screen number (0, 1, ...)"
,
"Screen %1"
,
i
));
}
...
...
Write
Preview
Markdown
is supported
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