| Summary: | Only show tabbar when necessary | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Jelena <jelena79> |
| Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | normal | CC: | halla |
| Priority: | NOR | ||
| Version First Reported In: | 3.0.1 Alpha | ||
| Target Milestone: | --- | ||
| Platform: | macOS (DMG) | ||
| OS: | macOS | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Jelena
2016-08-16 10:36:47 UTC
Hi Jelena, I'm sorry, that is not possible technically. But if you switch to multi-window mode, the tabbar will be gone. (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? 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. 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? 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. 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! |