This commit is contained in:
Martin Rotter 2013-11-24 18:49:56 +01:00
parent 54c8b6a3c2
commit 233832f496

View File

@ -12,6 +12,11 @@ MessagesView::MessagesView(QWidget *parent) : QTreeView(parent) {
setModel(m_proxyModel); setModel(m_proxyModel);
// FIXME: Sometimes ASSERT occurs if model provides less columns
// than we set resize mode for.
qDebug("Loading MessagesView with %d columns.",
header()->count());
#if QT_VERSION >= 0x050000 #if QT_VERSION >= 0x050000
// Setup column resize strategies. // Setup column resize strategies.
header()->setSectionResizeMode(MSG_DB_ID_INDEX, QHeaderView::Interactive); header()->setSectionResizeMode(MSG_DB_ID_INDEX, QHeaderView::Interactive);