Compare commits

...

2 Commits

Author SHA1 Message Date
yzct12345
03f6c9d7cb Merge branch 'master' into scroll 2021-08-01 06:49:49 +00:00
yzct12345
9effff419b config: QScrollArea debug and input 2021-07-26 01:07:00 +00:00
6 changed files with 3318 additions and 3330 deletions

View File

@@ -14,7 +14,7 @@
#include "yuzu/debugger/console.h" #include "yuzu/debugger/console.h"
#include "yuzu/uisettings.h" #include "yuzu/uisettings.h"
ConfigureDebug::ConfigureDebug(QWidget* parent) : QWidget(parent), ui(new Ui::ConfigureDebug) { ConfigureDebug::ConfigureDebug(QWidget* parent) : QScrollArea(parent), ui(new Ui::ConfigureDebug) {
ui->setupUi(this); ui->setupUi(this);
SetConfiguration(); SetConfiguration();

View File

@@ -5,13 +5,13 @@
#pragma once #pragma once
#include <memory> #include <memory>
#include <QWidget> #include <QScrollArea>
namespace Ui { namespace Ui {
class ConfigureDebug; class ConfigureDebug;
} }
class ConfigureDebug : public QWidget { class ConfigureDebug : public QScrollArea {
Q_OBJECT Q_OBJECT
public: public:

View File

@@ -1,18 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>ConfigureDebug</class> <class>ConfigureDebug</class>
<widget class="QWidget" name="ConfigureDebug"> <widget class="QScrollArea" name="ConfigureDebug">
<property name="geometry"> <property name="widgetResizable">
<rect> <bool>true</bool>
<x>0</x>
<y>0</y>
<width>400</width>
<height>777</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property> </property>
<widget class="QWidget">
<layout class="QVBoxLayout" name="verticalLayout_1"> <layout class="QVBoxLayout" name="verticalLayout_1">
<item> <item>
<widget class="QGroupBox" name="groupBox_2"> <widget class="QGroupBox" name="groupBox_2">
@@ -279,6 +272,7 @@
</item> </item>
</layout> </layout>
</widget> </widget>
</widget>
<tabstops> <tabstops>
<tabstop>log_filter_edit</tabstop> <tabstop>log_filter_edit</tabstop>
<tabstop>toggle_console</tabstop> <tabstop>toggle_console</tabstop>

View File

@@ -219,10 +219,10 @@ ConfigureInputPlayer::ConfigureInputPlayer(QWidget* parent, std::size_t player_i
QWidget* bottom_row, QWidget* bottom_row,
InputCommon::InputSubsystem* input_subsystem_, InputCommon::InputSubsystem* input_subsystem_,
InputProfiles* profiles_, bool debug) InputProfiles* profiles_, bool debug)
: QWidget(parent), ui(std::make_unique<Ui::ConfigureInputPlayer>()), player_index(player_index), : QScrollArea(parent), ui(std::make_unique<Ui::ConfigureInputPlayer>()),
debug(debug), input_subsystem{input_subsystem_}, profiles(profiles_), player_index(player_index), debug(debug), input_subsystem{input_subsystem_},
timeout_timer(std::make_unique<QTimer>()), poll_timer(std::make_unique<QTimer>()), profiles(profiles_), timeout_timer(std::make_unique<QTimer>()),
bottom_row(bottom_row) { poll_timer(std::make_unique<QTimer>()), bottom_row(bottom_row) {
ui->setupUi(this); ui->setupUi(this);
setFocusPolicy(Qt::ClickFocus); setFocusPolicy(Qt::ClickFocus);

View File

@@ -11,7 +11,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <QWidget> #include <QScrollArea>
#include "common/param_package.h" #include "common/param_package.h"
#include "common/settings.h" #include "common/settings.h"
@@ -42,7 +42,7 @@ namespace Ui {
class ConfigureInputPlayer; class ConfigureInputPlayer;
} }
class ConfigureInputPlayer : public QWidget { class ConfigureInputPlayer : public QScrollArea {
Q_OBJECT Q_OBJECT
public: public:

View File

@@ -1,18 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>ConfigureInputPlayer</class> <class>ConfigureInputPlayer</class>
<widget class="QWidget" name="ConfigureInputPlayer"> <widget class="QScrollArea" name="ConfigureInputPlayer">
<property name="geometry"> <property name="widgetResizable">
<rect> <bool>true</bool>
<x>0</x>
<y>0</y>
<width>780</width>
<height>487</height>
</rect>
</property>
<property name="windowTitle">
<string>Configure Input</string>
</property> </property>
<widget class="QWidget">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
@@ -3131,6 +3124,7 @@
</item> </item>
</layout> </layout>
</widget> </widget>
</widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
<class>PlayerControlPreview</class> <class>PlayerControlPreview</class>