10 : qPushButton(new QPushButton)
12 qPushButton->setProperty(
"type",
"nlmItem");
17 QObject::connect(qPushButton, &QPushButton::pressed, cb);
25 void init(
const QString& buttonName,
bool isEnable)
override
27 qPushButton->setText(buttonName);
28 qPushButton->setFlat(
true);
34 qPushButton->setDisabled(state);
39 return qPushButton->isEnabled();
44 qPushButton->setCheckable(
checked);
49 return qPushButton->isCheckable();
54 return qPushButton->isChecked();
59 if(
checked != qPushButton->isChecked()) {
60 qPushButton->animateClick();
66 QPushButton* qPushButton;