summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-03-16 03:55:57 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-03-16 11:50:39 +0100
commitaef9617d1ec7f73a394ed4bb43b4436e27225176 (patch)
treecd34e86e42c22b8ab3f8c93b0098645fcce9acca /src/ui
parentInclude moc files for a tiny speedup on incremental builds (diff)
downloadnheko-aef9617d1ec7f73a394ed4bb43b4436e27225176.tar.xz
Make a few headers forward declarations
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/MxcAnimatedImage.h2
-rw-r--r--src/ui/MxcMediaProxy.cpp1
-rw-r--r--src/ui/NhekoDropArea.cpp1
-rw-r--r--src/ui/NhekoGlobalObject.cpp3
-rw-r--r--src/ui/UIA.cpp1
-rw-r--r--src/ui/UserProfile.cpp1
-rw-r--r--src/ui/UserProfile.h4
7 files changed, 10 insertions, 3 deletions
diff --git a/src/ui/MxcAnimatedImage.h b/src/ui/MxcAnimatedImage.h

index 1f2c0b74..2e5ae4f7 100644 --- a/src/ui/MxcAnimatedImage.h +++ b/src/ui/MxcAnimatedImage.h
@@ -9,7 +9,7 @@ #include <QObject> #include <QQuickItem> -#include "timeline/TimelineModel.h" +class TimelineModel; // This is an AnimatedImage, that can draw encrypted images class MxcAnimatedImage : public QQuickItem diff --git a/src/ui/MxcMediaProxy.cpp b/src/ui/MxcMediaProxy.cpp
index 1b7a31be..3773b141 100644 --- a/src/ui/MxcMediaProxy.cpp +++ b/src/ui/MxcMediaProxy.cpp
@@ -17,6 +17,7 @@ #include "EventAccessors.h" #include "Logging.h" #include "MatrixClient.h" +#include "timeline/RoomlistModel.h" #include "timeline/TimelineModel.h" #include "timeline/TimelineViewManager.h" diff --git a/src/ui/NhekoDropArea.cpp b/src/ui/NhekoDropArea.cpp
index 6751a729..bc490a23 100644 --- a/src/ui/NhekoDropArea.cpp +++ b/src/ui/NhekoDropArea.cpp
@@ -8,6 +8,7 @@ #include "ChatPage.h" #include "timeline/InputBar.h" +#include "timeline/RoomlistModel.h" #include "timeline/TimelineModel.h" #include "timeline/TimelineViewManager.h" diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp
index 591eed3c..138b4283 100644 --- a/src/ui/NhekoGlobalObject.cpp +++ b/src/ui/NhekoGlobalObject.cpp
@@ -11,12 +11,13 @@ #include <QUrl> #include <QWindow> +#include <mtx/requests.hpp> + #include "Cache_p.h" #include "ChatPage.h" #include "Logging.h" #include "UserSettingsPage.h" #include "Utils.h" -#include "voip/WebRTCSession.h" #if XCB_AVAILABLE #include <xcb/xproto.h> diff --git a/src/ui/UIA.cpp b/src/ui/UIA.cpp
index f212fc1d..71bbf8e5 100644 --- a/src/ui/UIA.cpp +++ b/src/ui/UIA.cpp
@@ -9,6 +9,7 @@ #include <QInputDialog> #include <QTimer> +#include <mtx/requests.hpp> #include <mtx/responses/common.hpp> #include "Logging.h" diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index 6f5fbc61..d05b6f69 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp
@@ -16,6 +16,7 @@ #include "UserProfile.h" #include "Utils.h" #include "encryption/VerificationManager.h" +#include "timeline/RoomlistModel.h" #include "timeline/TimelineModel.h" #include "timeline/TimelineViewManager.h" #include "ui/UIA.h" diff --git a/src/ui/UserProfile.h b/src/ui/UserProfile.h
index 64dbf99c..b4b73ed3 100644 --- a/src/ui/UserProfile.h +++ b/src/ui/UserProfile.h
@@ -13,7 +13,9 @@ #include <mtx/responses/common.hpp> #include "CacheCryptoStructs.h" -#include "timeline/TimelineModel.h" +#include "CacheStructs.h" + +class TimelineModel; namespace verification { Q_NAMESPACE