forked from nemomobile/qtquickcontrols-nemo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[themedaemon] load default icon fi icon not found
- Loading branch information
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
** | ||
** Copyright (C) 2013 Jolla Ltd. | ||
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). | ||
** Copyright (C) 2022 Chupligin Sergey (NeoChapay) <[email protected]> | ||
** Copyright (C) 2022-2024 Chupligin Sergey (NeoChapay) <[email protected]> | ||
** | ||
** This file is part of the Qt Components project. | ||
** | ||
|
@@ -46,6 +46,10 @@ | |
#include <QDirIterator> | ||
#include <QSettings> | ||
|
||
#ifndef QT_INSTALL_QML | ||
#error QT_INSTALL_QML is not set! | ||
#endif | ||
|
||
MLocalThemeDaemonClient::MLocalThemeDaemonClient(const QString& testPath, QObject* parent) | ||
: MAbstractThemeDaemonClient(parent) | ||
, m_pixmapCache() | ||
|
@@ -148,6 +152,8 @@ QPixmap MLocalThemeDaemonClient::requestPixmap(const QString& id, const QSize& r | |
const QImage image = readImage(parts.at(0)); | ||
if (!image.isNull()) { | ||
pixmap = QPixmap::fromImage(image); | ||
} else { | ||
pixmap = QPixmap::fromImage(QImage(QString::fromUtf8(QT_INSTALL_QML) + "/Nemo/Controls/images/no-icon.png")); | ||
} | ||
if (parts.length() > 1) | ||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) | ||
|