15 lines
274 B
C++
15 lines
274 B
C++
#include "helpers.h"
|
|
#include <QString>
|
|
|
|
bool Helpers::isPortTextValid(const QString & textLocalPort)
|
|
{
|
|
bool ok = false;
|
|
int port = textLocalPort.toInt(&ok);
|
|
|
|
if (ok && port > 1000 && port < 65536) {
|
|
return true;
|
|
}else{
|
|
return false;
|
|
}
|
|
}
|