Qt: make about dialog resizable

This commit is contained in:
Megamouse 2022-02-05 22:07:11 +01:00
parent 09a60cdefa
commit 4ad255b8e0
2 changed files with 14 additions and 10 deletions

View File

@ -21,8 +21,6 @@ about_dialog::about_dialog(QWidget* parent) : QDialog(parent), ui(new Ui::about_
connect(ui->forum, &QPushButton::clicked, [] { QDesktopServices::openUrl(QUrl("https://forums.rpcs3.net")); }); connect(ui->forum, &QPushButton::clicked, [] { QDesktopServices::openUrl(QUrl("https://forums.rpcs3.net")); });
connect(ui->patreon, &QPushButton::clicked, [] { QDesktopServices::openUrl(QUrl("https://www.patreon.com/Nekotekina")); }); connect(ui->patreon, &QPushButton::clicked, [] { QDesktopServices::openUrl(QUrl("https://www.patreon.com/Nekotekina")); });
connect(ui->close, &QPushButton::clicked, this, &QWidget::close); connect(ui->close, &QPushButton::clicked, this, &QWidget::close);
layout()->setSizeConstraint(QLayout::SetFixedSize);
} }
about_dialog::~about_dialog() about_dialog::~about_dialog()

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>880</width> <width>805</width>
<height>630</height> <height>555</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -17,7 +17,7 @@
<iconset resource="../resources.qrc"> <iconset resource="../resources.qrc">
<normaloff>:/rpcs3.ico</normaloff>:/rpcs3.ico</iconset> <normaloff>:/rpcs3.ico</normaloff>:/rpcs3.ico</iconset>
</property> </property>
<layout class="QVBoxLayout" name="about_dialog_layout"> <layout class="QVBoxLayout" name="about_dialog_layout" stretch="0,1,0">
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
@ -41,9 +41,15 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<layout class="QHBoxLayout" name="header_section_layout"> <layout class="QHBoxLayout" name="header_section_layout" stretch="0,1">
<item> <item>
<widget class="QWidget" name="icon_widget" native="true"> <widget class="QWidget" name="icon_widget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QVBoxLayout" name="icon_widget_layout"> <layout class="QVBoxLayout" name="icon_widget_layout">
<property name="leftMargin"> <property name="leftMargin">
<number>0</number> <number>0</number>
@ -170,7 +176,7 @@
<item> <item>
<widget class="QScrollArea" name="name_section"> <widget class="QScrollArea" name="name_section">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -178,7 +184,7 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>400</height> <height>200</height>
</size> </size>
</property> </property>
<property name="frameShape"> <property name="frameShape">
@ -198,8 +204,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>863</width> <width>788</width>
<height>1376</height> <height>2076</height>
</rect> </rect>
</property> </property>
<layout class="QHBoxLayout" name="names_layout" stretch="1,1,1,1"> <layout class="QHBoxLayout" name="names_layout" stretch="1,1,1,1">