mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-28 04:52:35 +02:00
DolphinQt/Config/GeckoCodeWidget: Use forward declarations where applicable
Avoids propagating headers into scopes where they're not needed.
This commit is contained in:
parent
14263ec6dd
commit
ff8f627499
@ -19,6 +19,7 @@
|
|||||||
#include "Common/IniFile.h"
|
#include "Common/IniFile.h"
|
||||||
|
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
|
#include "Core/GeckoCode.h"
|
||||||
#include "Core/GeckoCodeConfig.h"
|
#include "Core/GeckoCodeConfig.h"
|
||||||
|
|
||||||
#include "DolphinQt/Config/CheatCodeEditor.h"
|
#include "DolphinQt/Config/CheatCodeEditor.h"
|
||||||
@ -46,6 +47,8 @@ GeckoCodeWidget::GeckoCodeWidget(const UICommon::GameFile& game, bool restart_re
|
|||||||
UpdateList();
|
UpdateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GeckoCodeWidget::~GeckoCodeWidget() = default;
|
||||||
|
|
||||||
void GeckoCodeWidget::CreateWidgets()
|
void GeckoCodeWidget::CreateWidgets()
|
||||||
{
|
{
|
||||||
m_warning = new CheatWarningWidget(m_game_id, m_restart_required, this);
|
m_warning = new CheatWarningWidget(m_game_id, m_restart_required, this);
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Core/GeckoCode.h"
|
|
||||||
|
|
||||||
class CheatWarningWidget;
|
class CheatWarningWidget;
|
||||||
class QLabel;
|
class QLabel;
|
||||||
@ -19,6 +18,11 @@ class QListWidgetItem;
|
|||||||
class QTextEdit;
|
class QTextEdit;
|
||||||
class QPushButton;
|
class QPushButton;
|
||||||
|
|
||||||
|
namespace Gecko
|
||||||
|
{
|
||||||
|
class GeckoCode;
|
||||||
|
}
|
||||||
|
|
||||||
namespace UICommon
|
namespace UICommon
|
||||||
{
|
{
|
||||||
class GameFile;
|
class GameFile;
|
||||||
@ -29,6 +33,7 @@ class GeckoCodeWidget : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit GeckoCodeWidget(const UICommon::GameFile& game, bool restart_required = true);
|
explicit GeckoCodeWidget(const UICommon::GameFile& game, bool restart_required = true);
|
||||||
|
~GeckoCodeWidget() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void OpenGeneralSettings();
|
void OpenGeneralSettings();
|
||||||
|
Loading…
Reference in New Issue
Block a user