Skip to content

Commit

Permalink
Reduce margins; hide row header; use DotLine for grid; reduce spacing…
Browse files Browse the repository at this point in the history
… between rows
  • Loading branch information
NathanW2 authored and jef-n committed Nov 18, 2011
1 parent 2ab61ff commit f0f8a12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgsmessagelogviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ void QgsMessageLogViewer::logMessage( QString message, QString tag, int level )
else
{
w = new QTableWidget( 0, 3, this );
w->verticalHeader()->setDefaultSectionSize( 16 );
w->verticalHeader()->setVisible( false );
w->setGridStyle( Qt::DotLine );
w->setEditTriggers(QAbstractItemView::NoEditTriggers);
w->setHorizontalHeaderLabels( QStringList() << tr( "Timestamp" ) << tr( "Message" ) << "Level" );
tabWidget->addTab( w, tag );
}
Expand Down
4 changes: 2 additions & 2 deletions src/ui/qgsmessagelogviewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
</property>
<layout class="QGridLayout">
<property name="margin">
<number>9</number>
<number>0</number>
</property>
<property name="spacing">
<number>6</number>
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
Expand Down

0 comments on commit f0f8a12

Please sign in to comment.