D5724: messagelist: fix horizontal scrollbar when applying column sizes

David Faure noreply at phabricator.kde.org
Fri May 5 23:39:33 BST 2017


dfaure created this revision.
Restricted Application added a project: KDE PIM.

REVISION SUMMARY
  On startup the column sizes were calculated for a viewport without
  vertical scrollbar, and then not adjusted when the vertical scrollbar
  later appears. My fix is to simply always recalculate column sizes
  when the viewport is resized at any point. If I resize the mainwindow
  I still don't want a horizontal scrollbar under the messagelist.
  
  This removes the need for showEvent since any change of size triggers
  resizeEvent anyway. I also can't see any use for recalculating the
  sizes on model reset (e.g. switching folders), QHeaderView appears to
  just keep the column sizes when doing that (might be my own QHeaderView
  fix, actually).

TEST PLAN
  starting kmail, switching folders, resizing columns...

REPOSITORY
  R94 PIM: Message Library

BRANCH
  Applications/17.04

REVISION DETAIL
  https://phabricator.kde.org/D5724

AFFECTED FILES
  messagelist/src/core/view.cpp

To: dfaure, mlaurent
Cc: #kde_pim, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170505/a96ba690/attachment.html>


More information about the kde-pim mailing list