Enable using clear icon from theme
This commit is contained in:
parent
303d9ae779
commit
e32f3c9dad
|
@ -76,10 +76,10 @@ 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"),
|
||||
QIcon(QStringLiteral(":/qtutilities/icons/hicolor/48x48/actions/"
|
||||
"edit-clear.png")))
|
||||
.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