[Qt5-feedback] Moving itemmodels to QtCore

Christoph Feck christoph at maxiom.de
Fri Jul 1 14:23:32 CEST 2011


On Friday 01 July 2011 14:02:20 Stephen Kelly wrote:
> Hi,
> 
> One of the things I indend to do with Qt 5 is to move the itemmodel classes
> which currently are in QtGui into QtCore. This is:
> 
> * QAbstractProxyModel
> * QItemSelectionModel, QItemSelection, QItemSelectionRange
> * QSortFilterProxyModel
> * QIdentityProxyModel
> * QStringListModel (#includes QAbstractItemView but apparently doesn't use
> it)
> 
> QFileSystemModel uses qicon qbrush etc which are in QtGui, so either the
> QtGui using stuff would be split out, or the QFileSystemModel goes 
wherever
> those classes go.

The icon stuff should integrate with the new MIME handling. I'd suggest to 
have a QtCore QBasicFileSystemModel that doesn't return icons at all, and a 
subclass QFileSystemModel, that is part of the MIME handling module 
(obsoleting QFileIconProvider). That would give near source compatibility 
(just need to add a new module in the .pro file).

> 
> Any reason not to do this stuff? What do people think of what should happen
> to QFileSystemModel?

-- 
Christoph Feck
http://kdepepo.wordpress.com/
KDE Quality Team


More information about the Qt5-feedback mailing list