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

QWidgetItem::widget must be const

    XMLWordPrintable

    Details

    • Commits:
      ce7447d88ce5f410ae01b0f5697a86b3ba7c47f2 (qt/qtbase/5.15)

      Description

      QWidgetItem::widget must be const, bacause it's not modify QWidgetItem object, or you must add const version of this method

      I write some function like fooCheck(QWidgetItem const* wi1, QWidgetItem const* wi2) - I can't get wi1->widget() - it's very uncomfortable.

        Attachments

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

          Activity

            People

            Assignee:
            chehrlic Christian Ehrlicher
            Reporter:
            fsmoke Dmitriy Kostromin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes