mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
add --osc-port option
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user