Remove own icons for button overlay
* Use "edit-clear" from icon theme instead * Other icons were only used by the tag editor but it now uses icons from the icon theme instead
This commit is contained in:
parent
95cc1a5b78
commit
8cbe2da2a2
|
@ -411,7 +411,7 @@ RoleEditor::RoleEditor(QWidget *parent)
|
|||
|
||||
auto *const button = new QToolButton(this);
|
||||
button->setToolButtonStyle(Qt::ToolButtonIconOnly);
|
||||
button->setIcon(QIcon(QStringLiteral(":/qtutilities/icons/hicolor/48x48/actions/edit-clear.png")));
|
||||
button->setIcon(QIcon::fromTheme(QStringLiteral("edit-clear")));
|
||||
button->setIconSize(QSize(8, 8));
|
||||
button->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::MinimumExpanding));
|
||||
layout->addWidget(button);
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 885 B |
Binary file not shown.
Before Width: | Height: | Size: 661 B |
Binary file not shown.
Before Width: | Height: | Size: 859 B |
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB |
|
@ -1,11 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="/qtutilities">
|
||||
<file>icons/hicolor/16x16/actions/edit-clear.png</file>
|
||||
<file>icons/hicolor/16x16/actions/edit-menu.png</file>
|
||||
<file>icons/hicolor/16x16/actions/edit-error.png</file>
|
||||
<file>icons/hicolor/48x48/actions/edit-clear.png</file>
|
||||
<file>icons/hicolor/48x48/actions/edit-menu.png</file>
|
||||
<file>icons/hicolor/48x48/actions/edit-error.png</file>
|
||||
<file alias="icons/hicolor/48x48/apps/qtcreator.svg">icons/hicolor/scalable/apps/qtcreator.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -70,10 +70,7 @@ void ButtonOverlay::setClearButtonEnabled(bool enabled)
|
|||
// enable clear button
|
||||
m_clearButton = new IconButton;
|
||||
m_clearButton->setHidden(isCleared());
|
||||
m_clearButton->setPixmap(QIcon::fromTheme(QStringLiteral("edit-clear"),
|
||||
QIcon(QStringLiteral(":/qtutilities/icons/hicolor/48x48/actions/"
|
||||
"edit-clear.png")))
|
||||
.pixmap(16));
|
||||
m_clearButton->setPixmap(QIcon::fromTheme(QStringLiteral("edit-clear")).pixmap(16));
|
||||
m_clearButton->setGeometry(0, 0, 16, 16);
|
||||
m_clearButton->setToolTip(QObject::tr("Clear"));
|
||||
QObject::connect(m_clearButton, &IconButton::clicked, std::bind(&ButtonOverlay::handleClearButtonClicked, this));
|
||||
|
|
Loading…
Reference in New Issue