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
Plasma
KScreen
Commits
529844e2
Verified
Commit
529844e2
authored
May 08, 2021
by
Alexander Lohnau
💬
Browse files
Port away from deprecated QProcess::start overload
parent
4b0f09f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcm/kcm.cpp
View file @
529844e2
...
...
@@ -355,7 +355,7 @@ void KCMKScreen::writeGlobalScale()
if
(
qFuzzyCompare
(
m_globalScale
,
1.0
))
{
// if dpi is the default (96) remove the entry rather than setting it
QProcess
proc
;
proc
.
start
(
QStringLiteral
(
"xrdb
-quiet -remove
-nocpp"
));
proc
.
start
(
QStringLiteral
(
"xrdb
"
),
{
QStringLiteral
(
"-quiet"
),
QStringLiteral
(
"-remove"
),
QStringLiteral
(
"
-nocpp"
)
}
);
if
(
proc
.
waitForStarted
())
{
proc
.
write
(
QByteArray
(
"Xft.dpi
\n
"
));
proc
.
closeWriteChannel
();
...
...
@@ -365,7 +365,7 @@ void KCMKScreen::writeGlobalScale()
}
else
{
const
int
scaleDpi
=
qRound
(
m_globalScale
*
96.0
);
QProcess
proc
;
proc
.
start
(
QStringLiteral
(
"xrdb
-quiet -merge
-nocpp"
));
proc
.
start
(
QStringLiteral
(
"xrdb
"
),
{
QStringLiteral
(
"-quiet"
),
QStringLiteral
(
"-merge"
),
QStringLiteral
(
"
-nocpp"
)
}
);
if
(
proc
.
waitForStarted
())
{
proc
.
write
(
QByteArray
(
"Xft.dpi: "
+
QString
::
number
(
scaleDpi
).
toLatin1
()));
proc
.
closeWriteChannel
();
...
...
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