Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3026 closed defect (fixed)

Merkaartor: recent incompatibility with Qt < 4.5

Reported by: gibson Owned by: cbro@…
Priority: major Milestone:
Component: merkaartor Version:
Keywords: Cc: "Bernd, Zeimetz", <bernd@…>


It may be intentional or not, but some recent changes brought an incompatibility with Qt versions smaller than 4.5.

The project file does not check for a specific version, so I assume it was by accident.

The function calls of the style:

QColorDialog::getColor(BgColor, this, tr("Select Color"), QColorDialog::ShowAlphaChannel);

were introduced with Qt 4.5, according to

Earlier versions need the simpler alternative function with less arguments.

The attached patch fixes the issue for me with Qt 4.4.3.

Attachments (1)

merkaartor-SVN-r21558-qt44.01.patch (7.9 KB) - added by gibson 10 years ago.
patch to fix compatibility with Qt < 4.5

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by gibson

patch to fix compatibility with Qt < 4.5

comment:1 Changed 10 years ago by Chris Browet

Resolution: fixed
Status: newclosed

(In [21565]) FIX : compilation with 4.4.3 (closes #3026; by gibson)

comment:2 Changed 10 years ago by Chris Browet

Cc: "Bernd Zeimetz" <bernd@…> added

Thanks, I'll trust you on this one.

It's been a while I don't have a Qt 4.4 available

Copy to Bernd because he asked me about Qt 4.4 compatibility at one point...

Note: See TracTickets for help on using tickets.