Commit 4d21f421 authored by Adriaan de Groot's avatar Adriaan de Groot 💬
Browse files

Show label (human-readable name) of sensor in column 1

In the table of sensors (for bar charts) show the label in column 1
(second, right after host) rather than hiding it at the end; this
makes it easier to distinguish the sensors which are **typically**
all "localhost, System/CPU Lo.../, %" and then the UI is cut off
(scroll right to see the remaining columns, including label).
parent c76325df
......@@ -198,6 +198,7 @@ DancingBarsSettings::DancingBarsSettings(QWidget* parent, const QString &name )
mView->setRootIsDecorated( false );
mView->setItemsExpandable( false );
mView->setModel( mModel );
mView->header()->moveSection( SensorModel::Label, 1 ); // Show the label after host (can't place it first because it's a treeview based on host)
pageLayout->addWidget( mView, 0, 0, 3, 1);
mEditButton = new QPushButton( i18n( "Edit..." ), page );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment