Opened 18 years ago

Closed 18 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@… 18 years ago.

Download all attachments as: .zip

Change History (4)

by pebender@…, 18 years ago

Attachment: cast.diff added

comment:1 by pebender@…, 18 years ago

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

comment:2 by Anduin Withers, 18 years ago

Fix by other unlikely modifies introduced in [18836].

comment:3 by Anduin Withers, 18 years ago

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