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

Q3ListViewItemIterator snipplet does not compile

    XMLWordPrintable

Details

    Description

      The snipplet from Q3ListViewItem docs page:

      //! [7]
      QList<Q3ListViewItem *> lst;
      Q3ListViewItemIterator it(myListView, Selected);
      while (it.current()) {
          lst.append(it.current());
          ++it;
      }
      //! [7]
      

      does not compile

      test.cpp:176: error: 'Selected' was not declared in this scope
      

      => it should have been "Q3ListViewItemIterator::Selected".

      Ofc, q3 support is not a point of focus anymore, and when getting this error anyone would know what the problem was, but still - it's silly to have a piece of code in the docs which cannot be simply copied and pasted.

      I attach a fixing patch against the newest git version.

      Attachments

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

        Activity

          People

            teemukat Teemu Katajisto (Inactive)
            wiecko Marek Wieckowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes