Sign in Join

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

Mailing lists / qt / 2010-01

Qt 4.6 Obsolete Classes

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Den Jean

Hi Zeljko,

during the preparation of a Qt 4.6 version,
I noticed that some classes are deprecated.
Could you remove/avoid the usage in lcl of those Qt classes. http://doc.trolltech.com/4.6/obsoleteclasses.html

I think only QMatrix is used.
QMatrix -?> QTransform (available in 4.5.3)

http://doc.trolltech.com/4.6/qmatrix.html#details
"...QTransform is the recommended transformation class in Qt..."

Though QMatrix is not in the list of Qt 4.6 all classes, http://doc.trolltech.com/4.6/classes.html
it is still available in the Qt 4.6 code, so I added it already manually to the binding of 4.6. (so no hurry in removing it)

regards,

Den Jean

zeljko
to Den Jean

On Saturday 16 January 2010 11:12, Den Jean wrote: Hi

Show quoted text 8 lines
during the preparation of a Qt 4.6 version, I noticed that some classes are deprecated. Could you remove/avoid the usage in lcl of those Qt classes. http://doc.trolltech.com/4.6/obsoleteclasses.html I think only QMatrix is used. QMatrix -?> QTransform (available in 4.5.3)

hm..I'l see that but pls. don't hurry with 4.6.
We must find the way for using 4.6 without IFDEF's ! I mean , I don't want to get nightmare of QT_USE_XXX again. QMatrix is still inside 4.6 ... and will be inside 4.7 so no hurry :)

Den Jean
to Den Jean: during the preparation of a Qt 4.6 version, I noticed that some classes are deprecated.…
hm..I'l see that but pls. don't hurry with 4.6.

Ahum, already ready.

We must find the way for using 4.6 without IFDEF's ! I mean , I don't want to get nightmare of QT_USE_XXX again.

I understand, but...

QMatrix is still inside 4.6 ... and will be inside 4.7 so no hurry :)

The signature of the classes and methods that cover the basic core functionality (what you need for LCL) of Qt 4.5 and Qt 4.6 is the same, no QFileDialog_filters problem anymore. So support for Qt 4.5 and 4.6 at the same time should not cause extra work (just do not use in LCL things not in 4.5).

The advantages of 4.6 are of course WebKit improvements and Touchscreen support.

kind regards,

Den Jean

zeljko
to Den Jean
Den Jean wrote 8 lines
The signature of the classes and methods that cover the basic core functionality (what you need for LCL) of Qt 4.5 and Qt 4.6 is the same, no QFileDialog_filters problem anymore. So support for Qt 4.5 and 4.6 at the same time should not cause extra work (just do not use in LCL things not in 4.5). The advantages of 4.6 are of course WebKit improvements and Touchscreen support.

I understand you, but if you remove QMatrix now, then LCL won't work with 4.6 bindings, since we use QMatrix in LCL.

Den Jean
to zeljko
zeljko wrote
I understand you, but if you remove QMatrix now, then LCL won't work with 4.6 bindings, since we use QMatrix in LCL.

Well the proper thing would have been to replace QMatrix with QTransform to have code w/o ifdefs that can use 4.5 and 4.6.

But when I noticed it was possible to add QMatrix manually, I did so to reduce the need for replacing QMatrix in the short term. But eventually, probably with 4.7, you will have to.

zeljko
to Den Jean
Den Jean wrote 10 lines
On Monday 18 January 2010 20:18:51 zeljko wrote: > I understand you, but if you remove QMatrix now, then LCL won't work with > 4.6 bindings, since we use QMatrix in LCL. Well the proper thing would have been to replace QMatrix with QTransform to have code w/o ifdefs that can use 4.5 and 4.6. But when I noticed it was possible to add QMatrix manually, I did so to reduce the need for replacing QMatrix in the short term. But eventually, probably with 4.7, you will have to.

ok, I'll do my best.

zeljko

zeljko
to Den Jean: Well the proper thing would have been to replace QMatrix with QTransform to have code w/o…
Den Jean wrote 10 lines
On Monday 18 January 2010 20:18:51 zeljko wrote: > I understand you, but if you remove QMatrix now, then LCL won't work with > 4.6 bindings, since we use QMatrix in LCL. Well the proper thing would have been to replace QMatrix with QTransform to have code w/o ifdefs that can use 4.5 and 4.6. But when I noticed it was possible to add QMatrix manually, I did so to reduce the need for replacing QMatrix in the short term. But eventually, probably with 4.7, you will have to.

Done. Lazarus svn r 23523 commited.