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

compilation error when disable deprecated before 5.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.1
    • Fix Version/s: 4.8.x, 5.5.0
    • Component/s: Serial Port
    • Labels:
      None

      Description

      When compiling a file including qserialport.h with #define QT_DISABLE_DEPRECATED_BEFORE=QT_VERSION, the following error occur:

      include\QtSerialPort/qserialport.h:258:46: error: 'QSerialPort::DataErrorPolicy' has not been declared
      void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy);

      This is because the signal "void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy);" is not protected by "#if QT_DEPRECATED_SINCE(5, 2)", contrary to "enum DataErrorPolicy"

        Attachments

        For Gerrit Dashboard: QTBUG-46066
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kuzulis Denis Shienkov
            Reporter:
            ericlemanissier Eric Lemanissier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes