#include "helpers.h" #include 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; } }