diff options
| author | 2019-02-12 23:59:24 +0100 | |
|---|---|---|
| committer | 2019-02-12 23:59:24 +0100 | |
| commit | f2051fb35b1ad49c4d940e6fbba2acc98b216e13 (patch) | |
| tree | 03117f493191d35104ac37eba72e916d41c849f2 /gui/mainwindow.cpp | |
| parent | 210a222b894caa3c8af38ccb6653db0fd8491f6e (diff) | |
| download | OneRoll-f2051fb35b1ad49c4d940e6fbba2acc98b216e13.tar.gz OneRoll-f2051fb35b1ad49c4d940e6fbba2acc98b216e13.zip | |
clang format
Diffstat (limited to 'gui/mainwindow.cpp')
| -rw-r--r-- | gui/mainwindow.cpp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 5ec6e87..5b8422e 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1,31 +1,27 @@ #include "mainwindow.h" #include "ui_mainwindow.h" - #include "diceparser.h" -MainWindow::MainWindow(QWidget *parent) : - QMainWindow(parent), - ui(new Ui::MainWindow) +MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWindow) { - ui->setupUi(this); + ui->setupUi(this); - connect(ui->m_rollButton,SIGNAL(pressed()),this,SLOT(rollDiceCommand())); - m_dieParser = new DiceParser(); + connect(ui->m_rollButton, SIGNAL(pressed()), this, SLOT(rollDiceCommand())); + m_dieParser= new DiceParser(); } MainWindow::~MainWindow() { - delete ui; + delete ui; } void MainWindow::rollDiceCommand() { - QString cmd = ui->m_cmdEdit->text(); - - if(m_dieParser->parseLine(cmd)) - { - m_dieParser->Start(); - m_dieParser->displayResult(); - } + QString cmd= ui->m_cmdEdit->text(); + if(m_dieParser->parseLine(cmd)) + { + m_dieParser->Start(); + m_dieParser->displayResult(); + } } |