mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-12-06 04:25:39 +00:00
8c7a192128
Should've did this in the beginning.
36 lines
743 B
C++
36 lines
743 B
C++
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
#pragma once
|
|
|
|
#include <QtCore/QMap>
|
|
#include <QtWidgets/QWidget>
|
|
#include <array>
|
|
#include <vector>
|
|
|
|
class QScrollArea;
|
|
class QGridLayout;
|
|
class QVBoxLayout;
|
|
|
|
class ControllerSettingsDialog;
|
|
|
|
class HotkeySettingsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
HotkeySettingsWidget(QWidget* parent, ControllerSettingsDialog* dialog);
|
|
~HotkeySettingsWidget();
|
|
|
|
private:
|
|
void createUi();
|
|
void createButtons();
|
|
|
|
ControllerSettingsDialog* m_dialog;
|
|
QScrollArea* m_scroll_area = nullptr;
|
|
QWidget* m_container = nullptr;
|
|
QVBoxLayout* m_layout = nullptr;
|
|
|
|
QMap<QString, QGridLayout*> m_categories;
|
|
};
|