[PATCH] for Borland & widget-colors

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Fri Oct 1 06:24:11 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Holger Schroeder schrieb:
| Hi,
|
| was this really intended ?
|
| <snip>
|
| +    if ( !( pal == QApplication::palette() ) )
| +        QApplication::setPalette( pal );
| +
| +    // now setup the palette for special widgets
| +    // only set the values which are different from standard values...
| +
| +    //Popup Menu
| +    pal = QApplication::palette();
| +    qc = getQColorFromSys( COLOR_MENU );
|      pal.setBrush( QPalette::Active, QColorGroup::Background, qc );
|      pal.setBrush( QPalette::Inactive, QColorGroup::Background, qc );
| -    pal.setBrush( QPalette::Disabled, QColorGroup::Background, qc );
| +    pal.setBrush( QPalette::Inactive, QColorGroup::Background, qc );
|
| so you will end up with setting the same thing twice in the two last
lines...

This is one of the nice copy'n'paste errors... I send a new patch
directly to Chris.

Thx
Christian


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBXNvrnNKwkgf+zVMRAvXmAJ4m0PNyJJF0mDfvPSJ+hPeBRD+t1wCfU0Qr
/13NGl6a7Q7GgokGuSlX5dw=
=k7/8
-----END PGP SIGNATURE-----


More information about the kde-cygwin mailing list