aboutsummaryrefslogtreecommitdiff
path: root/src/kconfig_compiler/kconfig_compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kconfig_compiler/kconfig_compiler.cpp')
-rw-r--r--src/kconfig_compiler/kconfig_compiler.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp
index c90c0af0..985210f5 100644
--- a/src/kconfig_compiler/kconfig_compiler.cpp
+++ b/src/kconfig_compiler/kconfig_compiler.cpp
@@ -2082,13 +2082,25 @@ int main(int argc, char **argv)
exit(1);
}
Signal signal = *it;
- h << " " << signalEnumName(signal.name) << " = 0x" << hex << val;
+ h << " " << signalEnumName(signal.name) << " = 0x" <<
+ #if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
+ hex
+ #else
+ Qt::hex
+ #endif
+ << val;
if (++it != itEnd) {
h << ",";
}
h << endl;
}
- h << " };" << dec << endl << endl;
+ h << " };" <<
+ #if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
+ dec
+ #else
+ Qt::dec
+ #endif
+ << endl << endl;
h << " Q_SIGNALS:";
for (const Signal &signal : qAsConst(signalList)) {