use preset version numbers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-07 02:37:06 +03:00
parent 4702b151f7
commit 6e7f37a5b0
2 changed files with 3 additions and 5 deletions

View file

@ -103,9 +103,8 @@ void QFactoryLoader::updateDir(const QString &pluginDir)
library->release(); library->release();
continue; continue;
} }
QString regkey = QString::fromLatin1("Katie Factory Cache %1.%2/%3:/%4") QString regkey = QString::fromLatin1("Katie Factory Cache %1/%2:/%3")
.arg((QT_VERSION & 0xff0000) >> 16) .arg(QT_VERSION_HEX_STR)
.arg((QT_VERSION & 0xff00) >> 8)
.arg(QString::fromLatin1(d->iid.constData())) .arg(QString::fromLatin1(d->iid.constData()))
.arg(fileName); .arg(fileName);
QStringList keys; QStringList keys;

View file

@ -118,8 +118,7 @@ QString MainWindowBase::mainWindowTitle()
// Use the minor Qt version as settings versions to avoid conflicts // Use the minor Qt version as settings versions to avoid conflicts
int MainWindowBase::settingsVersion() int MainWindowBase::settingsVersion()
{ {
const int version = QT_VERSION; return QT_VERSION_MINOR;
return (version & 0x00FF00) >> 8;
} }
// ----------------- DockedMdiArea // ----------------- DockedMdiArea