MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / MainWindow

Method MainWindow

mainwindow.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <QTimer>
7
8MainWindow::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
22void MainWindow::Init(){
23 /* Create main widget and set mask, style sheet and shadow */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected