25 #include <QStringList>
39 VersionNumber(
int major = 0,
int minor = 0) : major(major), minor(minor) {}
47 int compare(
const VersionNumber &other)
const
49 int major = this->major - other.major;
52 return this->minor - other.minor;
57 static const VersionNumber &runtimeQtVersion()
59 static const VersionNumber version = [](){
60 QString versionQt = qVersion();
61 QStringList tokens = versionQt.split(
".");
62 VersionNumber version;
63 if (tokens.size() >= 1)
65 version.major = tokens[0].toInt();
67 if (tokens.size() >= 2)
69 version.minor = tokens[1].toInt();
76 bool CapsQt::canCssCellBorders()
78 static const VersionNumber minVersion(5, 14);
79 static bool can = runtimeQtVersion().compare(minVersion) >= 0;