void WordChecker::setSpeedText(QString speedText)
{
  if (mSpeedText.compare(speedText) != 0) {
    mSpeedText = speedText;
    mSpeedTextLength = mSpeedText.length();
    emit speedTextChanged(mSpeedText);
  }
}
void WordChecker::setSpeedText(QString speedText)
{
    if (mSpeedText.compare(speedText) != 0) {
        mSpeedText = speedText;
        mSpeedTextLength = mSpeedText.length();
        emit speedTextChanged(mSpeedText);

        // At startup we need to set a valid text for mRemainingText to be
        // able to show the initial text to write. At start up mRemaining is
        // equal with the string we use for the text since nothing has been written yet.
        mRemainingText = speedText;
        emit remainingTextChanged(mRemainingText);
    }
}