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

deprecated-declarations warning in examples/widgets/widgets/icons

    XMLWordPrintable

Details

    • 51ff94ec92 (qt/qtbase/dev) 51ff94ec92 (qt/tqtc-qtbase/dev)

    Description

      Building examples/widgets/widgets/icons in dev prints a warning:

      agent:2022/01/24 09:41:13 build.go:394: /home/qt/work/qt/qtbase/examples/widgets/widgets/icons/iconpreviewarea.cpp: In member function ‘void IconPreviewArea::updatePixmapLabels()’:
      agent:2022/01/24 09:41:13 build.go:394: /home/qt/work/qt/qtbase/examples/widgets/widgets/icons/iconpreviewarea.cpp:162:66: warning: ‘TestNamespace::QPixmap TestNamespace::QIcon::pixmap(TestNamespace::QWindow*, const TestNamespace::QSize&, TestNamespace::QIcon::Mode, TestNamespace::QIcon::State) const’ is deprecated: Use pixmap(size, devicePixelRatio) instead [-Wdeprecated-declarations]
      agent:2022/01/24 09:41:13 build.go:394:   162 |                             IconPreviewArea::iconStates().at(row));
      agent:2022/01/24 09:41:13 build.go:394:       |                                                                  ^
      agent:2022/01/24 09:41:13 build.go:394: In file included from /home/qt/work/install/include/QtGui/QIcon:1,
      agent:2022/01/24 09:41:13 build.go:394:                  from /home/qt/work/qt/qtbase/examples/widgets/widgets/icons/iconpreviewarea.h:54,
      agent:2022/01/24 09:41:13 build.go:394:                  from /home/qt/work/qt/qtbase/examples/widgets/widgets/icons/iconpreviewarea.cpp:51:
      agent:2022/01/24 09:41:13 build.go:394: /home/qt/work/install/include/QtGui/qicon.h:87:13: note: declared here
      agent:2022/01/24 09:41:13 build.go:394:    87 |     QPixmap pixmap(QWindow *window, const QSize &size, Mode mode = Normal, State state = Off) const;
      agent:2022/01/24 09:41:13 build.go:394:       |             ^~~~~~
      

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes