aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/highlightdice.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-02-12 23:59:24 +0100
committerRenaud G <renaud@rolisteam.org>2019-02-12 23:59:24 +0100
commitf2051fb35b1ad49c4d940e6fbba2acc98b216e13 (patch)
tree03117f493191d35104ac37eba72e916d41c849f2 /highlightdice.cpp
parent210a222b894caa3c8af38ccb6653db0fd8491f6e (diff)
downloadOneRoll-f2051fb35b1ad49c4d940e6fbba2acc98b216e13.tar.gz
OneRoll-f2051fb35b1ad49c4d940e6fbba2acc98b216e13.zip
clang format
Diffstat (limited to 'highlightdice.cpp')
-rw-r--r--highlightdice.cpp61
1 files changed, 28 insertions, 33 deletions
diff --git a/highlightdice.cpp b/highlightdice.cpp
index 1c4b2e7..02941d5 100644
--- a/highlightdice.cpp
+++ b/highlightdice.cpp
@@ -1,44 +1,39 @@
/***************************************************************************
- * Copyright (C) 2016 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) 2016 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. *
+ ***************************************************************************/
#include "highlightdice.h"
HighLightDice::HighLightDice(QList<qint64> result, bool isHighlighted, QString color, bool displayed, quint64 faces)
- : m_result(result),m_hasHighlight(isHighlighted),m_color(color), m_displayed(displayed),m_faces(faces)
+ : m_result(result), m_hasHighlight(isHighlighted), m_color(color), m_displayed(displayed), m_faces(faces)
{
-
}
-
-HighLightDice::~HighLightDice()
-{
-
-}
+HighLightDice::~HighLightDice() {}
QList<qint64> HighLightDice::getResult() const
{
return m_result;
}
-void HighLightDice::setResult(const QList<qint64> &result)
+void HighLightDice::setResult(const QList<qint64>& result)
{
- m_result = result;
+ m_result= result;
}
bool HighLightDice::isHighlighted() const
@@ -48,7 +43,7 @@ bool HighLightDice::isHighlighted() const
void HighLightDice::setHighlight(bool hasHighlight)
{
- m_hasHighlight = hasHighlight;
+ m_hasHighlight= hasHighlight;
}
QString HighLightDice::getColor() const
@@ -56,9 +51,9 @@ QString HighLightDice::getColor() const
return m_color;
}
-void HighLightDice::setColor(const QString &color)
+void HighLightDice::setColor(const QString& color)
{
- m_color = color;
+ m_color= color;
}
bool HighLightDice::getDisplayed() const
@@ -68,7 +63,7 @@ bool HighLightDice::getDisplayed() const
void HighLightDice::setDisplayed(bool displayed)
{
- m_displayed = displayed;
+ m_displayed= displayed;
}
quint64 HighLightDice::getFaces() const
@@ -76,7 +71,7 @@ quint64 HighLightDice::getFaces() const
return m_faces;
}
-void HighLightDice::setFaces(const quint64 &faces)
+void HighLightDice::setFaces(const quint64& faces)
{
- m_faces = faces;
+ m_faces= faces;
}