6 #include "ui_expandablebutton.h"
10 #include <QParallelAnimationGroup>
11 #include <QPropertyAnimation>
22 this->setStyleSheet(parent->styleSheet());
23 ui->pushButton->setCheckable(
true);
24 this->layout()->setSizeConstraint(QLayout::SetFixedSize);
31 ui->pushButton->setProperty(
name, value);
39 ui->pushButton->setIcon(QIcon(path));
46 ui->pushButton->setText(_text);
54 ui->pushButton->setText(_text);
60 ui->pushButton->setText(text2);
70 return ui->pushButton->isChecked();
75 ui->pushButton->setChecked(check);
81 this->setMaximumWidth(36);
88 this->setMaximumWidth(100);
89 ui->pushButton->setText(
text);
void updateStyle(QWidget *widget)