Re: kwidgetsaddons on OS X: menus become menu items

2017-02-09 Thread David Faure
On mardi 7 février 2017 10:21:33 CET René J.V. Bertin wrote:
> On Tuesday February 7 2017 01:15:23 Marko Käning wrote:
> 
> Hi,
> 
> >BTW, has this problem disappeared in the meantime?
> 
> Not really. The Qt error messages are no longer printed, but the underlying
> cause is still there. QActions that are added to a Mac native menu are
> reparented and cannot also be used elsewhere. I know David Faure has picked
> up on that a while back, I don't know if he has managed to get any clarity
> on the why and how of this regression (w.r.t. Qt4).

No, no idea, but this certainly can't be expected, the whole point of the 
QAction concept is to use the *same* QAction in menus, toolbars, context 
menus, and for shortcuts. So it's most definitely a Qt bug.

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



Re: kwidgetsaddons on OS X: menus become menu items

2017-02-07 Thread René J . V . Bertin
On Tuesday February 7 2017 01:15:23 Marko Käning wrote:

Hi,

>BTW, has this problem disappeared in the meantime?

Not really. The Qt error messages are no longer printed, but the underlying 
cause is still there. QActions that are added to a Mac native menu are 
reparented and cannot also be used elsewhere. I know David Faure has picked up 
on that a while back, I don't know if he has managed to get any clarity on the 
why and how of this regression (w.r.t. Qt4). 

There is 1 workaround that I know of: avoid the native menubar in applications 
that rely too heavily on reusing QActions . This is why QtCurve now offers that 
choice as an option on Mac.

I have no idea if Kate's official Mac build implements another solution; 
there's nothing in the code that suggests it in any way.

R.


Re: kwidgetsaddons on OS X: menus become menu items

2015-12-12 Thread René J . V . Bertin
René J.V. Bertin wrote:

> The widget is reparented away from the QMenu to the native menu view. If you
> show the menu in some other place (e.g. as a popup menu), the widget will not
> be there.

Actually I think this part *is* related: I noticed that the Bookmarks menu is 
supposed to appear also in the context menu of the main editor view.

R.

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: kwidgetsaddons on OS X: menus become menu items

2015-12-11 Thread René J . V . Bertin
On Friday December 11 2015 23:55:35 René J.V. Bertin wrote:

KActionMenu being derived from QWidgetAction I wonder if the following blurb 
from the QWidgetAction documentation is relevant here:

OS X: If you add a widget to a menu in the application's menu bar on OS X, the 
widget will be added and it will function but with some limitations:

The widget is reparented away from the QMenu to the native menu view. If you 
show the menu in some other place (e.g. as a popup menu), the widget will not 
be there.


R.
___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel