KTabBar/QTabBar and documentMode

Jaroslaw Staniek staniek at kde.org
Fri Dec 4 01:27:08 UTC 2015


On Thursday, 3 December 2015, René J.V. <rjvbertin at gmail.com> wrote:
> Hi,
>
> I've been looking into ways to configure (improve) the look and feel
using the native platform theme on OS X, and was reminded quite quickly
about one of the nuisances that can arise with the default look of the
native widget used by QTabBar. It's easy to reach the number of open tabs
where the underlying system starts truncating text, replacing it with an
ellipsis. Adding a close button doesn't help of course; this affected the
tabbed document editor from KDevelop4, for instance.
>
> What I had not realised was that QTabBar provides a documentMode exactly
for this reason/application, which switches the widget to a mode more
appropriate for multi-tab document views, on OS X. I see that Kate4 used to
set that mode (makes you wonder why KDevelop4 didn't benefit from that),
but the mode switch has disappeared from the current Kate code.
> The only mention of the mode I've seen to date in KF5 frameworks code is
in a comment (!) in kdelibs4support (src/kdeui/k4style.cpp).
>

Hi, that's one of my hints from 2010
https://blogs.kde.org/2010/09/29/elegance-4-tab-bar-uncluttered :)

Definitely apps could be reviewed re the clutter even on Linux, KDE HIG can
help too. I am not sure if automatic solutions are possible for the KF
level.



> I'm a bit early in asking this in that I haven't yet been able to test
neither Kate nor KDevelop, but is there an "official" or consensual opinion
about this (e.g. applications should call QTabBar::setDocumentMode
themselves when appropriate ... and can be patched if they don't)?
>
> R.
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>

-- 
regards, Jaroslaw Staniek

KDE:
: A world-wide network of software engineers, artists, writers, translators
: and facilitators committed to Free Software development - http://kde.org
Calligra Suite:
: A graphic art and office suite - http://calligra.org
Kexi:
: A visual database apps builder - http://calligra.org/kexi
Qt Certified Specialist:
: http://www.linkedin.com/in/jstaniek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151204/0bb1414f/attachment.html>


More information about the Kde-frameworks-devel mailing list