Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11510

regression: lacking of ifndef QT_NO_DEBUG_STREAM wrapper causes compile problem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0
    • None
    • linux, gcc4
    • 4e2eb2945dbc3865e2901f12d663ed89e8f0dfbf, 633349982422fec92df4ed06da5d2becf788c494

    Description

      In certain circumstances, the following line causes compile problem:
      src/gui/styles/qstyle.h
      Q_GUI_EXPORT QDebug operator<<(QDebug debug, QStyle::State state);

      src/gui/styles/qstyleoption.h
      Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType);
      Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QStyleOption &option);

      Possible resolution is adding a wrapper:
      #if !defined(QT_NO_DEBUG_STREAM) && !defined(QT_NO_DEBUG)
      Q_GUI_EXPORT QDebug operator<<(QDebug debug, QStyle::State state);
      #endif

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes