Quarts/Quartz/helpers.cpp
2025-06-19 16:22:46 +07:00

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;
}
}