Change the type key for delegate editors to int.
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 27 Jan 2012 02:33:13 +0000 (03:33 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 30 Jan 2012 15:25:09 +0000 (16:25 +0100)
commitd9468a975210ecb58ff199e931f47df5b99b267f
treecdcf71215bca02739c80f550e9ddbed635ad38ab
parentbe1867b6c4743da937d269f04c2e108a18d3f400
Change the type key for delegate editors to int.

Previous type of QVariant::Type does not allow for custom types.

While technically source incompatible I found no re-implementation
of this class in qttools or qt-creator (most likely to use it for
property editors). The virtual methods are not needed because
registerEditor is all the API that is really needed.

Task-number: QTBUG-1065

Change-Id: I2a9c578c444a80359416f2224a0ee03903bfe779
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
dist/changes-5.0.0
src/widgets/itemviews/qitemdelegate.cpp
src/widgets/itemviews/qitemeditorfactory.cpp
src/widgets/itemviews/qitemeditorfactory.h
src/widgets/itemviews/qstyleditemdelegate.cpp