D8991: Use kSqueezedTextLabel for the label text on the statusbar
Ahmad Samir
noreply at phabricator.kde.org
Fri Nov 24 23:30:27 GMT 2017
ahmadsamir created this revision.
REVISION SUMMARY
Following up from https://phabricator.kde.org/D8927; use kSqueezedTextLabel for the label text on the statusbar:
- This simplifies the code in updateLabelText()
- Remove the eventFilter as it's not needed any more since kSqueezedTextLabel has a resizeEvent function
- Specify a stretch factor, 1, for m_label, m_zoomSlider and m_spaceInfo, this prevents the changing of the width of m_label when the label text is updated from changing the widths of the zoomSlider and the spaceInfo widgets as that is a bit too jumpy.
(Thanks to the code of konversation statusbar for the hint about using the stretch factor in addWidget()).
REPOSITORY
R318 Dolphin
REVISION DETAIL
https://phabricator.kde.org/D8991
AFFECTED FILES
src/statusbar/dolphinstatusbar.cpp
src/statusbar/dolphinstatusbar.h
To: ahmadsamir
Cc: #dolphin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20171124/f32adf45/attachment.htm>
More information about the kfm-devel
mailing list