[netinstall] Introduce a custom class for the Tree Widget

This commit is contained in:
Adriaan de Groot 2022-05-17 14:38:44 +02:00
parent 67ad12c2d0
commit 6bf710bed3
2 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,3 @@
#include <QTreeView>
using GroupsTreeView = QTreeView;

View File

@ -36,13 +36,13 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="widgetResizable"> <property name="widgetResizable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QTreeView" name="groupswidget"> <widget class="GroupsTreeView" name="groupswidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>981</width> <width>981</width>
<height>407</height> <height>410</height>
</rect> </rect>
</property> </property>
<property name="font"> <property name="font">
@ -63,6 +63,13 @@ SPDX-License-Identifier: GPL-3.0-or-later
</item> </item>
</layout> </layout>
</widget> </widget>
<customwidgets>
<customwidget>
<class>GroupsTreeView</class>
<extends>QTreeView</extends>
<header>groupstreeview.h</header>
</customwidget>
</customwidgets>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>