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
Plasma
Discover
Commits
a71e8465
Commit
a71e8465
authored
Jan 28, 2022
by
Laurent Montel
Browse files
Fix some qt6 compile error
parent
e08e72bf
Pipeline
#129865
passed with stage
in 1 minute and 37 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/DiscoverBackendsFactory.h
View file @
a71e8465
...
...
@@ -9,9 +9,8 @@
#include
"discovercommon_export.h"
#include
<QList>
#include
<QStringList>
class
QCommandLineParser
;
class
QStringList
;
class
AbstractResourcesBackend
;
class
DISCOVERCOMMON_EXPORT
DiscoverBackendsFactory
...
...
libdiscover/utils.h
View file @
a71e8465
...
...
@@ -122,13 +122,13 @@ static QVector<T> kSetToVector(const QSet<T> &set)
ret
.
append
(
x
);
return
ret
;
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
template
<
typename
T
>
static
QSet
<
T
>
kToSet
(
const
QVector
<
T
>
&
set
)
{
return
QSet
<
T
>
(
set
.
begin
(),
set
.
end
());
}
#endif
template
<
typename
T
>
static
QSet
<
T
>
kToSet
(
const
QList
<
T
>
&
set
)
{
...
...
notifier/main.cpp
View file @
a71e8465
...
...
@@ -26,8 +26,9 @@ int main(int argc, char **argv)
{
QApplication
app
(
argc
,
argv
);
app
.
setOrganizationDomain
(
QStringLiteral
(
"kde.org"
));
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
app
.
setAttribute
(
Qt
::
AA_UseHighDpiPixmaps
,
true
);
#endif
KCrash
::
setFlags
(
KCrash
::
AutoRestart
);
NotifierItem
notifier
;
...
...
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