How to port KTabBar::mouseMiddleClick?
David Gil Oliva
davidgiloliva at gmail.com
Tue Nov 11 09:50:57 UTC 2014
El 10/11/2014 19:19, "Nicolás Alvarez" <nicolas.alvarez at gmail.com> escribió:
>
> 2014-11-09 7:28 GMT-03:00 Frank Reininghaus <frank78ac at googlemail.com>:
> > Hi,
> >
> > 2014-11-06 2:59 GMT+01:00 Milian Wolff:
> >> Hey all,
> >>
> >> what do I do to get middle-click-closes-tab in Qt 5 without KTabBar?
> >> Previously, we used KTabBar and its mouseMiddleClick signal.
> >
> > AFAIK, currently the only solution is to subclass QTabBar, override
> > the mousePressEvent method and emit a signal from there. Dolphin uses
> > this approach. There were many other reasons why Emmanuel created a
> > custom QTabBar subclass for Dolphin though .
> >
> > If many apps need the "middle click to close" bevavior, then
> > reanimating KTabBar or getting this functionality into QTabBar might
> > be better than making every app create its own tab bar class.
>
> Or maybe contribute mouseMiddleClick to QTabBar?
> (I'm not volunteering :P)
I am, but only if it can wait until after the 29 of November. Is it ok?
Cheers,
David Gil
>
> --
> Nicolás
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20141111/b7bc775d/attachment.html>
More information about the Kde-frameworks-devel
mailing list