Duckstation/src/duckstation-qt/hotkeysettingswidget.h

36 lines
743 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
2020-01-05 02:46:03 +00:00
#pragma once
2020-01-05 02:46:03 +00:00
#include <QtCore/QMap>
#include <QtWidgets/QWidget>
2020-01-05 02:46:03 +00:00
#include <array>
#include <vector>
class QScrollArea;
2020-01-05 02:46:03 +00:00
class QGridLayout;
class QVBoxLayout;
class ControllerSettingsWindow;
2020-01-05 02:46:03 +00:00
class HotkeySettingsWidget : public QWidget
{
Q_OBJECT
public:
HotkeySettingsWidget(QWidget* parent, ControllerSettingsWindow* dialog);
2020-01-05 02:46:03 +00:00
~HotkeySettingsWidget();
private:
void createUi();
void createButtons();
ControllerSettingsWindow* m_dialog;
QScrollArea* m_scroll_area = nullptr;
QWidget* m_container = nullptr;
QVBoxLayout* m_layout = nullptr;
2020-01-05 02:46:03 +00:00
QMap<QString, QGridLayout*> m_categories;
2020-01-05 02:46:03 +00:00
};