[Qt-creator] Build failure with Qt 5.0
André Stein
andre.stein.1985 at gmail.com
Tue Jan 21 09:43:50 CET 2014
Hi all,
I just tried to compile Qt Creator (master) from source and got a
compilation error in debuggerplugin.cpp because
QMessageBox::setTextInterationFlag is used in a Qt 5.0 block although it
was introduced in 5.1.
diff --git a/src/plugins/debugger/debuggerplugin.cpp
b/src/plugins/debugger/debuggerplugin.cpp
index 02024db..0f1a9f0 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -2641,7 +2641,7 @@ QMessageBox *showMessageBox(int icon, const
QString &title,
title, text, QMessageBox::StandardButtons(buttons),
ICore::mainWindow());
mb->setAttribute(Qt::WA_DeleteOnClose);
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 1, 0))
mb->setTextInteractionFlags(Qt::TextSelectableByMouse);
#endif
mb->show();
I thought I just post it here because it may be easier for someone with
commits rights to just fix it :-)
Cheers,
André
More information about the Qt-creator
mailing list