First Commit
This commit is contained in:
40
pcsx2-qt/Settings/DEV9DnsHostDialog.h
Normal file
40
pcsx2-qt/Settings/DEV9DnsHostDialog.h
Normal file
@@ -0,0 +1,40 @@
|
||||
// SPDX-FileCopyrightText: 2002-2025 PCSX2 Dev Team
|
||||
// SPDX-License-Identifier: GPL-3.0+
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QSortFilterProxyModel>
|
||||
#include <QtGui/QStandardItemModel>
|
||||
#include <QtWidgets/QDialog>
|
||||
|
||||
#include "ui_DEV9DnsHostDialog.h"
|
||||
|
||||
#include "DEV9UiCommon.h"
|
||||
|
||||
class SettingsWindow;
|
||||
|
||||
class DEV9DnsHostDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private Q_SLOTS:
|
||||
void onOK();
|
||||
void onCancel();
|
||||
|
||||
public:
|
||||
DEV9DnsHostDialog(std::vector<HostEntryUi> hosts, QWidget* parent);
|
||||
~DEV9DnsHostDialog();
|
||||
|
||||
std::optional<std::vector<HostEntryUi>> PromptList();
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject* object, QEvent* event);
|
||||
|
||||
private:
|
||||
Ui::DEV9DnsHostDialog m_ui;
|
||||
|
||||
std::vector<HostEntryUi> m_hosts;
|
||||
|
||||
QStandardItemModel* m_ethHost_model;
|
||||
QSortFilterProxyModel* m_ethHosts_proxy;
|
||||
};
|
||||
Reference in New Issue
Block a user