From kde-cygwin Fri Oct 01 04:24:11 2004 From: Christian Ehrlicher Date: Fri, 01 Oct 2004 04:24:11 +0000 To: kde-cygwin Subject: Re: [PATCH] for Borland & widget-colors Message-Id: <415CDBEB.1060206 () gmx ! de> X-MARC-Message: https://marc.info/?l=kde-cygwin&m=109660622108431 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Holger Schroeder schrieb: | Hi, | | was this really intended ? | | | | + 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----- _______________________________________________ kde-cygwin mailing list kde-cygwin@kde.org https://mail.kde.org/mailman/listinfo/kde-cygwin