]> cloud.milkyroute.net Git - dolphin.git/commit
Use kSqueezedTextLabel for the label text on the statusbar
authorAhmad Samir <a.samirh78@gmail.com>
Sat, 25 Nov 2017 17:25:34 +0000 (18:25 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sat, 25 Nov 2017 17:29:23 +0000 (18:29 +0100)
commit11e2b186af64e5a962f5020be100eafc28e50e18
tree344ef0cdea13112602be7e8e2c1eb6bac92a5141
parenta99348551676804ecd2488aa863b19c013db2425
Use kSqueezedTextLabel for the label text on the statusbar

Summary:
Following up from 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()).

Reviewers: elvisangelaccio

Subscribers: elvisangelaccio, #dolphin

Differential Revision: https://phabricator.kde.org/D8991
src/statusbar/dolphinstatusbar.cpp
src/statusbar/dolphinstatusbar.h