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:
Friedemann Kleint 2015-11-25 09:30:46 +01:00
parent 9c430bc4c9
commit 2182d6ae40

View File

@ -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();