From d3637f380ccca26a281331a02ce76ed60e84cfe3 Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Sat, 18 Nov 2023 12:31:00 +0100 Subject: Turn free space label into a flat button The usage of a label to show this space information is problematic because there are features/actions hidden behind clicking the label. A button makes this clear. It also fixes the accessibility of this control because previously this info would never be read out by screen readers as it couldn't get keyboard focus. A side-effect of this change is that the free disk space bar looks more normal with non-Breeze styles. This had been a long-standing issue. --- src/statusbar/dolphinstatusbar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/statusbar/dolphinstatusbar.h') diff --git a/src/statusbar/dolphinstatusbar.h b/src/statusbar/dolphinstatusbar.h index 983f5b6da..5cb1c4b60 100644 --- a/src/statusbar/dolphinstatusbar.h +++ b/src/statusbar/dolphinstatusbar.h @@ -121,6 +121,8 @@ private: */ void setExtensionsVisible(bool visible); + void updateContentsMargins(); + private: QString m_text; QString m_defaultText; -- cgit v1.3.1