Commit 86e2ff70 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix icon in hidpi support

parent e44bddea
......@@ -118,11 +118,11 @@ AkonadiModel::AkonadiModel(ChangeRecorder* monitor, QObject* parent)
if (!mTextIcon)
{
mTextIcon = new QPixmap(SmallIcon(QStringLiteral("dialog-information")));
mFileIcon = new QPixmap(SmallIcon(QStringLiteral("document-open")));
mCommandIcon = new QPixmap(SmallIcon(QStringLiteral("system-run")));
mEmailIcon = new QPixmap(SmallIcon(QStringLiteral("mail-message-unread")));
mAudioIcon = new QPixmap(SmallIcon(QStringLiteral("audio-x-generic")));
mTextIcon = new QPixmap(QIcon::fromTheme(QStringLiteral("dialog-information")).pixmap(16, 16));
mFileIcon = new QPixmap(QIcon::fromTheme(QStringLiteral("document-open")).pixmap(16, 16));
mCommandIcon = new QPixmap(QIcon::fromTheme(QStringLiteral("system-run")).pixmap(16, 16));
mEmailIcon = new QPixmap(QIcon::fromTheme(QStringLiteral("mail-message-unread")).pixmap(16, 16));
mAudioIcon = new QPixmap(QIcon::fromTheme(QStringLiteral("audio-x-generic")).pixmap(16, 16));
mIconSize = mTextIcon->size().expandedTo(mFileIcon->size()).expandedTo(mCommandIcon->size()).expandedTo(mEmailIcon->size()).expandedTo(mAudioIcon->size());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment