Merge pull request #6847 from lioncash/fs-include
FilesystemWidget: Replace DiscIO includes with forward declarations
This commit is contained in:
commit
6c38e4b47f
|
@ -19,8 +19,9 @@
|
||||||
#include <future>
|
#include <future>
|
||||||
|
|
||||||
#include "DiscIO/DiscExtractor.h"
|
#include "DiscIO/DiscExtractor.h"
|
||||||
#include "DiscIO/Enums.h"
|
|
||||||
#include "DiscIO/Filesystem.h"
|
#include "DiscIO/Filesystem.h"
|
||||||
|
#include "DiscIO/Volume.h"
|
||||||
|
|
||||||
#include "DolphinQt2/QtUtils/ActionHelper.h"
|
#include "DolphinQt2/QtUtils/ActionHelper.h"
|
||||||
#include "DolphinQt2/Resources.h"
|
#include "DolphinQt2/Resources.h"
|
||||||
|
|
||||||
|
@ -45,6 +46,8 @@ FilesystemWidget::FilesystemWidget(const UICommon::GameFile& game)
|
||||||
PopulateView();
|
PopulateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FilesystemWidget::~FilesystemWidget() = default;
|
||||||
|
|
||||||
void FilesystemWidget::CreateWidgets()
|
void FilesystemWidget::CreateWidgets()
|
||||||
{
|
{
|
||||||
auto* layout = new QVBoxLayout;
|
auto* layout = new QVBoxLayout;
|
||||||
|
|
|
@ -7,12 +7,6 @@
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
// Qt versions prior to 5.9 don't support C++17 nested namespaces in moc so we have to if-guard
|
|
||||||
// this header
|
|
||||||
#ifndef Q_MOC_RUN
|
|
||||||
#include "DiscIO/Volume.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "UICommon/GameFile.h"
|
#include "UICommon/GameFile.h"
|
||||||
|
|
||||||
class QStandardItem;
|
class QStandardItem;
|
||||||
|
@ -22,14 +16,17 @@ class QTreeView;
|
||||||
namespace DiscIO
|
namespace DiscIO
|
||||||
{
|
{
|
||||||
class FileInfo;
|
class FileInfo;
|
||||||
|
class Volume;
|
||||||
|
|
||||||
struct Partition;
|
struct Partition;
|
||||||
}; // namespace DiscIO
|
} // namespace DiscIO
|
||||||
|
|
||||||
class FilesystemWidget final : public QWidget
|
class FilesystemWidget final : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit FilesystemWidget(const UICommon::GameFile& game);
|
explicit FilesystemWidget(const UICommon::GameFile& game);
|
||||||
|
~FilesystemWidget() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void CreateWidgets();
|
void CreateWidgets();
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
#include <QTabWidget>
|
#include <QTabWidget>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
|
#include "DiscIO/Enums.h"
|
||||||
|
|
||||||
#include "DolphinQt2/Config/ARCodeWidget.h"
|
#include "DolphinQt2/Config/ARCodeWidget.h"
|
||||||
#include "DolphinQt2/Config/FilesystemWidget.h"
|
#include "DolphinQt2/Config/FilesystemWidget.h"
|
||||||
#include "DolphinQt2/Config/GameConfigWidget.h"
|
#include "DolphinQt2/Config/GameConfigWidget.h"
|
||||||
|
|
Loading…
Reference in New Issue