From 8e53599debfb178573c53fb70fc61deba1b26def Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 16 Dec 2017 13:09:55 -0500 Subject: [PATCH] game_list: Use forward declarations where applicable Reduces the number of header dependencies propagated by the header file. --- src/citra_qt/game_list.cpp | 16 +++++++++++++--- src/citra_qt/game_list.h | 24 ++++++++++++------------ 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index c98a8b0369..20f2cb93e0 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -4,17 +4,27 @@ #include #include +#include +#include #include #include +#include +#include #include +#include +#include +#include #include +#include +#include +#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/logging/log.h" #include "common/string_util.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) { this->gamelist = gamelist; diff --git a/src/citra_qt/game_list.h b/src/citra_qt/game_list.h index 4823a12964..86ea869e95 100644 --- a/src/citra_qt/game_list.h +++ b/src/citra_qt/game_list.h @@ -4,22 +4,22 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include #include -#include "main.h" +#include "common/common_types.h" 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 { Q_OBJECT