| 6 | #include <QTimer> |
| 7 | |
| 8 | MainWindow::MainWindow(QWidget *parent) |
| 9 | : QMainWindow(parent) |
| 10 | , ui(new Ui::MainWindow) |
| 11 | { |
| 12 | ui->setupUi(this); |
| 13 | ui->centralwidget->setMouseTracking(true); |
| 14 | QTimer *t = new QTimer(this); |
| 15 | connect(t, &QTimer::timeout, this, [=](){Init();}); |
| 16 | t->setSingleShot(true); |
| 17 | t->start(10); |
| 18 | |
| 19 | connect(ui->adjSizeBtn, &QPushButton::clicked, this, [=](){controlWindowScale();}); |
| 20 | } |
| 21 | |
| 22 | void MainWindow::Init(){ |
| 23 | /* Create main widget and set mask, style sheet and shadow */ |
nothing calls this directly
no outgoing calls
no test coverage detected