D8991: Use kSqueezedTextLabel for the label text on the statusbar
Ahmad Samir
noreply at phabricator.kde.org
Sat Nov 25 15:20:16 GMT 2017
ahmadsamir added a comment.
- To reproduced the issue of the widgets on the statusbar, we just need to remove the stretch factor from the addWidget() call, or set it to zero (default). Here's a screencast showing the issue:
F5511010: statusbar-ksqueezetextlabel.ogv <https://phabricator.kde.org/F5511010>
Setting the stretch factor fixes that issue. From http://doc.qt.io/qt-5/qboxlayout.html#addWidget:
> If the stretch factor is 0 and nothing else in the QBoxLayout has a stretch factor greater than zero, the space is distributed according to the QWidget:sizePolicy() of each widget that's involved.
- I'll update the diff; you're right, using KSqueezedTextLabel* works (and I actually missed changing the m_label type in the .h file).
REPOSITORY
R318 Dolphin
REVISION DETAIL
https://phabricator.kde.org/D8991
To: ahmadsamir
Cc: elvisangelaccio, #dolphin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20171125/c6a940cc/attachment.htm>
More information about the kfm-devel
mailing list