summaryrefslogtreecommitdiff
path: root/src/icondelegate.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-19 01:09:19 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-22 07:34:53 -0400
commitaae6d6a5aa8d6b101fcc38388222a8a6e7ee2ec6 (patch)
tree0550b5896c9f929342d3b5fd534f17f21a7fd579 /src/icondelegate.cpp
parentf13f5e21c42b3b5bdfdc4fcab50e10abd92c8486 (diff)
replaced qWarning()
Diffstat (limited to 'src/icondelegate.cpp')
-rw-r--r--src/icondelegate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/icondelegate.cpp b/src/icondelegate.cpp
index 249dae6f..39038f3c 100644
--- a/src/icondelegate.cpp
+++ b/src/icondelegate.cpp
@@ -18,12 +18,14 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
*/
#include "icondelegate.h"
+#include <log.h>
#include <QHBoxLayout>
#include <QLabel>
#include <QPainter>
#include <QDebug>
#include <QPixmapCache>
+using namespace MOBase;
IconDelegate::IconDelegate(QObject *parent)
: QStyledItemDelegate(parent)
@@ -54,7 +56,7 @@ void IconDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
if (!QPixmapCache::find(fullIconId, &icon)) {
icon = QIcon(iconId).pixmap(iconWidth, iconWidth);
if (icon.isNull()) {
- qWarning("failed to load icon %s", qUtf8Printable(iconId));
+ log::warn("failed to load icon {}", iconId);
}
QPixmapCache::insert(fullIconId, icon);
}