mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
FilesystemWidget: Replace DiscIO includes with forward declarations
Avoids the need to use an ugly ifdef around a header, and also resolves an indirect inclusion in PropertiesDialog.
This commit is contained in:
@ -7,12 +7,6 @@
|
||||
#include <QDialog>
|
||||
#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"
|
||||
|
||||
class QStandardItem;
|
||||
@ -22,14 +16,17 @@ class QTreeView;
|
||||
namespace DiscIO
|
||||
{
|
||||
class FileInfo;
|
||||
class Volume;
|
||||
|
||||
struct Partition;
|
||||
}; // namespace DiscIO
|
||||
} // namespace DiscIO
|
||||
|
||||
class FilesystemWidget final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FilesystemWidget(const UICommon::GameFile& game);
|
||||
~FilesystemWidget() override;
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
|
Reference in New Issue
Block a user