Browse Source

thermostat: main dialog: make bigger buttons

master
rico rico 5 years ago
parent
commit
3fc691f019
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      soft/thermostat/src/mainwindow.cpp

+ 8
- 0
soft/thermostat/src/mainwindow.cpp View File

@ -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);


Loading…
Cancel
Save