[Qt-creator] Build failure with Qt 5.0

Orgad Shaneh orgads at gmail.com
Tue Jan 21 10:18:00 CET 2014


On Tue, Jan 21, 2014 at 10:43 AM, André Stein <andre.stein.1985 at gmail.com>wrote:

> 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é
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>

Done. Thanks for the report.

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140121/1dad3a20/attachment.html>


More information about the Qt-creator mailing list