Changeset 317 for trunk/src/gui/kernel


Ignore:
Timestamp:
Nov 13, 2009, 6:12:11 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Initialize the default color palette using SYSCLR_DIALOGBACKGROUND to automatically calculate roles which we don't inherit explicitly from PM. This fixes the black alternate rows in table views.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r308 r317  
    245245    QApplication::setFont(iconFont, "QDockWidgetTitle");
    246246
    247     QPalette pal;
     247    // let QPallette calculate all colors automatically based on the
     248    // base PM window background color -- to be on the safe side in case if we
     249    // don't set some role explicitly below (like QPalette::AlternateBase)
     250    QPalette pal = QPalette(QColor(qt_sysclr2qrgb(SYSCLR_DIALOGBACKGROUND)));
    248251
    249252    pal.setColor(QPalette::WindowText,
Note: See TracChangeset for help on using the changeset viewer.