game_list: Use forward declarations where applicable

Reduces the number of header dependencies propagated by the header file.
This commit is contained in:
Lioncash 2017-12-16 13:09:55 -05:00
parent 125f5d1e68
commit 8e53599deb
No known key found for this signature in database
GPG Key ID: 419930C33C5AB6CC
2 changed files with 25 additions and 15 deletions

View File

@ -4,17 +4,27 @@
#include <QApplication> #include <QApplication>
#include <QFileInfo> #include <QFileInfo>
#include <QFileSystemWatcher>
#include <QHBoxLayout>
#include <QHeaderView> #include <QHeaderView>
#include <QKeyEvent> #include <QKeyEvent>
#include <QLabel>
#include <QLineEdit>
#include <QMenu> #include <QMenu>
#include <QModelIndex>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QThreadPool> #include <QThreadPool>
#include <QToolButton>
#include <QTreeView>
#include "citra_qt/game_list.h"
#include "citra_qt/game_list_p.h"
#include "citra_qt/main.h"
#include "citra_qt/ui_settings.h"
#include "common/common_paths.h" #include "common/common_paths.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/string_util.h" #include "common/string_util.h"
#include "core/loader/loader.h" #include "core/loader/loader.h"
#include "game_list.h"
#include "game_list_p.h"
#include "ui_settings.h"
GameList::SearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist) { GameList::SearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist) {
this->gamelist = gamelist; this->gamelist = gamelist;

View File

@ -4,22 +4,22 @@
#pragma once #pragma once
#include <QFileSystemWatcher>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QModelIndex>
#include <QSettings>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QString> #include <QString>
#include <QToolButton>
#include <QTreeView>
#include <QVBoxLayout>
#include <QWidget> #include <QWidget>
#include "main.h" #include "common/common_types.h"
class GameListWorker; class GameListWorker;
class GMainWindow;
class QFileSystemWatcher;
class QHBoxLayout;
class QLabel;
class QLineEdit;
class QModelIndex;
class QStandardItem;
class QStandardItemModel;
class QTreeView;
class QToolButton;
class QVBoxLayout;
class GameList : public QWidget { class GameList : public QWidget {
Q_OBJECT Q_OBJECT