Opened 11 years ago

Closed 11 years ago

#5840 closed defect (fixed)

Qt enum Casting Failure with Qt 4.5-snapshot and gcc 4.3.0

Reported by: pebender@… Owned by: Isaac Richards
Priority: minor Milestone: 0.22
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

When I build trunk against Qt4.5.0-snapshot-20081018 using gcc 4.3.0, compilation fails because it cannot figure out to cast two Qt enums that are being or-ed together.

I have attached a patch that fixes the problem by explicitly casting the enums to ints. The patch also changes Qt::KeyButtonMask? to Qt::KeyboardModifierMask? per the qt 3 to qt 4 porting instructions.

Attachments (1)

cast.diff (1.0 KB) - added by pebender@… 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by pebender@…

Attachment: cast.diff added

comment:1 Changed 11 years ago by pebender@…

This appears to have been fixed by changeset #18836. Please close.

comment:2 Changed 11 years ago by Anduin Withers

Fix by other unlikely modifies introduced in [18836].

comment:3 Changed 11 years ago by Anduin Withers

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.