diff options
| author | 2019-02-12 23:59:24 +0100 | |
|---|---|---|
| committer | 2019-02-12 23:59:24 +0100 | |
| commit | f2051fb35b1ad49c4d940e6fbba2acc98b216e13 (patch) | |
| tree | 03117f493191d35104ac37eba72e916d41c849f2 /diceroller.h | |
| parent | 210a222b894caa3c8af38ccb6653db0fd8491f6e (diff) | |
| download | OneRoll-f2051fb35b1ad49c4d940e6fbba2acc98b216e13.tar.gz OneRoll-f2051fb35b1ad49c4d940e6fbba2acc98b216e13.zip | |
clang format
Diffstat (limited to 'diceroller.h')
| -rw-r--r-- | diceroller.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/diceroller.h b/diceroller.h index ccbd8f2..eca2149 100644 --- a/diceroller.h +++ b/diceroller.h @@ -1,27 +1,27 @@ /*************************************************************************** -* Copyright (C) 2017 by Renaud Guezennec * -* http://www.rolisteam.org/contact * -* * -* Rolisteam is free software; you can redistribute it and/or modify * -* it under the terms of the GNU General Public License as published by * -* the Free Software Foundation; either version 2 of the License, or * -* (at your option) any later version. * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -* GNU General Public License for more details. * -* * -* You should have received a copy of the GNU General Public License * -* along with this program; if not, write to the * -* Free Software Foundation, Inc., * -* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * -***************************************************************************/ + * Copyright (C) 2017 by Renaud Guezennec * + * http://www.rolisteam.org/contact * + * * + * Rolisteam is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ #ifndef DICEROLLER_H #define DICEROLLER_H -#include <QObject> #include "diceparser.h" +#include <QObject> class DiceRoller : public QObject { @@ -35,15 +35,14 @@ class DiceRoller : public QObject public: DiceRoller(); - QString getDiceList() const; QString getResultStr() const; QString getCommand() const; qreal getResult() const; - void setCommand(const QString& cmd); + void setCommand(const QString& cmd); QString getError() const; - void setError(const QString &error); + void setError(const QString& error); signals: void resultChanged(); @@ -56,7 +55,8 @@ public slots: void start(); protected: - QString diceToText(QList<ExportedDiceResult> &diceList); + QString diceToText(QList<ExportedDiceResult>& diceList); + private: DiceParser m_diceparser; qreal m_result; |