[PATCH] Make is possible to override the system wide setting for AutoSelection

Ingo Klöcker kloecker at kde.org
Sat Dec 13 21:36:09 GMT 2003


the attached patch makes it possible for the developer of an application 
to disable AutoSelection (i. e. the inappropriately labeled 
"Automatically select icons" option in the Mouse settings) even if the 
user enabled it in the Mouse settings. This is for example necessary 
for the folder list in KMail. Currently with AutoSelection enabled the 
folder under the mouse cursor will be highlighted (after a short 
delay). But then the highlighted folder will no longer correspond to 
the current folder (i.e. the folder of which the contents is displayed 
in the message list). cf. http://bugs.kde.org/show_bug.cgi?id=70307

Therefore we'd like to be able to force AutoSelection to off in KMail. 
Sorry, for the not-so-nice method names. I couldn't come up with 
something better. I'm a bit concerned about the similarity with
  void activateAutomaticSelection ()
  void deactivateAutomaticSelection ()
  bool automaticSelection () const
So if you have a suggestion for better method names...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: klistview-disable_autoSelection.diff
Type: text/x-diff
Size: 2592 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031213/6c7c0d7a/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031213/6c7c0d7a/attachment.sig>

More information about the kde-core-devel mailing list