Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
fe6ab870
Commit
fe6ab870
authored
Oct 29, 2022
by
Volker Krause
Browse files
Adapt to QLocale::percent() returning a QString in Qt 6
parent
bc2c014f
Pipeline
#261113
passed with stage
in 4 minutes
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/lib/slider.cpp
View file @
fe6ab870
...
...
@@ -64,7 +64,11 @@ void Slider::setValueLabel(QLabel* label, const QString& format, bool hideIfDisa
mValueFormat
.
insert
(
++
i
,
QLatin1Char
(
'L'
));
continue
;
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
mValueFormat
[
i
]
=
QLocale
().
percent
();
#else
mValueFormat
.
replace
(
i
,
1
,
QLocale
().
percent
());
#endif
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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