Make KStyle honour KDE wide single-click behaviour

Andreas Pakulat apaku at gmx.de
Tue Jun 10 22:44:37 BST 2008


Hi,

as I'm not sure its allowed for KDE styles (due to being loadable inside
plain Qt apps) to use KGlobalSettings I'm posting for review.

The attached patches makes KStyle provide the proper styleHint() for
QStyle::SH_ItemView_ActivateItemOnSingleClick, which means reading the
KDE wide setting for single vs. double click and returning that. I
consider this a bugfix as currently any itemview emits the activated()
signal only when double-clicking items - on all platforms, regardless of
the kde-wide setting.

Andreas

-- 
You possess a mind not merely twisted, but actually sprained.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_kstyle_useSingleClick.diff
Type: text/x-diff
Size: 400 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080610/6eec0cab/attachment.diff>


More information about the kde-core-devel mailing list