Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#407 closed bug (fixed)

OS X dialogs don't display current color selection

Reported by: gsherman Owned by: gsherman
Priority: critical: causes crash or data corruption Milestone:
Component: GUI Version: 0.8
Keywords: Cc: telwertowski@…
Must Fix for Release: Yes Platform: OS X
Platform Version: Awaiting user input: no

Description

Dialogs that should display a color selection on a button (eg. vector properties fill and outline color, project properties background color, selection color) don't. The buttons are displayed with no color. This worked prior to the recent round of commits.

Change History (3)

comment:1 by gsherman, 18 years ago

From Tom:

I think the fix is to create a color button subclass. The Mac OS appears to be enforcing UI uniformity by requiring that the button appearance be controlled by an overall theme.

Setting the background for QToolButton has never worked in Qt4/Mac. Most QGIS color selectors were previously color labels next to uncolored QPushButtons. These were recently converted for Windows to single QToolButtons.

Qt Designer has a color button for the QPalette object which works like ours should. Trolltech created a QToolButton subclass with a custom paintEvent method to draw it so this is probably the way to do it.

comment:2 by gsherman, 18 years ago

Resolution: fixed
Status: newclosed

Fixed at r6251 (thanks Tom)

comment:3 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.