Am 28.12.2012 00:25, schrieb René Reucher:
> Am 27.12.2012 22:14, schrieb Bache-Wiig Jens:
>> That said, it should be relatively easy to work around this in an
>> application by creating a custom proxy style:
>>
>> class MyProxyStyle : public QProxyStyle
>> {
>> public:
>> int styleHint(StyleHint hint, const QStyleOption *option = 0,
>> const QWidget *widget = 0, QStyleHintReturn *returnData
>> = 0) const {
>> if (hint == QStyle:: SH_ItemView_ActivateItemOnSingleClick)
>> return 0;
>> return QProxyStyle::styleHint(hint, option, widget, returnData);
>> }
>> };
>>
>> Just set this as your application style and it should revert to the old
>> behaviour regardless what your existing application style is.
> Thanks for that. Yes, I think it should work. However, as I offer all
> available styles to my users for selection I'd have to do this for every
> single style... and it's probably not really usable when querying them
> via QStyleFactory::keys(). I actually don't want to change them
> "hard-coded", but it seems there's no other solution...
Nevermind... I somehow overlooked the words "regardless what your
existing application style is" :). I'll try it and let you know the results!
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest