Bug 323822

Summary: Regression: cannot resize columns in the message list widget
Product: [Applications] trojita Reporter: Jan Kundrát <jkt>
Component: Desktop GUIAssignee: Thomas Lübking <thomas.luebking>
Status: RESOLVED FIXED    
Severity: normal CC: trojita-bugs
Priority: NOR    
Version: git   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jan Kundrát 2013-08-21 08:10:37 UTC
Thomas, since commit bda1ce331b4a8d37c34b5224aef18cb9f268e836, it is no longer possible to resize individual fields in the header view of the message listing (MsgListWidget) via mouse when the server doesn't support the SORT extension. The reason for that is that the event filter eats the relevant mouse events and interprets them as a request to flip the sort order instead.

Could you please take a look? It might be neccessary to move the logic for sorting into the model and not handle that through the event filter on the widget.
Comment 1 Thomas Lübking 2013-08-21 09:20:45 UTC
Appending
" && static_cast<QWidget*>(o)->cursor().shape() == Qt::ArrowCursor" to the Press/Release/LeftButton conditon will do.

Either you inject it or I can provide a patch at ~18:30-19:00 CEST
Comment 2 Thomas Lübking 2013-08-23 04:40:12 UTC
Git commit 7d030ac1895c0546be80af6284d388b4be835368 by Thomas Lübking.
Committed on 21/08/2013 at 16:25.
Pushed by luebking into branch 'master'.

do not intercept linked header clicks for resizes

and shuffles
REVIEW: 112190

M  +15   -7    src/Gui/Window.cpp
M  +1    -0    src/Gui/Window.h

http://commits.kde.org/trojita/7d030ac1895c0546be80af6284d388b4be835368