Changeset 3524 in vbox
- Timestamp:
- Jul 10, 2007 12:58:55 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22748
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r2981 r3524 136 136 QIApplication a (argc, argv); 137 137 138 /* weird palette test */ 139 #if 0 138 /* some gui qt-styles has it's own different color for buttons 139 * causing tool-buttons and dropped menu displayed in 140 * different annoying color, so fixing palette button's color */ 140 141 QPalette pal = a.palette(); 141 pal.setColor (QColorGroup::Background, Qt::red); 142 pal.setBrush (QColorGroup::Background, 143 QBrush (QColor(), 144 QPixmap::fromMimeSource ("about_16px.png"))); 142 pal.setColor (QPalette::Disabled, QColorGroup::Button, 143 pal.color (QPalette::Disabled, QColorGroup::Background)); 144 pal.setColor (QPalette::Active, QColorGroup::Button, 145 pal.color (QPalette::Active, QColorGroup::Background)); 146 pal.setColor (QPalette::Inactive, QColorGroup::Button, 147 pal.color (QPalette::Inactive, QColorGroup::Background)); 145 148 a.setPalette (pal); 146 #endif147 149 148 150 #ifdef Q_WS_X11
Note:
See TracChangeset
for help on using the changeset viewer.