This commit is contained in:
Marco authored and thez3ro committed 2018-01-03 12:56:18 +01:00
1 parent 70127bad4b
commit 7bb9ea201c
3 files changed
+3 -3

No files matched your search

+1 -1
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}";
+1 -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);
+1 -1
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";
}