Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2011-07

Release V2.4

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Den Jean
Den Jean wrote 9 lines
Hi, Release V2.4 of the Free Pascal Qt4 Binding is available here: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html Changes: More fixes for crash of Lazarus compiled with Range Checking On. As V2.3 is almost the same and not yet in Lazarus svn, I removed V2.3. So Zeljko just skip V2.3 and use V2.4.

uhhh .... didn't know that 2.4 will be so fast ... please see reminder for you: http://bugs.freepascal.org/view.php?id=19640

1.QStandardItemH setData() and getData(): QtItemDataRole param should be changed to integer (like with QListWidgetItemH and QTreeWidgetItemH). (only qt45.pas change is needed, I've already tested that and it works fine). 2.Would be nice if there's any chance to get
QStandardItemModel::selectionChanged() signal into bindings.... in that case QtItemSelection class is needed , but I guess it can be PtrIntArray (it's anyway an array of QStandardItemH).

Why so ? I've already written class which will be handle for TCustomListView in near future, but with more options and ability for more customizations especially in selections handling which is pretty messy with qt (I already mentioned that on their mailing list and there's no chance that it'll be changed during 4.XX series).

So, please inform me if you plan to add those 2 changes, in that case I'll wait 2.5 release before commiting changes to lcl.

P.S: What's exact change in this release ? Where range checks raised ?

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20110708/d063f296/attachment.html>

Den Jean
to zeljko
zeljko wrote
uhhh .... didn't know that 2.4 will be so fast ... please see reminder for you: http://bugs.freepascal.org/view.php?id=19640

Sorry, I do follow these. Please ask on this mailing list.

Show quoted text 5 lines
1.QStandardItemH setData() and getData(): QtItemDataRole param should be changed to integer (like with QListWidgetItemH and QTreeWidgetItemH). (only qt45.pas change is needed, I've already tested that and it works fine).

Parameters of type int that have a default value of type QtItemDataRole were converted to type QtItemDataRole to ease the use of that enum type as a parameter value. I did this way back in 2006 :-). Ok I removed this feature.

2.Would be nice if there's any chance to get QStandardItemModel::selectionChanged() signal into bindings.... in that

QStandardItemModel::selectionChanged() does not exist. That class has a signal ItemChanged.
However QItemSelectionModel has such a signal.

case QtItemSelection class is needed , but I guess it can be PtrIntArray (it's anyway an array of QStandardItemH).

?

Show quoted text 8 lines
Why so ? I've already written class which will be handle for TCustomListView in near future, but with more options and ability for more customizations especially in selections handling which is pretty messy with qt (I already mentioned that on their mailing list and there's no chance that it'll be changed during 4.XX series). So, please inform me if you plan to add those 2 changes, in that case I'll wait 2.5 release before commiting changes to lcl.

The class QItemSelection is avoided by the binding because it is a template descendant (QList<QItemSelectionRange>) It will take some time to see if it can be supported, probably by writing a QLCL.... As the list elements are not pointers, the PtrIntArray does not work well.(pascal cannot copy c++ classes, only pointers)

P.S: What's exact change in this release ? Where range checks raised ?

copyQVectorQRealToQRealArray

zeljko
to Den Jean
Den Jean wrote 5 lines
On Friday 08 July 2011 08:04:17 zeljko wrote: > uhhh .... didn't know that 2.4 will be so fast ... please see reminder > for you: http://bugs.freepascal.org/view.php?id=19640 Sorry, I do follow these. Please ask on this mailing list.

No problem, that issue is just for implementation of that class, also remainder for me.

Show quoted text 10 lines
> 1.QStandardItemH setData() and getData(): QtItemDataRole param should be > changed to integer (like with QListWidgetItemH and QTreeWidgetItemH). > (only qt45.pas change is needed, I've already tested that and it works > fine). Parameters of type int that have a default value of type QtItemDataRole were converted to type QtItemDataRole to ease the use of that enum type as a parameter value. I did this way back in 2006 :-). Ok I removed this feature.

Thanks.

Show quoted text 7 lines
> 2.Would be nice if there's any chance to get > QStandardItemModel::selectionChanged() signal into bindings.... in that QStandardItemModel::selectionChanged() does not exist. That class has a signal ItemChanged. However QItemSelectionModel has such a signal.

Yes, I've typed from my mind today, it's QItemSelectionModel ...

Show quoted text 12 lines
> case QtItemSelection class is needed , but I guess it can be PtrIntArray > (it's anyway an array of QStandardItemH). ? The class QItemSelection is avoided by the binding because it is a template descendant (QList<QItemSelectionRange>) It will take some time to see if it can be supported, probably by writing a QLCL.... As the list elements are not pointers, the PtrIntArray does not work well.(pascal cannot copy c++ classes, only pointers)

ok

> P.S: What's exact change in this release ? Where range checks raised ? copyQVectorQRealToQRealArray

thanks

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20110708/39f6a02c/attachment.html>

Den Jean
to zeljko
zeljko wrote
> Sorry, I do follow these. Please ask on this mailing list.

I do *not* follow .. (that was a typo, just to be clear)

No problem, that issue is just for implementation of that class, also remainder for me.