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

compilation error when disable deprecated before 5.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.x, 5.5.0
    • 5.4.1
    • Serial Port
    • 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

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

        Activity

          People

            kuzulis Denis Shienkov
            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