1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Adjustable layout for launcher

This commit is contained in:
nordsoft
2023-04-10 20:33:02 +04:00
parent e2d0cd37e4
commit 49255e5a3f

View File

@@ -14,21 +14,6 @@
<string notr="true"/> <string notr="true"/>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<item> <item>
@@ -124,154 +109,166 @@
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_5"> <widget class="QSplitter" name="splitter">
<item> <property name="sizePolicy">
<widget class="QTreeView" name="allModsView"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<property name="selectionMode"> <horstretch>0</horstretch>
<enum>QAbstractItemView::SingleSelection</enum> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="selectionBehavior"> </property>
<enum>QAbstractItemView::SelectRows</enum> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
<property name="iconSize"> </property>
<size> <widget class="QTreeView" name="allModsView">
<width>24</width> <property name="selectionMode">
<height>24</height> <enum>QAbstractItemView::SingleSelection</enum>
</size> </property>
</property> <property name="selectionBehavior">
<property name="verticalScrollMode"> <enum>QAbstractItemView::SelectRows</enum>
<enum>QAbstractItemView::ScrollPerItem</enum> </property>
</property> <property name="iconSize">
<property name="horizontalScrollMode"> <size>
<enum>QAbstractItemView::ScrollPerPixel</enum> <width>24</width>
</property> <height>24</height>
<property name="sortingEnabled"> </size>
<bool>true</bool> </property>
</property> <property name="verticalScrollMode">
<property name="expandsOnDoubleClick"> <enum>QAbstractItemView::ScrollPerItem</enum>
<bool>false</bool> </property>
</property> <property name="horizontalScrollMode">
</widget> <enum>QAbstractItemView::ScrollPerPixel</enum>
</item> </property>
<item> <property name="sortingEnabled">
<widget class="QTabWidget" name="tabWidget"> <bool>true</bool>
<property name="currentIndex"> </property>
<number>0</number> <property name="expandsOnDoubleClick">
</property> <bool>false</bool>
<widget class="QWidget" name="tabInfo"> </property>
<attribute name="title"> </widget>
<string>Description</string> <widget class="QTabWidget" name="tabWidget">
</attribute> <property name="sizePolicy">
<layout class="QGridLayout" name="gridLayout_4"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<property name="leftMargin"> <horstretch>0</horstretch>
<number>4</number> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="topMargin"> </property>
<number>4</number> <property name="currentIndex">
</property> <number>0</number>
<property name="rightMargin"> </property>
<number>4</number> <widget class="QWidget" name="tabInfo">
</property> <attribute name="title">
<property name="bottomMargin"> <string>Description</string>
<number>4</number> </attribute>
</property> <layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0"> <property name="leftMargin">
<widget class="QTextBrowser" name="modInfoBrowser"> <number>4</number>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <property name="topMargin">
<horstretch>0</horstretch> <number>4</number>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="rightMargin">
</property> <number>4</number>
<property name="readOnly"> </property>
<bool>true</bool> <property name="bottomMargin">
</property> <number>4</number>
<property name="html"> </property>
<string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <item row="0" column="0">
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; <widget class="QTextBrowser" name="modInfoBrowser">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
<property name="html">
<string notr="true">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt; hr { height: 1px; border-width: 0; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'.AppleSystemUIFont'; font-size:13pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu'; font-size:11pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="openLinks"> <property name="openLinks">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
<widget class="QWidget" name="tabChangelog">
<attribute name="title">
<string>Changelog</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_5">
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QTextBrowser" name="changelogBrowser"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabScreenshots">
<attribute name="title">
<string>Screenshots</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_6">
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QListWidget" name="screenshotsList">
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::NoSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="iconSize">
<size>
<width>240</width>
<height>180</height>
</size>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget> </widget>
</item> <widget class="QWidget" name="tabChangelog">
</layout> <attribute name="title">
<string>Changelog</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_5">
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QTextBrowser" name="changelogBrowser"/>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabScreenshots">
<attribute name="title">
<string>Screenshots</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_6">
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QListWidget" name="screenshotsList">
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::NoSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="iconSize">
<size>
<width>240</width>
<height>180</height>
</size>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</widget>
</item> </item>
<item> <item>
<widget class="QWidget" name="progressWidget" native="true"> <widget class="QWidget" name="progressWidget" native="true">
@@ -279,7 +276,7 @@ p, li { white-space: pre-wrap; }
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@@ -306,7 +303,7 @@ p, li { white-space: pre-wrap; }
<item> <item>
<widget class="QProgressBar" name="progressBar"> <widget class="QProgressBar" name="progressBar">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Maximum"> <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>