Make KStyle honour KDE wide single-click behaviour

Andreas Pakulat apaku at gmx.de
Tue Jun 10 23:39:33 BST 2008


On 11.06.08 00:34:29, Andreas Pakulat wrote:
> On 10.06.08 23:44:37, Andreas Pakulat wrote:
> > 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.
> 
> Here's an updated one (which also compiles ;). Talked to David a bit on
> IRC and he pointed out that using KGlobalSettings::singleClick() is not
> a problem as long as I create a kcomponentdata before that. So thats
> what I changed.
> 
> Anybody has objections against this patch?

Second try :)

Andreas

-- 
You are a very redundant person, that's what kind of person you are.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs_kstyle_useSingleClick.diff
Type: text/x-diff
Size: 977 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080611/4382381f/attachment.diff>


More information about the kde-core-devel mailing list