19#include <klocalizedstring.h>
48 QGridLayout* buttonLayout =
new QGridLayout(
this);
49 buttonLayout->setContentsMargins(0, 0, 0, 0);
50 buttonLayout->setSpacing(0);
55 d->
tagToolButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
56 d->
tagToolButton->setToolTip(i18nc(
"@info:tooltip",
"<qt>Show the tag box options.</qt>"));
60 QMenu* popup =
new QMenu(
this);
63 menuStyle->setParent(popup);
64 popup->setStyle(menuStyle);
82 popup->addSeparator();
91 popup->addSeparator();
113 activate = !activate;
120 if (deletedTag.isNull() || deletedTag->name().isEmpty()) {
138 d->
deleteTagAction->setProperty(
"currentTag", QVariant::fromValue<KisTagSP>(tag));
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void setPlaceholderText(const QString &clickMessage)
void setIcon(const QIcon &icon)
void setCloseParentOnTrigger(bool closeParent)
void setVisible(bool showAction)
#define koIcon(name)
Use these macros for icons without any issues.