add --osc-port option

This commit is contained in:
Alexandre Quessy
2014-10-17 13:57:13 -04:00
parent c53cb753ef
commit 2a66de38ff
5 changed files with 40 additions and 2 deletions
+7
View File
@@ -24,6 +24,7 @@
#include <QFile>
#include <QDir>
#include <iostream>
#include <QRegExp>
namespace Util {
@@ -277,5 +278,11 @@ bool eraseSettings()
}
}
bool isNumeric(const QString& text)
{
QRegExp re("\\d*"); // a digit (\d), zero or more times (*)
return (re.exactMatch(text));
}
} // end of namespace