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

QHashIterator.hasPrevious() is deprecated but document says otherwise.

    XMLWordPrintable

Details

    • macOS
    • 77c2ac559fc9085608ec5a6995fcf4ec8446ec67 (qt/qtbase/dev) 5778d46e15605e218a9a4f86acee870b38905fc9 (qt/qtbase/5.15)

    Description

      Document in Qt5.15 for QHashIterator.hasPrevious() says it is valid
      https://doc.qt.io/qt-5/qhashiterator.html#hasPrevious
      But Qt Source indicates it is deprecated since 5.15. Also there is no mention of what is the substitute of it.

      #if QT_DEPRECATED_SINCE(5, 15)
          inline QT_DEPRECATED_VERSION_5_15 bool hasPrevious() const { return i != c.constBegin(); }
          inline QT_DEPRECATED_VERSION_5_15 Item previous()
      
          inline QT_DEPRECATED_VERSION_5_15 Item peekPrevious() const
        
          inline bool QT_DEPRECATED_VERSION_5_15 findPrevious(const T &t)
      
      

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes