From 863b1d00d048c225c9f8061edbc651e173986205 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Fri, 28 Apr 2023 13:57:23 +0200 Subject: [PATCH] network: Add posibility to resize componants of window. --- src/View/ui/Network.ui | 308 +++++++++++++++++++++-------------------- 1 file changed, 160 insertions(+), 148 deletions(-) diff --git a/src/View/ui/Network.ui b/src/View/ui/Network.ui index 134ce153..9235c0dc 100644 --- a/src/View/ui/Network.ui +++ b/src/View/ui/Network.ui @@ -15,159 +15,171 @@ </property> <widget class="QWidget" name="centralwidget"> <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0" colspan="2"> - <layout class="QHBoxLayout" name="horizontalLayout_8"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_graph"/> - </item> - </layout> - </item> - <item row="1" column="0"> - <layout class="QVBoxLayout" name="verticalLayout_9"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_10"> - <item> - <widget class="QPushButton" name="pushButton_26"> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>ressources/gtk-sort-descending.png</normaloff>ressources/gtk-sort-descending.png</iconset> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="pushButton_27"> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>ressources/go-up2.png</normaloff>ressources/go-up2.png</iconset> - </property> - </widget> - </item> + <item row="0" column="0"> + <widget class="QSplitter" name="splitter_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <widget class="QWidget" name=""> + <layout class="QHBoxLayout" name="horizontalLayout_8"> <item> - <widget class="QPushButton" name="pushButton_28"> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>ressources/go-down1.png</normaloff>ressources/go-down1.png</iconset> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="pushButton_reverse"> - <property name="text"> - <string>Reverse</string> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_9"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> + <layout class="QHBoxLayout" name="horizontalLayout_graph"/> </item> </layout> - </item> - <item> - <widget class="QTableView" name="tableView_reachs"> - <property name="minimumSize"> - <size> - <width>650</width> - <height>150</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>200</height> - </size> - </property> + </widget> + <widget class="QSplitter" name="splitter"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <widget class="QWidget" name=""> + <layout class="QVBoxLayout" name="verticalLayout_9"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_10"> + <item> + <widget class="QPushButton" name="pushButton_26"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>ressources/gtk-sort-descending.png</normaloff>ressources/gtk-sort-descending.png</iconset> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_27"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>ressources/go-up2.png</normaloff>ressources/go-up2.png</iconset> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_28"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>ressources/go-down1.png</normaloff>ressources/go-down1.png</iconset> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_reverse"> + <property name="text"> + <string>Reverse</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_9"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QTableView" name="tableView_reachs"> + <property name="minimumSize"> + <size> + <width>650</width> + <height>150</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + </widget> + </item> + </layout> </widget> - </item> - </layout> - </item> - <item row="1" column="1"> - <layout class="QVBoxLayout" name="verticalLayout_8"> - <item> - <layout class="QHBoxLayout" name="horizontalLayout_9"> - <item> - <widget class="QPushButton" name="pushButton_23"> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>ressources/gtk-sort-descending.png</normaloff>ressources/gtk-sort-descending.png</iconset> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="pushButton_24"> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>ressources/go-up2.png</normaloff>ressources/go-up2.png</iconset> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="pushButton_25"> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset> - <normaloff>ressources/go-down1.png</normaloff>ressources/go-down1.png</iconset> - </property> - </widget> - </item> - <item> - <spacer name="horizontalSpacer_8"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <widget class="QTableView" name="tableView_nodes"> - <property name="minimumSize"> - <size> - <width>0</width> - <height>150</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>200</height> - </size> - </property> + <widget class="QWidget" name=""> + <layout class="QVBoxLayout" name="verticalLayout_8"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_9"> + <item> + <widget class="QPushButton" name="pushButton_23"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>ressources/gtk-sort-descending.png</normaloff>ressources/gtk-sort-descending.png</iconset> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_24"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>ressources/go-up2.png</normaloff>ressources/go-up2.png</iconset> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="pushButton_25"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset> + <normaloff>ressources/go-down1.png</normaloff>ressources/go-down1.png</iconset> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_8"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QTableView" name="tableView_nodes"> + <property name="minimumSize"> + <size> + <width>0</width> + <height>150</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>16777215</height> + </size> + </property> + </widget> + </item> + </layout> </widget> - </item> - </layout> + </widget> + </widget> </item> </layout> </widget> -- GitLab