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

QSignalSpy warns about enumeration type method parameters that were registered using Q_ENUM

    XMLWordPrintable

Details

    •  2182d6ae4057afeef3ef41d0dfb0cbec62fa79c4 (qtbase/5.6, 26.11.2015, 5.6)

    Description

      qtbase/tests/auto/corelib/itemmodels/qitemmodel produces a ton of warnings

      Don't know how to handle 'hint', use qRegisterMetaType to register it.
      

      when constructing a QSignalSpy

         QSignalSpy modelLayoutChangedSpy(currentModel, &QAbstractItemModel::layoutChanged);
      

      at qtbase/tests/auto/corelib/itemmodels/qitemmodel/tst_qitemmodel.cpp:849 . They refer to the parameter QAbstractItemModel::LayoutChangeHint which has a Q_ENUM:

         enum LayoutChangeHint
          {
              NoLayoutChangeHint,
              VerticalSortHint,
              HorizontalSortHint
          };
          Q_ENUM(LayoutChangeHint)
      

      which supposedly registers the meta type automagically?

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes