Small cosmetic changes to the list of devices in DeviceWidget
This commit is contained in:
parent
bd71667cad
commit
3890fb1bc4
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QMessageBox>
|
||||
#include <QHeaderView>
|
||||
|
||||
#include "editdevicedialog.h"
|
||||
|
||||
|
@ -19,7 +20,10 @@ DeviceWidget::DeviceWidget(QWidget *parent) :
|
|||
deviceView.resizeColumnsToContents();
|
||||
deviceView.resizeRowsToContents();
|
||||
deviceView.setAlternatingRowColors( true );
|
||||
deviceView.setShowGrid( false );
|
||||
deviceView.setSelectionBehavior( QAbstractItemView::SelectRows );
|
||||
deviceView.horizontalHeader()->setStretchLastSection( true );
|
||||
deviceView.verticalHeader()->hide();
|
||||
connect( &deviceView, SIGNAL(clicked(const QModelIndex &)), this, SLOT(listActivated(const QModelIndex &)) );
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue