Changeset 83e07f7194 in tspsg


Ignore:
Timestamp:
Sep 13, 2012, 11:47:19 AM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
6652ac66a4
Parents:
2fcdd7bfdf
git-author:
Oleksii Serdiuk <contacts@…> (09/13/12 11:47:19)
git-committer:
Oleksii Serdiuk <contacts@…> (09/13/12 13:43:55)
Message:

Use QApplication::palette() instead of QPalette() for default colors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/defaults.h

    r2fcdd7bfdf r83e07f7194  
    108108#endif // Q_OS_SYMBIAN
    109109//! Default solution text color
    110 #define DEF_TEXT_COLOR QPalette().color(QPalette::Text)
     110#define DEF_TEXT_COLOR QApplication::palette().color(QPalette::Text)
    111111//! Default selected candidate color
    112112#define DEF_SELECTED_COLOR "#008000"
     
    114114#define DEF_ALTERNATE_COLOR "#A00000"
    115115//! Default table border color
    116 #define DEF_TABLE_COLOR QPalette().color(QPalette::AlternateBase)
     116#define DEF_TABLE_COLOR QApplication::palette().color(QPalette::AlternateBase)
    117117////! Default solution background color
    118 //#define DEF_BACKGROUND_COLOR QPalette().color(QPalette::Base)
     118//#define DEF_BACKGROUND_COLOR QApplication::palette().color(QPalette::Base)
    119119
    120120#ifndef QT_NO_PRINTER
Note: See TracChangeset for help on using the changeset viewer.