[PATCH] CapsLock check

Matthew Woehlke mw_triad at users.sourceforge.net
Thu Sep 4 00:43:57 BST 2008


Oswald Buddenhagen wrote:
> On Sun, Aug 31, 2008 at 07:14:35PM +0200, Alessandro Diaferia wrote:
>> I got this patch but i'd like to know why the eventFilter isn't called
>> in the kdesu dialog..
>>
> you need to install the event filter on the entire dialog, not just the
> password edit.
> 
> btw, unless KColorScheme::adjustForeground() does something weird, it
> should not be necessary to intialize p with the widget's current palette
> (just try it).

Cool if it works, but that assumes that the palette is initialized to... 
well, I guess the correct default palette, yes? Just want to make sure.

(The palette there is in/out, after all, hence why it is a void function 
named "adjust", though to be honest I forget why I made it that way as 
opposed to returning a new QPalette... Too late to change it now ;-).)

-- 
Matthew
If a signature
is not read by anyone,
does it make a sound?





More information about the kde-core-devel mailing list