Improve UI configuration with responsive layout and UI positioning

- Add responsive layout switching (compact/wide) based on window width
- Move UI positioning combo to UI file for better maintainability
- Convert layouts to QFormLayout for better organization
- Add resizeEvent handling for dynamic layout adjustments
- Reduce minimum window size from 1000x600 to 700x600

The configuration dialog now adapts to smaller window sizes by switching
to a single-column layout when the width is less than 950px, improving
usability on smaller screens.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-11-22 16:12:43 +10:00
parent e3051f2fc1
commit e881da60ef
3 changed files with 247 additions and 310 deletions

View File

@@ -24,6 +24,7 @@
#include <QVariant> #include <QVariant>
#include <QListWidget> #include <QListWidget>
#include <QMessageBox> #include <QMessageBox>
#include <QResizeEvent>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/fs/path_util.h" #include "common/fs/path_util.h"
@@ -35,6 +36,9 @@
#include "ui_configure_ui.h" #include "ui_configure_ui.h"
#include "citron/uisettings.h" #include "citron/uisettings.h"
// If the window width is less than this value, the layout will switch to a single column.
constexpr int COMPACT_LAYOUT_BREAKPOINT = 950;
namespace { namespace {
constexpr std::array default_game_icon_sizes{ constexpr std::array default_game_icon_sizes{
std::make_pair(0, QT_TRANSLATE_NOOP("ConfigureUI", "None")), std::make_pair(0, QT_TRANSLATE_NOOP("ConfigureUI", "None")),
@@ -117,16 +121,12 @@ resolution_setting{Settings::values.resolution_setup.GetValue()}, system{system_
QString::fromUtf8(theme.second)); QString::fromUtf8(theme.second));
} }
ui_positioning_combo = new QComboBox(this); // The "UI Positioning" widget is now defined in the .ui file.
ui_positioning_combo->addItem(tr("Vertical"), QStringLiteral("Vertical")); // We just need to populate it with options here.
ui_positioning_combo->addItem(tr("Horizontal"), QStringLiteral("Horizontal")); ui->ui_positioning_combo->addItem(tr("Vertical"), QStringLiteral("Vertical"));
if (auto* layout = qobject_cast<QFormLayout*>(ui->theme_combobox->parentWidget()->layout())) { ui->ui_positioning_combo->addItem(tr("Horizontal"), QStringLiteral("Horizontal"));
layout->addRow(tr("UI Positioning"), ui_positioning_combo);
} else if (auto* group_layout = qobject_cast<QVBoxLayout*>(ui->theme_combobox->parentWidget()->layout())) {
group_layout->addWidget(ui_positioning_combo);
}
connect(ui_positioning_combo, &QComboBox::currentTextChanged, this, [this](const QString& text){ connect(ui->ui_positioning_combo, &QComboBox::currentTextChanged, this, [this](const QString& text){
emit UIPositioningChanged(text); emit UIPositioningChanged(text);
}); });
@@ -182,6 +182,11 @@ resolution_setting{Settings::values.resolution_setup.GetValue()}, system{system_
connect(ui->screenshot_height, &QComboBox::currentTextChanged, [this]() { UpdateWidthText(); }); connect(ui->screenshot_height, &QComboBox::currentTextChanged, [this]() { UpdateWidthText(); });
UpdateWidthText(); UpdateWidthText();
// Check initial size to apply the correct layout from the start.
if (width() < COMPACT_LAYOUT_BREAKPOINT) {
switchToCompactLayout();
}
} }
ConfigureUi::~ConfigureUi() = default; ConfigureUi::~ConfigureUi() = default;
@@ -189,7 +194,7 @@ ConfigureUi::~ConfigureUi() = default;
void ConfigureUi::ApplyConfiguration() { void ConfigureUi::ApplyConfiguration() {
UISettings::values.theme = UISettings::values.theme =
ui->theme_combobox->itemData(ui->theme_combobox->currentIndex()).toString().toStdString(); ui->theme_combobox->itemData(ui->theme_combobox->currentIndex()).toString().toStdString();
UISettings::values.ui_positioning = ui_positioning_combo->currentData().toString().toStdString(); UISettings::values.ui_positioning = ui->ui_positioning_combo->currentData().toString().toStdString();
UISettings::values.enable_rainbow_mode = ui->rainbowModeCheckBox->isChecked(); UISettings::values.enable_rainbow_mode = ui->rainbowModeCheckBox->isChecked();
UISettings::values.show_add_ons = ui->show_add_ons->isChecked(); UISettings::values.show_add_ons = ui->show_add_ons->isChecked();
UISettings::values.show_compat = ui->show_compat->isChecked(); UISettings::values.show_compat = ui->show_compat->isChecked();
@@ -212,6 +217,34 @@ void ConfigureUi::ApplyConfiguration() {
system.ApplySettings(); system.ApplySettings();
} }
void ConfigureUi::resizeEvent(QResizeEvent* event) {
QWidget::resizeEvent(event);
const int currentWidth = event->size().width();
if (currentWidth < COMPACT_LAYOUT_BREAKPOINT && !isCompact) {
switchToCompactLayout();
} else if (currentWidth >= COMPACT_LAYOUT_BREAKPOINT && isCompact) {
switchToWideLayout();
}
}
void ConfigureUi::switchToCompactLayout() {
if (isCompact) return; // Already compact
// Move the right column layout to be below the left column layout
ui->mainHorizontalLayout->removeItem(ui->rightColumnLayout);
ui->leftColumnLayout->addLayout(ui->rightColumnLayout);
isCompact = true;
}
void ConfigureUi::switchToWideLayout() {
if (!isCompact) return; // Already wide
// Move the right column layout from the left column back to the main horizontal layout
ui->leftColumnLayout->removeItem(ui->rightColumnLayout);
ui->mainHorizontalLayout->addLayout(ui->rightColumnLayout);
isCompact = false;
}
void ConfigureUi::RequestGameListUpdate() { void ConfigureUi::RequestGameListUpdate() {
UISettings::values.is_game_list_reload_pending.exchange(true); UISettings::values.is_game_list_reload_pending.exchange(true);
} }
@@ -221,7 +254,7 @@ void ConfigureUi::SetConfiguration() {
ui->theme_combobox->findData(QString::fromStdString(UISettings::values.theme))); ui->theme_combobox->findData(QString::fromStdString(UISettings::values.theme)));
ui->language_combobox->setCurrentIndex(ui->language_combobox->findData( ui->language_combobox->setCurrentIndex(ui->language_combobox->findData(
QString::fromStdString(UISettings::values.language.GetValue()))); QString::fromStdString(UISettings::values.language.GetValue())));
ui_positioning_combo->setCurrentIndex(ui_positioning_combo->findData( ui->ui_positioning_combo->setCurrentIndex(ui->ui_positioning_combo->findData(
QString::fromStdString(UISettings::values.ui_positioning.GetValue()))); QString::fromStdString(UISettings::values.ui_positioning.GetValue())));
ui->rainbowModeCheckBox->setChecked(UISettings::values.enable_rainbow_mode.GetValue()); ui->rainbowModeCheckBox->setChecked(UISettings::values.enable_rainbow_mode.GetValue());
ui->show_add_ons->setChecked(UISettings::values.show_add_ons.GetValue()); ui->show_add_ons->setChecked(UISettings::values.show_add_ons.GetValue());
@@ -270,10 +303,10 @@ void ConfigureUi::changeEvent(QEvent* event) {
void ConfigureUi::RetranslateUI() { void ConfigureUi::RetranslateUI() {
ui->retranslateUi(this); ui->retranslateUi(this);
const int pos_index = ui_positioning_combo->currentIndex(); const int pos_index = ui->ui_positioning_combo->currentIndex();
ui_positioning_combo->setItemText(0, tr("Vertical")); ui->ui_positioning_combo->setItemText(0, tr("Vertical"));
ui_positioning_combo->setItemText(1, tr("Horizontal")); ui->ui_positioning_combo->setItemText(1, tr("Horizontal"));
ui_positioning_combo->setCurrentIndex(pos_index); ui->ui_positioning_combo->setCurrentIndex(pos_index);
for (int i = 0; i < ui->game_icon_size_combobox->count(); i++) { for (int i = 0; i < ui->game_icon_size_combobox->count(); i++) {
ui->game_icon_size_combobox->setItemText(i, ui->game_icon_size_combobox->setItemText(i,
@@ -395,3 +428,5 @@ void ConfigureUi::UpdateScreenshotInfo(Settings::AspectRatio ratio_,
resolution_setting = resolution_setting_; resolution_setting = resolution_setting_;
UpdateWidthText(); UpdateWidthText();
} }
#include "configure_ui.moc"

View File

@@ -9,6 +9,7 @@
#include "common/settings_enums.h" #include "common/settings_enums.h"
class QComboBox; class QComboBox;
class QResizeEvent;
namespace Core { namespace Core {
class System; class System;
@@ -35,6 +36,9 @@ signals:
void themeChanged(); void themeChanged();
void UIPositioningChanged(const QString& positioning); void UIPositioningChanged(const QString& positioning);
protected:
void resizeEvent(QResizeEvent* event) override;
private slots: private slots:
void OnLanguageChanged(int index); void OnLanguageChanged(int index);
void OnAccentColorButtonPressed(); void OnAccentColorButtonPressed();
@@ -55,9 +59,12 @@ private:
void UpdateSecondRowComboBox(bool init = false); void UpdateSecondRowComboBox(bool init = false);
void UpdateWidthText(); void UpdateWidthText();
void switchToCompactLayout();
void switchToWideLayout();
std::unique_ptr<Ui::ConfigureUi> ui; std::unique_ptr<Ui::ConfigureUi> ui;
QComboBox* ui_positioning_combo;
bool isCompact = false;
Settings::AspectRatio ratio; Settings::AspectRatio ratio;
Settings::ResolutionSetup resolution_setting; Settings::ResolutionSetup resolution_setting;

View File

@@ -12,7 +12,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>1000</width> <width>700</width>
<height>600</height> <height>600</height>
</size> </size>
</property> </property>
@@ -48,17 +48,20 @@
</property> </property>
<item> <item>
<widget class="QGroupBox" name="general_groupBox"> <widget class="QGroupBox" name="general_groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title"> <property name="title">
<string>General</string> <string>General</string>
</property> </property>
<property name="minimumSize"> <layout class="QFormLayout" name="generalFormLayout">
<size> <property name="horizontalSpacing">
<width>500</width> <number>16</number>
<height>0</height>
</size>
</property> </property>
<layout class="QVBoxLayout" name="generalVerticalLayout"> <property name="verticalSpacing">
<property name="spacing">
<number>12</number> <number>12</number>
</property> </property>
<property name="leftMargin"> <property name="leftMargin">
@@ -73,7 +76,7 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>20</number> <number>20</number>
</property> </property>
<item> <item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_change_language_info"> <widget class="QLabel" name="label_change_language_info">
<property name="text"> <property name="text">
<string>Note: Changing language will apply your configuration.</string> <string>Note: Changing language will apply your configuration.</string>
@@ -86,25 +89,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0">
<layout class="QHBoxLayout" name="languageLayout">
<property name="spacing">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="language_label"> <widget class="QLabel" name="language_label">
<property name="text"> <property name="text">
<string>Interface language:</string> <string>Interface language:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1">
<widget class="QComboBox" name="language_combobox"> <widget class="QComboBox" name="language_combobox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@@ -114,27 +106,14 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="2" column="0">
</item>
<item>
<layout class="QHBoxLayout" name="themeLayout">
<property name="spacing">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="theme_label"> <widget class="QLabel" name="theme_label">
<property name="text"> <property name="text">
<string>Theme:</string> <string>Theme:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="1">
<widget class="QComboBox" name="theme_combobox"> <widget class="QComboBox" name="theme_combobox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@@ -144,26 +123,15 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="3" column="0">
</item>
<item>
<layout class="QHBoxLayout" name="accentColorLayout">
<property name="spacing">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="accentColorLabel"> <widget class="QLabel" name="accentColorLabel">
<property name="text"> <property name="text">
<string>Accent Color:</string> <string>Accent Color:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item row="3" column="1">
<layout class="QHBoxLayout" name="accentColorLayout">
<item> <item>
<widget class="QPushButton" name="accentColorButton"> <widget class="QPushButton" name="accentColorButton">
<property name="text"> <property name="text">
@@ -178,24 +146,57 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="horizontalSpacer">
<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> </layout>
</item> </item>
<item row="4" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>UI Positioning</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="ui_positioning_combo">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="GameListGroupBox"> <widget class="QGroupBox" name="GameListGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title"> <property name="title">
<string>Game List</string> <string>Game List</string>
</property> </property>
<property name="minimumSize"> <layout class="QFormLayout" name="gameListFormLayout">
<size> <property name="horizontalSpacing">
<width>500</width> <number>16</number>
<height>0</height>
</size>
</property> </property>
<layout class="QVBoxLayout" name="gameListVerticalLayout"> <property name="verticalSpacing">
<property name="spacing">
<number>12</number> <number>12</number>
</property> </property>
<property name="leftMargin"> <property name="leftMargin">
@@ -210,90 +211,49 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>20</number> <number>20</number>
</property> </property>
<item> <item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="show_compat"> <widget class="QCheckBox" name="show_compat">
<property name="text"> <property name="text">
<string>Show Compatibility List</string> <string>Show Compatibility List</string>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="show_add_ons"> <widget class="QCheckBox" name="show_add_ons">
<property name="text"> <property name="text">
<string>Show Add-Ons Column</string> <string>Show Add-Ons Column</string>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="show_size"> <widget class="QCheckBox" name="show_size">
<property name="text"> <property name="text">
<string>Show Size Column</string> <string>Show Size Column</string>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="3" column="0" colspan="2">
<widget class="QCheckBox" name="show_types"> <widget class="QCheckBox" name="show_types">
<property name="text"> <property name="text">
<string>Show File Types Column</string> <string>Show File Types Column</string>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="4" column="0" colspan="2">
<widget class="QCheckBox" name="show_play_time"> <widget class="QCheckBox" name="show_play_time">
<property name="text"> <property name="text">
<string>Show Play Time Column</string> <string>Show Play Time Column</string>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="5" column="0">
<layout class="QHBoxLayout" name="game_icon_size_layout">
<property name="spacing">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="game_icon_size_label"> <widget class="QLabel" name="game_icon_size_label">
<property name="text"> <property name="text">
<string>Game Icon Size:</string> <string>Game Icon Size:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="5" column="1">
<widget class="QComboBox" name="game_icon_size_combobox"> <widget class="QComboBox" name="game_icon_size_combobox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@@ -303,27 +263,14 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="6" column="0">
</item>
<item>
<layout class="QHBoxLayout" name="folder_icon_size_layout">
<property name="spacing">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="folder_icon_size_label"> <widget class="QLabel" name="folder_icon_size_label">
<property name="text"> <property name="text">
<string>Folder Icon Size:</string> <string>Folder Icon Size:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="6" column="1">
<widget class="QComboBox" name="folder_icon_size_combobox"> <widget class="QComboBox" name="folder_icon_size_combobox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@@ -333,27 +280,14 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="7" column="0">
</item>
<item>
<layout class="QHBoxLayout" name="row_1_layout">
<property name="spacing">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="row_1_label"> <widget class="QLabel" name="row_1_label">
<property name="text"> <property name="text">
<string>Row 1 Text:</string> <string>Row 1 Text:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="7" column="1">
<widget class="QComboBox" name="row_1_text_combobox"> <widget class="QComboBox" name="row_1_text_combobox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@@ -363,27 +297,14 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item row="8" column="0">
</item>
<item>
<layout class="QHBoxLayout" name="row_2_layout">
<property name="spacing">
<number>16</number>
</property>
<item>
<widget class="QLabel" name="row_2_label"> <widget class="QLabel" name="row_2_label">
<property name="text"> <property name="text">
<string>Row 2 Text:</string> <string>Row 2 Text:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="8" column="1">
<widget class="QComboBox" name="row_2_text_combobox"> <widget class="QComboBox" name="row_2_text_combobox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@@ -394,8 +315,6 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>
@@ -420,19 +339,22 @@
</property> </property>
<item> <item>
<widget class="QGroupBox" name="screenshots_GroupBox"> <widget class="QGroupBox" name="screenshots_GroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title"> <property name="title">
<string>Screenshots</string> <string>Screenshots</string>
</property> </property>
<property name="minimumSize"> <layout class="QFormLayout" name="screenshotsFormLayout">
<size> <property name="horizontalSpacing">
<width>500</width>
<height>0</height>
</size>
</property>
<layout class="QVBoxLayout" name="screenshotsVerticalLayout">
<property name="spacing">
<number>16</number> <number>16</number>
</property> </property>
<property name="verticalSpacing">
<number>12</number>
</property>
<property name="leftMargin"> <property name="leftMargin">
<number>20</number> <number>20</number>
</property> </property>
@@ -445,37 +367,22 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>20</number> <number>20</number>
</property> </property>
<item> <item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="enable_screenshot_save_as"> <widget class="QCheckBox" name="enable_screenshot_save_as">
<property name="text"> <property name="text">
<string>Ask Where To Save Screenshots (Windows Only)</string> <string>Ask Where To Save Screenshots (Windows Only)</string>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0">
<layout class="QHBoxLayout" name="screenshotPathLayout">
<property name="spacing">
<number>12</number>
</property>
<item>
<widget class="QLabel" name="screenshot_path_label"> <widget class="QLabel" name="screenshot_path_label">
<property name="text"> <property name="text">
<string>Screenshots Path:</string> <string>Screenshots Path:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="screenshotPathLayout">
<item> <item>
<widget class="QLineEdit" name="screenshot_path_edit"> <widget class="QLineEdit" name="screenshot_path_edit">
<property name="sizePolicy"> <property name="sizePolicy">
@@ -495,24 +402,15 @@
</item> </item>
</layout> </layout>
</item> </item>
<item> <item row="2" column="0">
<layout class="QHBoxLayout" name="resolutionLayout">
<property name="spacing">
<number>12</number>
</property>
<item>
<widget class="QLabel" name="resolution_label"> <widget class="QLabel" name="resolution_label">
<property name="text"> <property name="text">
<string>Resolution:</string> <string>Resolution:</string>
</property> </property>
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="resolutionLayout">
<item> <item>
<widget class="QLabel" name="screenshot_width"> <widget class="QLabel" name="screenshot_width">
<property name="text"> <property name="text">
@@ -521,25 +419,22 @@
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
<property name="minimumSize"> <property name="wordWrap">
<size> <bool>true</bool>
<width>120</width>
<height>0</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="screenshot_height"> <widget class="QComboBox" name="screenshot_height">
<property name="editable">
<bool>true</bool>
</property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="editable">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>