Sign in Join

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

Mailing lists / qt / 2007-11

Missing types

11 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

zeljko

Hi all,

Den, there are missing some types in 1.54 for QLCLItemDelegate, pls add it so I can update bindings.

QLCLItemDelegate_createEditor_Override = procedure (parent : QWidgetH; option:
QStyleOptionViewItemH; index: QModelIndexH; out editor: QWidgetH) of object
cdecl;
QLCLItemDelegate_setEditorData_Override = procedure (editor : QWidgetH; index:
QModelIndexH) of object cdecl;
QLCLItemDelegate_setModelData_Override = procedure (editor : QWidgetH; model:
QAbstractItemModelH; index: QModelIndexH) of object cdecl;
QLCLItemDelegate_updateEditorGeometry_Override = procedure (editor : QWidgetH;
option: QStyleOptionViewItemH; index: QModelIndexH) of object cdecl;
QLCLItemDelegate_editorEvent_Override = procedure (event : QEventH; model:
QAbstractItemModelH; option: QStyleOptionViewItemH; index: QModelIndexH;
retval: PBoolean) of object cdecl;

zeljko

Den Jean
to zeljko
pm zeljko wrote
Den, there are missing some types in 1.54 for QLCLItemDelegate, pls add it so I can update bindings.

When code reviewing this I noticed an error in setModelData. The function call provides as parameter twice "editor". The second time it should be "model". Did you already use this function ? :)

void setModelData(QWidget * editor, QAbstractItemModel * model, const QModelIndex & index ) const {

if (setModelDataOverride.func) {

      typedef void (*func_type)(void *data, QWidgetH editor,
QAbstractItemModelH model, const QModelIndexH index);
      (*(func_type)setModelDataOverride.func)(setModelDataOverride.data,
(QWidgetH) editor, (QAbstractItemModelH) editor, (const QModelIndexH)&index);
                                                                    ^^^^
      }
     else QItemDelegate::setModelData(editor,model,index);
  }
zeljko
to Den Jean: When code reviewing this I noticed an error in setModelData. The function call provides…
Den Jean wrote 7 lines
On Wednesday 28 November 2007 12:17:57 pm zeljko wrote: > Den, there are missing some types in 1.54 for QLCLItemDelegate, pls add > it so I can update bindings. When code reviewing this I noticed an error in setModelData. The function call provides as parameter twice "editor". The second time it should be "model". Did you already use this function ? :)

hm...I think not, but it is definitelly bug, pls. fix it and then update .... :)

tnx,
zeljko

zeljko
to Den Jean: Done.
Den Jean wrote 5 lines
On Saturday 01 December 2007 12:33:40 pm Den Jean wrote: > > Den, there are missing some types in 1.54 for QLCLItemDelegate, pls add > > it so I can update bindings. Done.

tnx Den ,

zeljko

zeljko
to Den Jean: Done.
Den Jean wrote 5 lines
On Saturday 01 December 2007 12:33:40 pm Den Jean wrote: > > Den, there are missing some types in 1.54 for QLCLItemDelegate, pls add > > it so I can update bindings. Done.

there won't be qt-4.2 bindings update ? should I commit 1.54 as it is ?

Den Jean
to zeljko
pm zeljko wrote 8 lines
On Saturday 01 December 2007 13:02, Den Jean wrote: > On Saturday 01 December 2007 12:33:40 pm Den Jean wrote: > > > Den, there are missing some types in 1.54 for QLCLItemDelegate, pls > > > add it so I can update bindings. > > Done. there won't be qt-4.2 bindings update ? should I commit 1.54 as it is ?

bug was fixed and Qt 4.2 has been added.
I will be away Monday till Thursday.

Vincent Snijders
to zeljko: there won't be qt-4.2 bindings update ? should I commit 1.54 as it is ?
zeljko wrote 7 lines
On Saturday 01 December 2007 13:02, Den Jean wrote: > On Saturday 01 December 2007 12:33:40 pm Den Jean wrote: >>> Den, there are missing some types in 1.54 for QLCLItemDelegate, pls add >>> it so I can update bindings. > Done. there won't be qt-4.2 bindings update ? should I commit 1.54 as it is ?

I assume you will update the win32 dll too? Then I will fix the installer build script to use the dll from svn.

Vincent

Den Jean
to Vincent Snijders
pm Vincent Snijders wrote
I assume you will update the win32 dll too? Then I will fix the installer build script to use the dll from svn.

I never made 2 version for windows. You punish me already enough asking for a binary for windows :-).
Switching from konsole to a dos box is not my ideay of fun.

I would prefer you make Qt 4.3 the default.
In Mandriva 2008, the packaged Qt 4 is a Qt 4.3 already. I suppose in other up-to-date distro's Qt 4.3 is also the packaged one.

regards,

Den Jean

Paul Ishenin
to Den Jean
Den Jean wrote 13 lines
On Sunday 02 December 2007 04:50:54 pm Vincent Snijders wrote: > I assume you will update the win32 dll too? Then I will fix the > installer build script to use the dll from svn. > I never made 2 version for windows. You punish me already enough asking for a binary for windows :-). Switching from konsole to a dos box is not my ideay of fun. I would prefer you make Qt 4.3 the default. In Mandriva 2008, the packaged Qt 4 is a Qt 4.3 already. I suppose in other up-to-date distro's Qt 4.3 is also the packaged one

windows have 4.3 by default.

Best regards,
Paul Ishenin.

Vincent Snijders
to Den Jean: I never made 2 version for windows. You punish me already enough asking for a binary for…
Den Jean wrote 6 lines
On Sunday 02 December 2007 04:50:54 pm Vincent Snijders wrote: > I assume you will update the win32 dll too? Then I will fix the > installer build script to use the dll from svn. I never made 2 version for windows. You punish me already enough asking for a binary for windows :-).

Sorry, if this was confusing. My question was a reminder for Zeljko to update http://www.freepascal.org/cgi-bin/viewcvs.cgi/binaries/i386-win32/qt/?root=lazarus&rev=HEAD if he changes the qt4.pas

Which he just did. :-)

Thanks.

Vincent