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
Multimedia
Kdenlive
Commits
5f958b35
Commit
5f958b35
authored
Aug 04, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix compilation with KF5 5.86
parent
c71f0016
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utils/thememanager.cpp
View file @
5f958b35
...
...
@@ -20,11 +20,14 @@
#include
<KConfigGroup>
#include
<KLocalizedString>
#include
<KSharedConfig>
#include
<kconfigwidgets_version.h>
ThemeManager
::
ThemeManager
(
QObject
*
parent
)
:
KColorSchemeManager
(
parent
)
{
#if KCONFIGWIDGETS_VERSION >= QT_VERSION_CHECK(5, 89, 0)
setAutosaveChanges
(
false
);
#endif
const
auto
schemePath
(
loadCurrentPath
());
// KColorSchemeManager includes a system color scheme option that reacts to system scheme changes.
...
...
@@ -34,7 +37,11 @@ ThemeManager::ThemeManager(QObject *parent)
if
(
!
schemePath
.
isEmpty
())
{
for
(
int
i
=
1
;
i
<
model
()
->
rowCount
();
++
i
)
{
QModelIndex
index
=
model
()
->
index
(
i
,
0
);
#if KCONFIGWIDGETS_VERSION >= QT_VERSION_CHECK(5, 94, 0)
if
(
index
.
data
(
KColorSchemeModel
::
PathRole
).
toString
().
endsWith
(
schemePath
))
{
#else
if
(
index
.
data
(
Qt
::
UserRole
).
toString
().
endsWith
(
schemePath
))
{
#endif
scheme
=
index
.
data
(
Qt
::
DisplayRole
).
toString
();
}
}
...
...
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