Bug 366825 - Only show tabbar when necessary
Summary: Only show tabbar when necessary
Status: RESOLVED INTENTIONAL
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 3.0.1 Alpha
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-16 10:36 UTC by Jelena
Modified: 2016-08-16 13:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jelena 2016-08-16 10:36:47 UTC
Currently krita always shows the tabbar which lists the open files / views.

I prefer to have as much space for painting as possible (especially when changing to canvas-only mode using the tab key).

As a *first step* it would be nice if the tabbar would hide if there's only ONE file or view open.
A *second step* could be to hide the tabbar automatically and let it only appear if the user moves the cursor to the upper window border (at least when working in the canvas-only TAB mode).
Comment 1 Halla Rempt 2016-08-16 12:10:07 UTC
Hi Jelena,


I'm sorry, that is not possible technically. But if you switch to multi-window mode, the tabbar will be gone.
Comment 2 Jelena 2016-08-16 12:55:55 UTC
(In reply to Boudewijn Rempt from comment #1)

> I'm sorry, that is not possible technically. But if you switch to
> multi-window mode, the tabbar will be gone.

Thanks for your fast reply. You're right - the tabbar disappear in multiwindow mode. But unfortunately I get a title bar on top instead which consumes nearly as much space as the tabbar.

You say it's technically not possible to implement this idea. What I described in "Step 1" did NOT mean a tabbar which hides automatically and appears on hover. Rather my idea was to simply hide the tabbar permanently and only show it if another file or view gets opened. This is similar to what many tabbed web browsers do. Is this technically impossible as well?
Comment 3 Halla Rempt 2016-08-16 13:00:23 UTC
The problem is that the tabbar is part of the QMdiArea class (http://doc.qt.io/qt-5/qmdiarea.html) which doesn't expose the QTabBar's autohide property: http://doc.qt.io/qt-5/qtabwidget.html#tabBarAutoHide-prop.
Comment 4 Jelena 2016-08-16 13:16:19 UTC
That's bad luck. So I would have to send a feature request to the Qt developers whether they can expose the QTabBar's autohide property to the QMdiArea class? Do you think there's any chance that they would accept such a feature request?
Comment 5 Halla Rempt 2016-08-16 13:23:03 UTC
I doubt it, the Qt developers generally only react to actual patches, not to feature requests. And I just hacked around the limitation a bit to check whether my hunch was correct, and it is: if you somehow manage to access that attribute, the _tab_ is hidden, but the _bar_ is still shown, i.e., you don't win anything.
Comment 6 Jelena 2016-08-16 13:35:57 UTC
Ok. Thanks for investigating this.

Maybe Qt will add this feature one day and we can add it to Krita then. We'll see.

Thanks and keep up the great work!