[Qt5-feedback] QAIM::headerData()
Keith Gardner
kgardner at zebraimaging.com
Mon Jul 25 19:09:46 CEST 2011
I would like to see this. I currently have a model where the first level is viewed in a QTreeView but I don't view the children. When an index is clicked, I view the children in a separate QTreeView. I would prefer to have all of the data in a single model instead of having submodels.
________________________________________
From: qt5-feedback-bounces+kgardner=zebraimaging.com at qt.nokia.com [qt5-feedback-bounces+kgardner=zebraimaging.com at qt.nokia.com] On Behalf Of Kishore Jonnalagadda [kitts.mailinglists at gmail.com]
Sent: Monday, July 25, 2011 6:18 AM
To: qt5-feedback at qt.nokia.com
Subject: Re: [Qt5-feedback] QAIM::headerData()
Does anyone have an opinion on this? It was once discussed before on qt-interest[1]
[1] http://lists.qt.nokia.com/pipermail/qt-interest/2010-August/026565.html
Kishore
On Jul 20, 2011 5:42 PM, "Kishore Jonnalagadda" <kitts.mailinglists at gmail.com<mailto:kitts.mailinglists at gmail.com>> wrote:
> On Jul 20, 2011 5:38 PM, "Kishore Jonnalagadda" <
> kitts.mailinglists at gmail.com<mailto:kitts.mailinglists at gmail.com>> wrote:
>>
>> I have been using QAIM in the last few months and one inconsistency I find
> is in the headerData() API. I would like to see the api being modified from
>>
>> virtual QVariant headerData ( int section, Qt::Orientation orientation,
> int role = Qt::DisplayRole ) const
>>
>> to
>>
>> virtual QVariant headerData ( const QModelIndex & parent, int section,
> Qt::Orientation orientation, int role = Qt::DisplayRole ) const
>>
>> just as it is for columnCount() and other API. In my use case, I am using
> QAIM as an aggregating model and hence it is very much possible that the
> models being aggregated have different header data.
>
> Also this change can be made source compatible by making index the last
> parameter with a default invalid (root) index.
>> Kishore
More information about the Qt5-feedback
mailing list