1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "cookpanelbutton.h" #include "ui_cookpanelbutton.h" CookPanelButton::CookPanelButton(QWidget *parent) : QWidget(parent), ui(new Ui::CookPanelButton) { ui->setupUi(this); } CookPanelButton::~CookPanelButton() { delete ui; } void CookPanelButton::setText(QString text) { ui->pushButton->setText(text); }