File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,12 +243,8 @@ elseif(UNIX) # assume xdg
243243 )
244244 list (APPEND LIB_SRC
245245 src/platform/unix /signalhandler.cpp
246- src/platform/xdg/iconlookup.cpp
247- src/platform/xdg/iconlookup.h
248246 src/platform/xdg/platform.cpp
249247 src/platform/xdg/desktopentryparser.cpp
250- src/platform/xdg/themefileparser.cpp
251- src/platform/xdg/themefileparser.h
252248 )
253249endif ()
254250
Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2022-2025 Manuel Schneider
1+ // SPDX-FileCopyrightText: 2022-2026 Manuel Schneider
22
33#include " themeicon.h"
4- #if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
5- #include " iconlookup.h"
6- #endif
74using namespace Qt ::StringLiterals;
85using namespace albert ;
96using namespace std ;
107
11-
128ThemeIcon::ThemeIcon (const QString &name)
13- : QIconIcon(
14- // https://bugreports.qt.io/browse/QTBUG-135159
15- // https://codereview.qt-project.org/c/qt/qtbase/+/634907
16- #if QT_VERSION > 0x060800
17- QIcon::fromTheme (name)
18- #else
19- QIcon (XDG::IconLookup::iconPath(name))
20- #endif
21- )
9+ : QIconIcon(QIcon::fromTheme(name))
2210 , name_(name)
2311{}
2412
@@ -30,4 +18,3 @@ QString ThemeIcon::scheme() { return u"xdg"_s; }
3018
3119unique_ptr<ThemeIcon> ThemeIcon::fromUrl (const QString &url)
3220{ return make_unique<ThemeIcon>(url.mid (scheme ().size () + 1 )); }
33-
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments