|
|
@ -8,6 +8,7 @@ |
|
|
|
|
|
|
|
#include <QtWidgets>
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QSizePolicy>
|
|
|
|
#include <QDateTime>
|
|
|
|
#include <QTime>
|
|
|
|
#include <QDate>
|
|
|
@ -64,6 +65,13 @@ MainWindow::MainWindow(QWidget *parent) : |
|
|
|
} |
|
|
|
update_state_btn(s->m_state); |
|
|
|
|
|
|
|
QSizePolicy *szPolicy = new QSizePolicy(QSizePolicy::Minimum, |
|
|
|
QSizePolicy::MinimumExpanding, |
|
|
|
QSizePolicy::PushButton); |
|
|
|
|
|
|
|
menu_btn->setSizePolicy(*szPolicy); |
|
|
|
m_state_btn.setSizePolicy(*szPolicy); |
|
|
|
|
|
|
|
QWidget *mainWidget = new QWidget; |
|
|
|
mainWidget->setLayout(mainLayout); |
|
|
|
|
|
|
|