Add public role names setter to QStandardItemModel
authorChris Adams <christopher.adams@nokia.com>
Mon, 30 Jan 2012 01:04:07 +0000 (11:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 31 Jan 2012 11:00:31 +0000 (12:00 +0100)
commitcf52c268b036d808901313acc554587465bdd746
treee0efea11753f61faed7fbb3f15ea86a4adb702e9
parentcf20c06756a461730f35acf7631cbf5e762fcfe1
Add public role names setter to QStandardItemModel

This allows QStandardItemModel to be usable in QML without requiring
clients to subclass it.

Task-number: QTBUG-15067
Change-Id: I867fcd8137132affdf21f37a9fa293e855a09a13
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/widgets/itemviews/qstandarditemmodel.cpp
src/widgets/itemviews/qstandarditemmodel.h
tests/auto/widgets/itemviews/qstandarditemmodel/tst_qstandarditemmodel.cpp