Qt: Change settings dialogs to widgets/windows
Stops them breaking in Qt 6.6.
This commit is contained in:
@@ -12,18 +12,18 @@
|
||||
#include <array>
|
||||
#include <vector>
|
||||
|
||||
class SettingsDialog;
|
||||
class SettingsWindow;
|
||||
|
||||
class MemoryCardSettingsWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MemoryCardSettingsWidget(SettingsDialog* dialog, QWidget* parent);
|
||||
MemoryCardSettingsWidget(SettingsWindow* dialog, QWidget* parent);
|
||||
~MemoryCardSettingsWidget();
|
||||
|
||||
private:
|
||||
SettingsDialog* m_dialog;
|
||||
SettingsWindow* m_dialog;
|
||||
|
||||
struct PortSettingsUI
|
||||
{
|
||||
@@ -33,8 +33,8 @@ private:
|
||||
QLineEdit* memory_card_path;
|
||||
};
|
||||
|
||||
void createUi(SettingsDialog* dialog);
|
||||
void createPortSettingsUi(SettingsDialog* dialog, int index, PortSettingsUI* ui);
|
||||
void createUi(SettingsWindow* dialog);
|
||||
void createPortSettingsUi(SettingsWindow* dialog, int index, PortSettingsUI* ui);
|
||||
void onBrowseMemoryCardPathClicked(int index);
|
||||
void onResetMemoryCardPathClicked(int index);
|
||||
void onMemoryCardPathChanged(int index);
|
||||
|
||||
Reference in New Issue
Block a user