[Qt-jambi-interest] QAbstractItemModel: modelAboutToBeReset and modelReset signal?
Mathias
listo.mathias at googlemail.com
Wed Feb 11 09:42:32 CET 2009
Gunnar,
thanks for the info!
Sounds good.
With the 64bit-Support coming (esp. important for OS X) and a lot of smaller
improvements like these PrivateSignals, the 4.5 version seems like a great
release to look forward to... :)
Cheers from the Black Forest,
Mathias
On Wed, Feb 11, 2009 at 7:54 AM, Gunnar Sletta <gunnar at trolltech.com> wrote:
> Mathias wrote:
>
>> Gentlemen,
>>
>> I'm working a lot with the QTreeView widgets and custom
>> QAbstractItemModels.
>> Now I'm wondering why you have made the decision to not expose the
>> modelAboutToBeReset and modelReset signals to Java.
>> The layoutAboutToBeChanged and layoutChanged signals are available, but
>> for some reason to two reset signals are missing.
>>
>> Since I need to intercept the reset events I now have to create my own
>> signals and override reset() to fire them myself, which is kind of ugly,
>> since under the hood the same thing already exists... maybe you just missed
>> exposing them?
>>
>
> The reason for these being missing previously are that they are actually
> declared private in C++ and actually accessible only to the C++ connect
> statement through "a rather nasty hack" ;)
>
> In the 4.5 release, we've added a set of PrivateSignals which can be
> connected to, but not emitted(). This makes it possible for us to support
> this kind of API so 4.5 will have these signals available.
>
> best regards,
> Gunnar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20090211/6705c2c5/attachment.html
More information about the Qt-jambi-interest
mailing list