tst_QItemModel: Register QAbstractItemModel::LayoutChangeHint.
Silence warning: Don't know how to handle 'hint', use qRegisterMetaType to register it. Task-number: QTBUG-49623 Change-Id: Iec0a823c7af87eddd9a3f126a1b970da1ff2f03f Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
9c430bc4c9
commit
2182d6ae40
@ -49,6 +49,9 @@ class tst_QItemModel : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
tst_QItemModel();
|
||||
|
||||
public slots:
|
||||
void init();
|
||||
void cleanup();
|
||||
@ -124,6 +127,11 @@ private:
|
||||
bool insertRecursively;
|
||||
};
|
||||
|
||||
tst_QItemModel::tst_QItemModel()
|
||||
{
|
||||
qRegisterMetaType<QAbstractItemModel::LayoutChangeHint>();
|
||||
}
|
||||
|
||||
void tst_QItemModel::init()
|
||||
{
|
||||
testModels = new ModelsToTest();
|
||||
|
Loading…
Reference in New Issue
Block a user