default column widths
This commit is contained in:
parent
4417a8888f
commit
3bc8c200f6
|
@ -19,7 +19,10 @@ DeviceWindow::DeviceWindow(QWidget *parent)
|
|||
sortProxy->setSourceModel(model);
|
||||
ui->widgetView->setModel(sortProxy);
|
||||
ui->widgetView->setSortingEnabled(true);
|
||||
ui->widgetView->sortByColumn(WidgetModel::Column::PortName, Qt::SortOrder::AscendingOrder);
|
||||
ui->widgetView->sortByColumn(WidgetModel::PortName, Qt::SortOrder::AscendingOrder);
|
||||
ui->widgetView->setColumnWidth(WidgetModel::Manufacturer, 128);
|
||||
ui->widgetView->setColumnWidth(WidgetModel::Description, 196);
|
||||
ui->widgetView->setColumnWidth(WidgetModel::SerialNumber, 96);
|
||||
|
||||
// model connections
|
||||
connect(ui->widgetView->selectionModel(), &QItemSelectionModel::currentChanged,
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
<property name="selectionBehavior">
|
||||
<enum>QAbstractItemView::SelectRows</enum>
|
||||
</property>
|
||||
<attribute name="horizontalHeaderStretchLastSection">
|
||||
<bool>true</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -88,7 +91,16 @@
|
|||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<widget class="QToolBar" name="toolBarPort">
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
<string>Port</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonFollowStyle</enum>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
|
@ -105,7 +117,16 @@
|
|||
</widget>
|
||||
<widget class="QToolBar" name="toolBarWidget">
|
||||
<property name="windowTitle">
|
||||
<string>toolBar_2</string>
|
||||
<string>Widget</string>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonFollowStyle</enum>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
|
|
Loading…
Reference in New Issue