[PATCH] Fix deprecated warnings in klistview.cpp

David Faure faure at kde.org
Fri Nov 5 09:42:38 GMT 2004

On Friday 05 November 2004 07:26, Ismail Donmez wrote:
> Hi all,
> Attached a small patch which replaces KApplication::keyboardModifiers() with 
> KApplication::keyboardMouseState() in klistview.cpp to fix deprecated 
> warnings.
> Can someone please review?

In addition to what Lubos said (keep the bit comparisons, using "&"),

 -  uint keybstate = KApplication::keyboardModifiers();
+  uint keybstate = KApplication::keyboardMouseState();
keyboardMouseState returns a ButtonState, better use that type.

David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

More information about the kde-core-devel mailing list