Git commit 2533c10283daeda7bc249df076ea7b2d1853ffe9 by Jan Kundr?t.
Committed on 22/10/2013 at 14:52.
Pushed by jkt into branch 'master'.

GUI: remember column sizes automatically

This would get hit when the user resizes the window or any QSplitter, but it's a
bug that it wasn't saved automatically.

v3: Do not use any extra signals. Thanks to Thomas for review.

REVIEW: 113383

M  +2    -0    src/Gui/Window.cpp

http://commits.kde.org/trojita/2533c10283daeda7bc249df076ea7b2d1853ffe9

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index 109f86f..4eec797 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -577,6 +577,8 @@ void MainWindow::createWidgets()
     connect(msgListWidget->tree, SIGNAL(clicked(const QModelIndex &)), this, 
SLOT(msgListClicked(const QModelIndex &)));
     connect(msgListWidget->tree, SIGNAL(doubleClicked(const QModelIndex &)), 
this, SLOT(msgListDoubleClicked(const QModelIndex &)));
     connect(msgListWidget, SIGNAL(requestingSearch(QStringList)), this, 
SLOT(slotSearchRequested(QStringList)));
+    connect(msgListWidget->tree->header(), SIGNAL(sectionMoved(int,int,int)), 
m_delayedStateSaving, SLOT(start()));
+    connect(msgListWidget->tree->header(), 
SIGNAL(sectionResized(int,int,int)), m_delayedStateSaving, SLOT(start()));
 
     m_messageWidget = new CompleteMessageWidget(this, m_settings);
     connect(m_messageWidget->messageView, SIGNAL(messageChanged()), this, 
SLOT(scrollMessageUp()));

Reply via email to