yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #8854 from Docteh/scroll

Qt: Make General->Debug scrollable
This commit is contained in:
Mai 2022-09-03 15:36:46 -04:00 committed by GitHub
commit 3bcfd0dc42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -14,7 +14,7 @@
#include "yuzu/uisettings.h"
ConfigureDebug::ConfigureDebug(const Core::System& system_, QWidget* parent)
: QWidget(parent), ui{std::make_unique<Ui::ConfigureDebug>()}, system{system_} {
: QScrollArea(parent), ui{std::make_unique<Ui::ConfigureDebug>()}, system{system_} {
ui->setupUi(this);
SetConfiguration();

View File

@ -4,7 +4,7 @@
#pragma once
#include <memory>
#include <QWidget>
#include <QScrollArea>
namespace Core {
class System;
@ -14,7 +14,7 @@ namespace Ui {
class ConfigureDebug;
}
class ConfigureDebug : public QWidget {
class ConfigureDebug : public QScrollArea {
Q_OBJECT
public:

View File

@ -1,7 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ConfigureDebug</class>
<widget class="QWidget" name="ConfigureDebug">
<widget class="QScrollArea" name="ConfigureDebug">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget">
<layout class="QVBoxLayout" name="verticalLayout_1">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
@ -322,6 +326,7 @@
</item>
</layout>
</widget>
</widget>
<tabstops>
<tabstop>log_filter_edit</tabstop>
<tabstop>toggle_console</tabstop>