Manager: Make the machine list resizable

This commit is contained in:
Alexander Babikov
2025-08-01 18:07:50 +05:00
parent d83697609c
commit 2fe482e1af
2 changed files with 77 additions and 79 deletions

View File

@@ -138,6 +138,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
// Load and apply settings
loadSettings();
ui->splitter->setSizes({ui->detailsArea->width(), (ui->listView->minimumWidth() * 2)});
// Set up search bar
connect(ui->searchBar, &QLineEdit::textChanged, this, &VMManagerMain::searchSystems);

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>815</width>
<width>820</width>
<height>472</height>
</rect>
</property>
@@ -16,9 +16,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>VMManagerMain</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>0</number>
@@ -33,9 +30,16 @@
<number>0</number>
</property>
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QWidget" name="widget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@@ -59,23 +63,17 @@
<item>
<widget class="QListView" name="listView">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<width>125</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
@@ -93,8 +91,6 @@
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="detailsArea" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="leftMargin">
@@ -111,6 +107,7 @@
</property>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>