diff options
| author | Ahmad Samir <[email protected]> | 2017-11-25 18:25:34 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2017-11-25 18:29:23 +0100 |
| commit | 11e2b186af64e5a962f5020be100eafc28e50e18 (patch) | |
| tree | 344ef0cdea13112602be7e8e2c1eb6bac92a5141 /src/dolphinpart_ext.cpp | |
| parent | a99348551676804ecd2488aa863b19c013db2425 (diff) | |
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
Diffstat (limited to 'src/dolphinpart_ext.cpp')
0 files changed, 0 insertions, 0 deletions
