Improve side by side agendaview layout
The minimum width of a single agendaview is now based on the minimum size of the daylabels. (AlternateLabel) This avoids breaking the layout (overlapping labels) when many days are selected. Accordingly the MultiAgendaView gets a horizontal Scrollbar if the day labels no longer fit without scrolling. To avoid overlapping Calendar labels when many calendars are selected the Calendar labels are now elided to fit into the width of the according AgendaWidget. The indent handling in the alternatelabel was necessary to avoid resize loops where the "squeezed" text did not fit inside the QLabel (because of the indent) and so triggered a resize by setting Text that caused the label to expand.
parent
8d0fb529
Please register or sign in to comment