-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmainpanel.cpp
30 lines (22 loc) · 926 Bytes
/
mainpanel.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "mainpanel.h"
#include "mainwindow.h"
MainPanel::MainPanel(QMainWindow *parent) : QWidget(parent)
{
mainWindow = parent;
//setStyleSheet("QWidget {background: blue; }");
displayContainer = new DisplayContainer(mainWindow);
//displayContainer->display->setStyleSheet(QString("QFrame { background-color: #32414B; padding: 0px; } "));
displayContainer->display->setStyleSheet(QString("QFrame {background-color: %1; padding: 0px;}").arg(MW->config()->bm->color.name()));
controlPanel = new ControlPanel(mainWindow);
QGridLayout *layout = new QGridLayout();
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(5);
layout->addWidget(displayContainer, 0, 0, 1, 1);
layout->addWidget(controlPanel, 1, 0, 1, 1);
layout->setRowStretch(0, 10);
//layout->setRowStretch(4, 0);
setLayout(layout);
}
void MainPanel::resizeEvent(QResizeEvent *event)
{
}