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

QSerialPort::bindableStopBits has a wrong return value

    XMLWordPrintable

Details

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

    Description

      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...

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes