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 <QVBoxLayout>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QHeaderView>
|
||||||
|
|
||||||
#include "editdevicedialog.h"
|
#include "editdevicedialog.h"
|
||||||
|
|
||||||
|
@ -19,7 +20,10 @@ DeviceWidget::DeviceWidget(QWidget *parent) :
|
||||||
deviceView.resizeColumnsToContents();
|
deviceView.resizeColumnsToContents();
|
||||||
deviceView.resizeRowsToContents();
|
deviceView.resizeRowsToContents();
|
||||||
deviceView.setAlternatingRowColors( true );
|
deviceView.setAlternatingRowColors( true );
|
||||||
|
deviceView.setShowGrid( false );
|
||||||
deviceView.setSelectionBehavior( QAbstractItemView::SelectRows );
|
deviceView.setSelectionBehavior( QAbstractItemView::SelectRows );
|
||||||
|
deviceView.horizontalHeader()->setStretchLastSection( true );
|
||||||
|
deviceView.verticalHeader()->hide();
|
||||||
connect( &deviceView, SIGNAL(clicked(const QModelIndex &)), this, SLOT(listActivated(const QModelIndex &)) );
|
connect( &deviceView, SIGNAL(clicked(const QModelIndex &)), this, SLOT(listActivated(const QModelIndex &)) );
|
||||||
|
|
||||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue