Skip to content
Permalink
Browse files
improve message log resizing
  • Loading branch information
jef-n committed May 8, 2012
1 parent c09cc7f commit d8b081e35b6c805a6c72236cbf8c365958e21f4e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsmessagelogviewer.cpp
@@ -132,7 +132,6 @@ void QgsMessageLogViewer::logMessage( QString message, QString tag, int level )
w->setGridStyle( Qt::DotLine );
w->setEditTriggers( QAbstractItemView::NoEditTriggers );
w->setHorizontalHeaderLabels( QStringList() << tr( "Timestamp" ) << tr( "Message" ) << tr( "Level" ) );
w->horizontalHeader()->setResizeMode( QHeaderView::ResizeToContents );
tabWidget->addTab( w, tag );

tabWidget->setCurrentIndex( tabWidget->count() - 1 );
@@ -146,6 +145,8 @@ void QgsMessageLogViewer::logMessage( QString message, QString tag, int level )
w->setItem( n, 1, new QTableWidgetItem( message ) );
w->setItem( n, 2, new QTableWidgetItem( QString::number( level ) ) );
w->scrollToBottom();

w->horizontalHeader()->resizeSections( QHeaderView::ResizeToContents );
}

void QgsMessageLogViewer::closeTab( int index )

0 comments on commit d8b081e

Please sign in to comment.