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
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString letter READ getLetter WRITE setLetter)
|
||||
public:
|
||||
|
||||
explicit ScStwTimer(QObject *parent = nullptr);
|
||||
|
@ -244,6 +245,13 @@ public slots:
|
|||
*/
|
||||
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
|
||||
*
|
||||
|
|
|
@ -231,6 +231,10 @@ QString ScStwTimer::getLetter() {
|
|||
return this->letter;
|
||||
}
|
||||
|
||||
void ScStwTimer::setLetter(QString letter) {
|
||||
this->letter = letter;
|
||||
}
|
||||
|
||||
QString ScStwTimer::getText() {
|
||||
QString newText = "";
|
||||
int newTime = 0;
|
||||
|
|
Reference in a new issue