mainwindow.cpp
29 lines
| 858 B
| text/x-c
|
CppLexer
Jeandet Alexis
|
r0 | #include "mainwindow.h" | ||
#include "ui_mainwindow.h" | ||||
MainWindow::MainWindow(QWidget *parent) : | ||||
QMainWindow(parent), | ||||
ui(new Ui::MainWindow) | ||||
{ | ||||
ui->setupUi(this); | ||||
Jeandet Alexis
|
r8 | qApp->setStyleSheet("QGroupBox {\ | ||
Jeandet Alexis
|
r1 | border: 1px solid gray;\ | ||
border-radius: 9px;\ | ||||
margin-top: 0.5em;\ | ||||
}\ | ||||
\ | ||||
QGroupBox::title {\ | ||||
subcontrol-origin: margin;\ | ||||
left: 10px;\ | ||||
padding: 0 3px 0 3px;\ | ||||
Jeandet Alexis
|
r8 | }\ "); | ||
layout()->setContentsMargins(0,0,0,0); | ||||
connect(this->ui->actionQuit,SIGNAL(triggered()),this,SLOT(close())); | ||||
connect(this->ui->actionOpen,SIGNAL(triggered()),this->ui->binFileWdgt,SLOT(openFile())); | ||||
Jeandet Alexis
|
r0 | } | ||
MainWindow::~MainWindow() | ||||
{ | ||||
delete ui; | ||||
} | ||||
Jeandet Alexis
|
r8 | |||