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

QSerialPort::bindableStopBits has a wrong return value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.7.0 FF
    • 6.2, 6.5, 6.6, dev
    • Serial Port
    • None
    • 3
    • 3bdac6109 (dev)
    • Foundations Sprint 94

      It was overlooked when initially introducing the bindable property support.
      The property has type StopBits, so that should also be the return type of the bindableStopBits method.
      Currently bool is returned, which compiles and somehow works due to implicit conversions.

      The method is a part of the public API, so we can only get rid of it using QT_REMOVED_SINCE.

      The idea is that we should introduce a new method bindableStopBitsFixed, and use it in the Q_PROPERTY() macro. Not sure if we can pick such change to older branches, though...

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

            ivan.solovev Ivan Solovev
            ivan.solovev Ivan Solovev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes