diff --git a/CMakeLists.txt b/CMakeLists.txt index 365ea70b3..4ab4faef7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ option(BUILD_TESTS "Build the tests for Chatterino" OFF) option(USE_SYSTEM_PAJLADA_SETTINGS "Use system pajlada settings library" OFF) option(USE_SYSTEM_LIBCOMMUNI "Use system communi library" OFF) option(USE_SYSTEM_QT5KEYCHAIN "Use system Qt5Keychain library" OFF) +option(USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) option(USE_CONAN "Use conan" OFF) diff --git a/src/Application.cpp b/src/Application.cpp index 6ab75d976..34f26a5ec 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -36,6 +36,8 @@ #include "widgets/Window.hpp" #include "widgets/splits/Split.hpp" +#include + namespace chatterino { static std::atomic isAppInitialized{false}; diff --git a/src/BrowserExtension.cpp b/src/BrowserExtension.cpp index 602a3f1f5..783a9d37e 100644 --- a/src/BrowserExtension.cpp +++ b/src/BrowserExtension.cpp @@ -2,8 +2,11 @@ #include "singletons/NativeMessaging.hpp" +#include +#include #include #include + #include #include #include diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 60edfe660..4c42203eb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -476,7 +476,9 @@ source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${SOURCE_FILES}) add_executable(${PROJECT_NAME} ${SOURCE_FILES}) add_sanitizers(${PROJECT_NAME}) -target_precompile_headers(${PROJECT_NAME} PRIVATE PrecompiledHeader.hpp) +if (USE_PRECOMPILED_HEADERS) + target_precompile_headers(${PROJECT_NAME} PRIVATE PrecompiledHeader.hpp) +endif () # Enable autogeneration of Qts MOC/RCC/UIC set_target_properties(${PROJECT_NAME} diff --git a/src/ForwardDecl.hpp b/src/ForwardDecl.hpp index 49e827ee3..6bba2d71c 100644 --- a/src/ForwardDecl.hpp +++ b/src/ForwardDecl.hpp @@ -1,5 +1,7 @@ #pragma once +#include + // This file contains common forward declarations. namespace chatterino { diff --git a/src/common/Args.cpp b/src/common/Args.cpp index c64369ffe..10c2e9b96 100644 --- a/src/common/Args.cpp +++ b/src/common/Args.cpp @@ -1,9 +1,5 @@ #include "Args.hpp" -#include -#include -#include -#include #include "common/QLogging.hpp" #include "singletons/Paths.hpp" #include "singletons/WindowManager.hpp" @@ -11,6 +7,12 @@ #include "util/CombinePath.hpp" #include "widgets/Window.hpp" +#include +#include +#include +#include +#include + namespace chatterino { Args::Args(const QApplication &app) diff --git a/src/common/ChannelChatters.hpp b/src/common/ChannelChatters.hpp index f45cac8a8..ed135b2a2 100644 --- a/src/common/ChannelChatters.hpp +++ b/src/common/ChannelChatters.hpp @@ -7,6 +7,8 @@ #include "lrucache/lrucache.hpp" +#include + namespace chatterino { class ChannelChatters diff --git a/src/common/Credentials.cpp b/src/common/Credentials.cpp index 28ac985c4..42ffb481f 100644 --- a/src/common/Credentials.cpp +++ b/src/common/Credentials.cpp @@ -6,6 +6,9 @@ #include "util/CombinePath.hpp" #include "util/Overloaded.hpp" +#include +#include + #ifdef CMAKE_BUILD # include "qt5keychain/keychain.h" #else diff --git a/src/common/Credentials.hpp b/src/common/Credentials.hpp index 260109f6a..0b144f602 100644 --- a/src/common/Credentials.hpp +++ b/src/common/Credentials.hpp @@ -1,6 +1,8 @@ #pragma once +#include #include + #include namespace chatterino { diff --git a/src/common/FlagsEnum.hpp b/src/common/FlagsEnum.hpp index c7ade164b..c5d65e186 100644 --- a/src/common/FlagsEnum.hpp +++ b/src/common/FlagsEnum.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include namespace chatterino { diff --git a/src/common/LinkParser.cpp b/src/common/LinkParser.cpp index 18c3a29a7..1b8c3f14d 100644 --- a/src/common/LinkParser.cpp +++ b/src/common/LinkParser.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include diff --git a/src/common/SignalVectorModel.hpp b/src/common/SignalVectorModel.hpp index a122a2e6a..e2b0a71b7 100644 --- a/src/common/SignalVectorModel.hpp +++ b/src/common/SignalVectorModel.hpp @@ -3,6 +3,7 @@ #include "common/SignalVector.hpp" #include +#include #include #include diff --git a/src/common/WindowDescriptors.cpp b/src/common/WindowDescriptors.cpp index ed86a952c..7a82596f3 100644 --- a/src/common/WindowDescriptors.cpp +++ b/src/common/WindowDescriptors.cpp @@ -3,6 +3,10 @@ #include "common/QLogging.hpp" #include "widgets/Window.hpp" +#include +#include +#include + namespace chatterino { namespace { diff --git a/src/common/WindowDescriptors.hpp b/src/common/WindowDescriptors.hpp index b32d28dca..9c2aa2888 100644 --- a/src/common/WindowDescriptors.hpp +++ b/src/common/WindowDescriptors.hpp @@ -1,6 +1,10 @@ #pragma once +#include +#include +#include #include +#include #include #include diff --git a/src/controllers/moderationactions/ModerationAction.hpp b/src/controllers/moderationactions/ModerationAction.hpp index f66d9d28f..5e08ddcf0 100644 --- a/src/controllers/moderationactions/ModerationAction.hpp +++ b/src/controllers/moderationactions/ModerationAction.hpp @@ -6,6 +6,8 @@ #include "util/RapidjsonHelpers.hpp" +#include + namespace chatterino { class Image; diff --git a/src/debug/Benchmark.hpp b/src/debug/Benchmark.hpp index 66e9732f3..cb7660b51 100644 --- a/src/debug/Benchmark.hpp +++ b/src/debug/Benchmark.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include namespace chatterino { diff --git a/src/messages/SharedMessageBuilder.cpp b/src/messages/SharedMessageBuilder.cpp index 0fcf94502..e3faa6648 100644 --- a/src/messages/SharedMessageBuilder.cpp +++ b/src/messages/SharedMessageBuilder.cpp @@ -10,6 +10,9 @@ #include "singletons/WindowManager.hpp" #include "util/StreamerMode.hpp" +#include +#include + namespace chatterino { namespace { diff --git a/src/messages/SharedMessageBuilder.hpp b/src/messages/SharedMessageBuilder.hpp index 355c2908d..49724b396 100644 --- a/src/messages/SharedMessageBuilder.hpp +++ b/src/messages/SharedMessageBuilder.hpp @@ -5,6 +5,7 @@ #include #include +#include namespace chatterino { diff --git a/src/providers/IvrApi.hpp b/src/providers/IvrApi.hpp index f82d2af96..1a658cdba 100644 --- a/src/providers/IvrApi.hpp +++ b/src/providers/IvrApi.hpp @@ -3,6 +3,8 @@ #include "common/NetworkRequest.hpp" #include "messages/Link.hpp" +#include + #include namespace chatterino { diff --git a/src/providers/ffz/FfzBadges.hpp b/src/providers/ffz/FfzBadges.hpp index 57632bc39..b690a2575 100644 --- a/src/providers/ffz/FfzBadges.hpp +++ b/src/providers/ffz/FfzBadges.hpp @@ -10,6 +10,8 @@ #include #include +#include + namespace chatterino { struct Emote; diff --git a/src/providers/irc/Irc2.cpp b/src/providers/irc/Irc2.cpp index 1b1dfcf46..61a8a2cdd 100644 --- a/src/providers/irc/Irc2.cpp +++ b/src/providers/irc/Irc2.cpp @@ -11,6 +11,8 @@ #include #include +#include + namespace chatterino { namespace { diff --git a/src/providers/irc/IrcCommands.hpp b/src/providers/irc/IrcCommands.hpp index d6d0dd795..32679e599 100644 --- a/src/providers/irc/IrcCommands.hpp +++ b/src/providers/irc/IrcCommands.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include "common/Outcome.hpp" namespace chatterino { diff --git a/src/providers/irc/IrcServer.cpp b/src/providers/irc/IrcServer.cpp index 34d33bb59..31d4ea641 100644 --- a/src/providers/irc/IrcServer.cpp +++ b/src/providers/irc/IrcServer.cpp @@ -11,6 +11,8 @@ #include "singletons/Settings.hpp" #include "util/QObjectRef.hpp" +#include + namespace chatterino { IrcServer::IrcServer(const IrcServerData &data) diff --git a/src/providers/twitch/ChannelPointReward.hpp b/src/providers/twitch/ChannelPointReward.hpp index fcd9ccd6f..65885bcda 100644 --- a/src/providers/twitch/ChannelPointReward.hpp +++ b/src/providers/twitch/ChannelPointReward.hpp @@ -4,6 +4,8 @@ #include "messages/Image.hpp" #include "messages/ImageSet.hpp" +#include + #define TWITCH_CHANNEL_POINT_REWARD_URL(x) \ QString("https://static-cdn.jtvnw.net/custom-reward-images/default-%1") \ .arg(x) diff --git a/src/providers/twitch/TwitchBadges.cpp b/src/providers/twitch/TwitchBadges.cpp index 694c20270..65481ab5d 100644 --- a/src/providers/twitch/TwitchBadges.cpp +++ b/src/providers/twitch/TwitchBadges.cpp @@ -1,5 +1,8 @@ #include "TwitchBadges.hpp" +#include +#include +#include #include #include #include diff --git a/src/providers/twitch/TwitchBadges.hpp b/src/providers/twitch/TwitchBadges.hpp index c13e3a079..abbd5aeb8 100644 --- a/src/providers/twitch/TwitchBadges.hpp +++ b/src/providers/twitch/TwitchBadges.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include @@ -11,6 +12,8 @@ #include "pajlada/signals/signal.hpp" +#include +#include #include namespace chatterino { diff --git a/src/providers/twitch/TwitchEmotes.hpp b/src/providers/twitch/TwitchEmotes.hpp index d0986cfe3..e85e069a0 100644 --- a/src/providers/twitch/TwitchEmotes.hpp +++ b/src/providers/twitch/TwitchEmotes.hpp @@ -8,6 +8,8 @@ #include "common/Aliases.hpp" #include "common/UniqueAccess.hpp" +#include + #define TWITCH_EMOTE_TEMPLATE \ "https://static-cdn.jtvnw.net/emoticons/v1/{id}/{scale}" diff --git a/src/providers/twitch/TwitchIrcServer.cpp b/src/providers/twitch/TwitchIrcServer.cpp index 724d6747e..148b5c3ae 100644 --- a/src/providers/twitch/TwitchIrcServer.cpp +++ b/src/providers/twitch/TwitchIrcServer.cpp @@ -17,6 +17,8 @@ #include "providers/twitch/TwitchHelpers.hpp" #include "util/PostToThread.hpp" +#include + // using namespace Communi; using namespace std::chrono_literals; diff --git a/src/providers/twitch/api/Helix.cpp b/src/providers/twitch/api/Helix.cpp index 0af299970..34f5a409a 100644 --- a/src/providers/twitch/api/Helix.cpp +++ b/src/providers/twitch/api/Helix.cpp @@ -3,6 +3,8 @@ #include "common/Outcome.hpp" #include "common/QLogging.hpp" +#include + namespace chatterino { static Helix *instance = nullptr; diff --git a/src/singletons/Toasts.hpp b/src/singletons/Toasts.hpp index 5ef792c77..f32c0c4c4 100644 --- a/src/singletons/Toasts.hpp +++ b/src/singletons/Toasts.hpp @@ -3,6 +3,8 @@ #include "Application.hpp" #include "common/Singleton.hpp" +#include + namespace chatterino { enum class Platform : uint8_t; diff --git a/src/util/Clipboard.cpp b/src/util/Clipboard.cpp index 255ae14f0..b68754223 100644 --- a/src/util/Clipboard.cpp +++ b/src/util/Clipboard.cpp @@ -1,6 +1,8 @@ #include "util/Clipboard.hpp" #include +#include + namespace chatterino { void crossPlatformCopy(const QString &text) diff --git a/src/util/DisplayBadge.hpp b/src/util/DisplayBadge.hpp index add8594a8..e07e63bbb 100644 --- a/src/util/DisplayBadge.hpp +++ b/src/util/DisplayBadge.hpp @@ -1,5 +1,7 @@ #pragma once +#include + namespace chatterino { class DisplayBadge { diff --git a/src/util/IrcHelpers.hpp b/src/util/IrcHelpers.hpp index 821bee2fd..6b6096903 100644 --- a/src/util/IrcHelpers.hpp +++ b/src/util/IrcHelpers.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include namespace chatterino { diff --git a/src/util/StandardItemHelper.hpp b/src/util/StandardItemHelper.hpp index f9caeb0a6..4e62c91e7 100644 --- a/src/util/StandardItemHelper.hpp +++ b/src/util/StandardItemHelper.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include namespace chatterino { diff --git a/src/util/StreamerMode.cpp b/src/util/StreamerMode.cpp index c2b00237a..059b6beaf 100644 --- a/src/util/StreamerMode.cpp +++ b/src/util/StreamerMode.cpp @@ -19,6 +19,8 @@ # pragma comment(lib, "Wtsapi32.lib") #endif +#include + namespace chatterino { constexpr int cooldownInS = 10; diff --git a/src/util/StreamerMode.hpp b/src/util/StreamerMode.hpp index 989b4802c..0c8daaf6a 100644 --- a/src/util/StreamerMode.hpp +++ b/src/util/StreamerMode.hpp @@ -1,5 +1,7 @@ #pragma once +#include + namespace chatterino { enum StreamerModeSetting { Disabled = 0, Enabled = 1, DetectObs = 2 }; diff --git a/src/util/Twitch.cpp b/src/util/Twitch.cpp index ca1cf62c0..4e7d1605e 100644 --- a/src/util/Twitch.cpp +++ b/src/util/Twitch.cpp @@ -1,6 +1,7 @@ #include "util/Twitch.hpp" #include +#include namespace chatterino { diff --git a/src/widgets/BasePopup.cpp b/src/widgets/BasePopup.cpp index 04391d656..0f3ed3c1d 100644 --- a/src/widgets/BasePopup.cpp +++ b/src/widgets/BasePopup.cpp @@ -1,5 +1,7 @@ #include "widgets/BasePopup.hpp" +#include + namespace chatterino { BasePopup::BasePopup(FlagsEnum _flags, QWidget *parent) diff --git a/src/widgets/TooltipWidget.cpp b/src/widgets/TooltipWidget.cpp index 68c5b31d4..6aac584b5 100644 --- a/src/widgets/TooltipWidget.cpp +++ b/src/widgets/TooltipWidget.cpp @@ -12,6 +12,8 @@ # include #endif +#include + namespace chatterino { TooltipWidget *TooltipWidget::instance() diff --git a/src/widgets/dialogs/BadgePickerDialog.cpp b/src/widgets/dialogs/BadgePickerDialog.cpp index 95e08db2d..a5506c974 100644 --- a/src/widgets/dialogs/BadgePickerDialog.cpp +++ b/src/widgets/dialogs/BadgePickerDialog.cpp @@ -4,6 +4,9 @@ #include "providers/twitch/TwitchBadges.hpp" +#include +#include + namespace chatterino { BadgePickerDialog::BadgePickerDialog(QList badges, diff --git a/src/widgets/dialogs/BadgePickerDialog.hpp b/src/widgets/dialogs/BadgePickerDialog.hpp index 2df901c90..171f9f2bc 100644 --- a/src/widgets/dialogs/BadgePickerDialog.hpp +++ b/src/widgets/dialogs/BadgePickerDialog.hpp @@ -2,7 +2,9 @@ #include "util/DisplayBadge.hpp" +#include #include +#include namespace chatterino { diff --git a/src/widgets/dialogs/ChannelFilterEditorDialog.cpp b/src/widgets/dialogs/ChannelFilterEditorDialog.cpp index a399f08c3..682328f43 100644 --- a/src/widgets/dialogs/ChannelFilterEditorDialog.cpp +++ b/src/widgets/dialogs/ChannelFilterEditorDialog.cpp @@ -2,6 +2,9 @@ #include "controllers/filters/parser/FilterParser.hpp" +#include +#include + namespace chatterino { namespace { diff --git a/src/widgets/dialogs/ChannelFilterEditorDialog.hpp b/src/widgets/dialogs/ChannelFilterEditorDialog.hpp index e8230e7b1..ac1e96d12 100644 --- a/src/widgets/dialogs/ChannelFilterEditorDialog.hpp +++ b/src/widgets/dialogs/ChannelFilterEditorDialog.hpp @@ -1,5 +1,11 @@ #pragma once +#include +#include +#include +#include +#include + namespace chatterino { class ChannelFilterEditorDialog : public QDialog { diff --git a/src/widgets/dialogs/ColorPickerDialog.cpp b/src/widgets/dialogs/ColorPickerDialog.cpp index 89fd7b2e1..5f3c72626 100644 --- a/src/widgets/dialogs/ColorPickerDialog.cpp +++ b/src/widgets/dialogs/ColorPickerDialog.cpp @@ -3,6 +3,9 @@ #include "providers/colors/ColorProvider.hpp" #include "singletons/Theme.hpp" +#include +#include + namespace chatterino { ColorPickerDialog::ColorPickerDialog(const QColor &initial, QWidget *parent) diff --git a/src/widgets/dialogs/ColorPickerDialog.hpp b/src/widgets/dialogs/ColorPickerDialog.hpp index f325c59ba..73e9d0596 100644 --- a/src/widgets/dialogs/ColorPickerDialog.hpp +++ b/src/widgets/dialogs/ColorPickerDialog.hpp @@ -9,6 +9,8 @@ #include +#include + namespace chatterino { /** diff --git a/src/widgets/dialogs/IrcConnectionEditor.hpp b/src/widgets/dialogs/IrcConnectionEditor.hpp index e71bb1f1a..faff91d64 100644 --- a/src/widgets/dialogs/IrcConnectionEditor.hpp +++ b/src/widgets/dialogs/IrcConnectionEditor.hpp @@ -5,6 +5,8 @@ #include "providers/irc/Irc2.hpp" #include "widgets/BaseWindow.hpp" +#include + namespace Ui { class IrcConnectionEditor; } diff --git a/src/widgets/dialogs/NotificationPopup.cpp b/src/widgets/dialogs/NotificationPopup.cpp index 95233db6e..11e1b63a9 100644 --- a/src/widgets/dialogs/NotificationPopup.cpp +++ b/src/widgets/dialogs/NotificationPopup.cpp @@ -8,6 +8,8 @@ #include #include +#include + namespace chatterino { NotificationPopup::NotificationPopup() diff --git a/src/widgets/dialogs/SelectChannelDialog.cpp b/src/widgets/dialogs/SelectChannelDialog.cpp index 4021721cc..2755c3c0d 100644 --- a/src/widgets/dialogs/SelectChannelDialog.cpp +++ b/src/widgets/dialogs/SelectChannelDialog.cpp @@ -20,6 +20,9 @@ #include "providers/irc/Irc2.hpp" #include "widgets/helper/EditableModelView.hpp" +#include +#include + #define TAB_TWITCH 0 #define TAB_IRC 1 diff --git a/src/widgets/dialogs/SelectChannelDialog.hpp b/src/widgets/dialogs/SelectChannelDialog.hpp index 229cb4c51..2e4e4ed19 100644 --- a/src/widgets/dialogs/SelectChannelDialog.hpp +++ b/src/widgets/dialogs/SelectChannelDialog.hpp @@ -9,6 +9,8 @@ #include #include +#include + namespace chatterino { class Notebook; diff --git a/src/widgets/dialogs/SelectChannelFiltersDialog.cpp b/src/widgets/dialogs/SelectChannelFiltersDialog.cpp index d9b020d96..2421d8bd8 100644 --- a/src/widgets/dialogs/SelectChannelFiltersDialog.cpp +++ b/src/widgets/dialogs/SelectChannelFiltersDialog.cpp @@ -2,6 +2,11 @@ #include "singletons/Settings.hpp" +#include +#include +#include +#include + namespace chatterino { SelectChannelFiltersDialog::SelectChannelFiltersDialog( diff --git a/src/widgets/dialogs/SettingsDialog.hpp b/src/widgets/dialogs/SettingsDialog.hpp index c5b79e095..f30cde34b 100644 --- a/src/widgets/dialogs/SettingsDialog.hpp +++ b/src/widgets/dialogs/SettingsDialog.hpp @@ -10,6 +10,8 @@ #include #include "widgets/helper/SettingsDialogTab.hpp" +#include + class QLineEdit; namespace chatterino { diff --git a/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp b/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp index e92848ec4..44c2b7091 100644 --- a/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp +++ b/src/widgets/dialogs/switcher/QuickSwitcherPopup.hpp @@ -8,6 +8,8 @@ #include +#include + namespace chatterino { class GenericListView; diff --git a/src/widgets/helper/ColorButton.hpp b/src/widgets/helper/ColorButton.hpp index 596cb402a..7101a8dce 100644 --- a/src/widgets/helper/ColorButton.hpp +++ b/src/widgets/helper/ColorButton.hpp @@ -1,5 +1,7 @@ #pragma once +#include + namespace chatterino { class ColorButton : public QPushButton diff --git a/src/widgets/helper/EditableModelView.cpp b/src/widgets/helper/EditableModelView.cpp index 31e376692..e8add8e79 100644 --- a/src/widgets/helper/EditableModelView.cpp +++ b/src/widgets/helper/EditableModelView.cpp @@ -9,6 +9,8 @@ #include #include +#include + namespace chatterino { EditableModelView::EditableModelView(QAbstractTableModel *model, bool movable) diff --git a/src/widgets/helper/NotebookButton.cpp b/src/widgets/helper/NotebookButton.cpp index 33b4e0638..bb8342faa 100644 --- a/src/widgets/helper/NotebookButton.cpp +++ b/src/widgets/helper/NotebookButton.cpp @@ -10,6 +10,8 @@ #include #include +#include + #define nuuls nullptr namespace chatterino { diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index 190dd9b35..3d0015f6c 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -14,6 +14,9 @@ #include #include +#include +#include +#include #include #include #include diff --git a/src/widgets/helper/QColorPicker.cpp b/src/widgets/helper/QColorPicker.cpp index 5b025ddcb..a50f6e929 100644 --- a/src/widgets/helper/QColorPicker.cpp +++ b/src/widgets/helper/QColorPicker.cpp @@ -38,6 +38,9 @@ ****************************************************************************/ #include "widgets/helper/QColorPicker.hpp" +#include +#include + #include /* diff --git a/src/widgets/helper/QColorPicker.hpp b/src/widgets/helper/QColorPicker.hpp index 83109b36b..b7d9f43d5 100644 --- a/src/widgets/helper/QColorPicker.hpp +++ b/src/widgets/helper/QColorPicker.hpp @@ -38,6 +38,7 @@ ****************************************************************************/ #pragma once +#include #include namespace chatterino { diff --git a/src/widgets/helper/ScrollbarHighlight.hpp b/src/widgets/helper/ScrollbarHighlight.hpp index 50fc0c936..41b76b89d 100644 --- a/src/widgets/helper/ScrollbarHighlight.hpp +++ b/src/widgets/helper/ScrollbarHighlight.hpp @@ -1,5 +1,9 @@ #pragma once +#include + +#include + namespace chatterino { class ScrollbarHighlight diff --git a/src/widgets/helper/TitlebarButton.cpp b/src/widgets/helper/TitlebarButton.cpp index b6eeb8789..d946dae0b 100644 --- a/src/widgets/helper/TitlebarButton.cpp +++ b/src/widgets/helper/TitlebarButton.cpp @@ -2,6 +2,8 @@ #include "BaseTheme.hpp" +#include + namespace chatterino { TitleBarButton::TitleBarButton() diff --git a/src/widgets/listview/GenericListItem.hpp b/src/widgets/listview/GenericListItem.hpp index ce78d1db7..be9b2b9a2 100644 --- a/src/widgets/listview/GenericListItem.hpp +++ b/src/widgets/listview/GenericListItem.hpp @@ -1,5 +1,10 @@ #pragma once +#include +#include +#include +#include + namespace chatterino { class GenericListItem diff --git a/src/widgets/listview/GenericListModel.hpp b/src/widgets/listview/GenericListModel.hpp index a803c0ff4..767ff6915 100644 --- a/src/widgets/listview/GenericListModel.hpp +++ b/src/widgets/listview/GenericListModel.hpp @@ -1,5 +1,8 @@ #include "widgets/listview/GenericListItem.hpp" +#include +#include + namespace chatterino { class GenericListModel : public QAbstractListModel diff --git a/src/widgets/listview/GenericListView.cpp b/src/widgets/listview/GenericListView.cpp index ca910387e..588c95591 100644 --- a/src/widgets/listview/GenericListView.cpp +++ b/src/widgets/listview/GenericListView.cpp @@ -2,6 +2,8 @@ #include "singletons/Theme.hpp" #include "widgets/listview/GenericListModel.hpp" +#include + namespace chatterino { GenericListView::GenericListView() diff --git a/src/widgets/settingspages/FiltersPage.cpp b/src/widgets/settingspages/FiltersPage.cpp index 18ac1de2b..3fd8ef954 100644 --- a/src/widgets/settingspages/FiltersPage.cpp +++ b/src/widgets/settingspages/FiltersPage.cpp @@ -10,6 +10,8 @@ #include +#include + #define FILTERS_DOCUMENTATION "https://wiki.chatterino.com/Filters/" namespace chatterino { diff --git a/src/widgets/settingspages/GeneralPage.cpp b/src/widgets/settingspages/GeneralPage.cpp index 3d64c2151..ca26258ad 100644 --- a/src/widgets/settingspages/GeneralPage.cpp +++ b/src/widgets/settingspages/GeneralPage.cpp @@ -18,6 +18,9 @@ #include "widgets/helper/Line.hpp" #include "widgets/settingspages/GeneralPageView.hpp" +#include +#include + #define CHROME_EXTENSION_LINK \ "https://chrome.google.com/webstore/detail/chatterino-native-host/" \ "glknmaideaikkmemifbfkhnomoknepka" diff --git a/src/widgets/settingspages/GeneralPageView.hpp b/src/widgets/settingspages/GeneralPageView.hpp index 6ce83c5b7..3b21f0665 100644 --- a/src/widgets/settingspages/GeneralPageView.hpp +++ b/src/widgets/settingspages/GeneralPageView.hpp @@ -7,6 +7,11 @@ #include "singletons/WindowManager.hpp" #include "widgets/helper/SignalLabel.hpp" +#include +#include +#include +#include + class QScrollArea; namespace chatterino { diff --git a/src/widgets/settingspages/SettingsPage.hpp b/src/widgets/settingspages/SettingsPage.hpp index d3a9ee111..3b364d1e4 100644 --- a/src/widgets/settingspages/SettingsPage.hpp +++ b/src/widgets/settingspages/SettingsPage.hpp @@ -8,6 +8,10 @@ #include "singletons/Settings.hpp" +#include +#include +#include + #define SETTINGS_PAGE_WIDGET_BOILERPLATE(type, parent) \ class type : public parent \ { \ diff --git a/src/widgets/splits/SplitHeader.hpp b/src/widgets/splits/SplitHeader.hpp index 59edcfe1b..4e68c717d 100644 --- a/src/widgets/splits/SplitHeader.hpp +++ b/src/widgets/splits/SplitHeader.hpp @@ -10,6 +10,8 @@ #include #include +#include + namespace chatterino { class Button;