Remove use of fallback icons from qtutilities

Rely on icons from (bundled) icon theme instead.
This commit is contained in:
Martchus 2019-08-08 22:57:30 +02:00
parent 865b3501c4
commit 89ccc39d4b
1 changed files with 2 additions and 4 deletions

View File

@ -694,8 +694,7 @@ bool TagFieldEdit::updateValue(const TagValue &value, PreviousValueHandling prev
return updated;
}
const auto pixmap(
QIcon::fromTheme(QStringLiteral("emblem-error"), QIcon(QStringLiteral(":/qtutilities/icons/hicolor/48x48/actions/edit-error.png")))
.pixmap(16));
QIcon::fromTheme(QStringLiteral("emblem-error")).pixmap(16));
const auto text([&] {
QString text;
if (conversionError) {
@ -726,8 +725,7 @@ IconButton *TagFieldEdit::setupRestoreButton()
return m_restoreButton;
}
m_restoreButton = new IconButton(this);
m_restoreButton->setPixmap(
QIcon::fromTheme(QStringLiteral("edit-undo"), QIcon(QStringLiteral(":/qtutilities/icons/hicolor/48x48/actions/edit-menu.png"))).pixmap(16));
m_restoreButton->setPixmap(QIcon::fromTheme(QStringLiteral("edit-undo")).pixmap(16));
m_restoreButton->setToolTip(tr("Restore value as it is currently present in the file"));
connect(m_restoreButton, &IconButton::clicked, this, &TagFieldEdit::handleRestoreButtonClicked);
// ownership might be transfered to a child widget/layout