mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
qt-gui.cpp: add another QT_VERSION check
encodeUtf8() and decodeUtf8() are only used for Q_OS_WIN in init_ui(), but also that branch is wrapped in a "#if QT_VERSION < 0x050000" we do the same for the actual function declarations. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7451790660
commit
16dd110a09
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ const char *getSetting(QSettings &s, QString name)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#if defined(Q_OS_WIN) && QT_VERSION < 0x050000
|
||||
static QByteArray encodeUtf8(const QString &fname)
|
||||
{
|
||||
return fname.toUtf8();
|
||||
|
|
Loading…
Add table
Reference in a new issue