https://bugs.kde.org/show_bug.cgi?id=402904
--- Comment #1 from Dominik Haumann <[email protected]> --- The correct approach to this is in my opinion to hide information in the statusbar that is less relevant. Example: If the statusbar shrinks, it should first hide e.g. amount of lines, then amount of words, then highlighting, etc... The correct solution to this approach would be to have a dedicated layout, let's call it StatusBarLayout, derived from QLayout. Indeed, we are not the first ones having this problem, as such a solution to this problem exists: https://github.com/KDE/okteta/blob/master/libs/kasten/gui/shell/statusbarlayout.h Unfortunately, this solution simply hides the last N widgets that do not fit. This is not exactly what I wrote above, but maybe that would already solve the problem nicely. A very sophisticated solution would be a StatusBarLayout that tells its widgets to use a "compact notation" if possible. "Line 1, column 1" could then turn into "L1, C1" or so, making room for other widgets. In addition, the StatusBarLayout could have a function addWidget(Widget *, int priority), where lower priority values would indicate that these widgets should be hidden first (or put into compact notation). Thoughts on this? Volunteers? The StatusBarLayout above is LGPLv2+, so compatible with what we would need. It could act as base. -- You are receiving this mail because: You are watching all bug changes.
