Feat: add letter property to timer
This commit is contained in:
parent
206d55f301
commit
375fd906e2
2 changed files with 12 additions and 0 deletions
|
@ -64,6 +64,7 @@ class ScStwRemoteRace;
|
||||||
class ScStwTimer : public QObject
|
class ScStwTimer : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_PROPERTY(QString letter READ getLetter WRITE setLetter)
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit ScStwTimer(QObject *parent = nullptr);
|
explicit ScStwTimer(QObject *parent = nullptr);
|
||||||
|
@ -244,6 +245,13 @@ public slots:
|
||||||
*/
|
*/
|
||||||
QString getLetter();
|
QString getLetter();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Function to set the letter of the timer
|
||||||
|
* \param letter the letter
|
||||||
|
* \return The letter of the timer or ""
|
||||||
|
*/
|
||||||
|
void setLetter(QString letter);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Function to set if the timer is supposed to be disabled
|
* \brief Function to set if the timer is supposed to be disabled
|
||||||
*
|
*
|
||||||
|
|
|
@ -231,6 +231,10 @@ QString ScStwTimer::getLetter() {
|
||||||
return this->letter;
|
return this->letter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScStwTimer::setLetter(QString letter) {
|
||||||
|
this->letter = letter;
|
||||||
|
}
|
||||||
|
|
||||||
QString ScStwTimer::getText() {
|
QString ScStwTimer::getText() {
|
||||||
QString newText = "";
|
QString newText = "";
|
||||||
int newTime = 0;
|
int newTime = 0;
|
||||||
|
|
Reference in a new issue