From 7bb9ea201c1939e2d4d908daeb3320b5a5d05f9b Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 15 May 2017 17:47:35 +0200 Subject: [PATCH] fix typo --- src/autotype/AutoType.cpp | 2 +- src/autotype/AutoType.h | 2 +- src/gui/entry/EditEntryWidget.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index 021607382..ac3be5b90 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -693,7 +693,7 @@ bool AutoType::windowMatchesUrl(const QString& windowTitle, const QString& resol return false; } -bool AutoType::checkSynatx(const QString &string) +bool AutoType::checkSyntax(const QString &string) { //checks things like {word 23}{F1 23}{~ 23}{% 23}{^}{F12}{(}{) 23}{[}{[}{]}{Delay=23}{+}{-}~+%@fixedstring QString allowRepetition = "(\\s[0-9]*){0,1}"; diff --git a/src/autotype/AutoType.h b/src/autotype/AutoType.h index f38c19f67..92505b7de 100644 --- a/src/autotype/AutoType.h +++ b/src/autotype/AutoType.h @@ -42,7 +42,7 @@ public: bool registerGlobalShortcut(Qt::Key key, Qt::KeyboardModifiers modifiers); void unregisterGlobalShortcut(); int callEventFilter(void* event); - static bool checkSynatx(const QString &string); + static bool checkSyntax(const QString &string); static bool checkHighRepetition(const QString &string); static bool checkHighDelay(const QString &string); diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp index cb04e9005..f1bdc8145 100644 --- a/src/gui/entry/EditEntryWidget.cpp +++ b/src/gui/entry/EditEntryWidget.cpp @@ -766,7 +766,7 @@ void EditEntryWidget::updateEntryData(Entry* entry) const entry->setDefaultAutoTypeSequence(QString()); } else { - if (!AutoType::checkSynatx(m_autoTypeUi->sequenceEdit->text())) { + if (!AutoType::checkSyntax(m_autoTypeUi->sequenceEdit->text())) { //@TODO handle wrong syntax std::cout << "wrong syntax\n"; }