BreezeIcons

breezeicons.cpp
1/*
2 This file is part of the KDE libraries
3
4 SPDX-FileCopyrightText: 2021 Christoph Cullmann <cullmann@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#include "breezeicons.h"
10
11#include <QIcon>
12
13namespace BreezeIcons
14{
15
17{
18 // ensure we fallback to breeze, if no user fallback is set
19 const QString fallbackTheme = QIcon::fallbackThemeName();
20 if (fallbackTheme.isEmpty() || fallbackTheme == QLatin1String("hicolor")) {
21 QIcon::setFallbackThemeName(QStringLiteral("breeze"));
22 }
23}
24
25}
This namespace contains utility functions to integrate the Breeze icons into your application.
void initIcons()
Ensures the Breeze icon theme is available inside the :/icons resource folder and sets it up as QIcon...
QString fallbackThemeName()
void setFallbackThemeName(const QString &name)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.