This commit is contained in:
Marco 2017-05-15 17:47:35 +02:00 committed by thez3ro
parent 70127bad4b
commit 7bb9ea201c
No known key found for this signature in database
GPG Key ID: F628F9E41DD7C073
3 changed files with 3 additions and 3 deletions

View File

@ -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}";

View File

@ -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);

View File

@ -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";
}