diff --git a/src/ui/EventExpiry.cpp b/src/ui/EventExpiry.cpp
index afacd2cd..8065c397 100644
--- a/src/ui/EventExpiry.cpp
+++ b/src/ui/EventExpiry.cpp
@@ -123,3 +123,5 @@ EventExpiry::setExpireStateEvents(bool val)
this->event.exclude_state_events = !val;
emit expireEventsAfterCountChanged();
}
+
+#include "moc_EventExpiry.cpp"
diff --git a/src/ui/HiddenEvents.cpp b/src/ui/HiddenEvents.cpp
index f92b992d..78bb72d6 100644
--- a/src/ui/HiddenEvents.cpp
+++ b/src/ui/HiddenEvents.cpp
@@ -104,3 +104,5 @@ HiddenEvents::save()
}
});
}
+
+#include "moc_HiddenEvents.cpp"
diff --git a/src/ui/MxcAnimatedImage.cpp b/src/ui/MxcAnimatedImage.cpp
index f536b39f..e58f2e6e 100644
--- a/src/ui/MxcAnimatedImage.cpp
+++ b/src/ui/MxcAnimatedImage.cpp
@@ -208,3 +208,5 @@ MxcAnimatedImage::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeD
return n;
}
+
+#include "moc_MxcAnimatedImage.cpp"
diff --git a/src/ui/MxcMediaProxy.cpp b/src/ui/MxcMediaProxy.cpp
index 39fdb155..1b7a31be 100644
--- a/src/ui/MxcMediaProxy.cpp
+++ b/src/ui/MxcMediaProxy.cpp
@@ -172,3 +172,5 @@ MxcMediaProxy::startDownload(bool onlyCached)
}
});
}
+
+#include "moc_MxcMediaProxy.cpp"
diff --git a/src/ui/NhekoCursorShape.cpp b/src/ui/NhekoCursorShape.cpp
index 76a5e097..626470cd 100644
--- a/src/ui/NhekoCursorShape.cpp
+++ b/src/ui/NhekoCursorShape.cpp
@@ -28,3 +28,5 @@ NhekoCursorShape::setCursorShape(Qt::CursorShape cursorShape)
setCursor(cursorShape);
emit cursorShapeChanged();
}
+
+#include "moc_NhekoCursorShape.cpp"
diff --git a/src/ui/NhekoDropArea.cpp b/src/ui/NhekoDropArea.cpp
index 571ccf69..6751a729 100644
--- a/src/ui/NhekoDropArea.cpp
+++ b/src/ui/NhekoDropArea.cpp
@@ -40,3 +40,5 @@ NhekoDropArea::dropEvent(QDropEvent *event)
}
}
}
+
+#include "moc_NhekoDropArea.cpp"
diff --git a/src/ui/NhekoDropArea.h b/src/ui/NhekoDropArea.h
index 46a02da5..63a1be4c 100644
--- a/src/ui/NhekoDropArea.h
+++ b/src/ui/NhekoDropArea.h
@@ -2,6 +2,8 @@
//
// SPDX-License-Identifier: GPL-3.0-or-later
+#pragma once
+
#include <QQuickItem>
class NhekoDropArea : public QQuickItem
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp
index 54c4c1c9..591eed3c 100644
--- a/src/ui/NhekoGlobalObject.cpp
+++ b/src/ui/NhekoGlobalObject.cpp
@@ -212,3 +212,5 @@ Nheko::setWindowRole([[maybe_unused]] QWindow *win, [[maybe_unused]] QString new
role.data());
#endif
}
+
+#include "moc_NhekoGlobalObject.cpp"
diff --git a/src/ui/RoomSettings.cpp b/src/ui/RoomSettings.cpp
index 073b27d0..b61cab26 100644
--- a/src/ui/RoomSettings.cpp
+++ b/src/ui/RoomSettings.cpp
@@ -811,3 +811,5 @@ RoomSettings::applyAllowedFromModel()
this->allowedRoomsModified_ = true;
emit allowedRoomsModifiedChanged();
}
+
+#include "moc_RoomSettings.cpp"
diff --git a/src/ui/RoomSummary.cpp b/src/ui/RoomSummary.cpp
index a56c228a..edef8339 100644
--- a/src/ui/RoomSummary.cpp
+++ b/src/ui/RoomSummary.cpp
@@ -95,3 +95,5 @@ RoomSummary::promptJoin()
else
ChatPage::instance()->joinRoomVia(roomIdOrAlias, vias, true, reason_);
}
+
+#include "moc_RoomSummary.cpp"
diff --git a/src/ui/Theme.cpp b/src/ui/Theme.cpp
index 159fc2ae..4d46db13 100644
--- a/src/ui/Theme.cpp
+++ b/src/ui/Theme.cpp
@@ -84,3 +84,5 @@ Theme::Theme(QStringView theme)
error_ = QColor(0xdd, 0x3d, 0x3d);
}
}
+
+#include "moc_Theme.cpp"
diff --git a/src/ui/UIA.cpp b/src/ui/UIA.cpp
index 4c1d35b9..f212fc1d 100644
--- a/src/ui/UIA.cpp
+++ b/src/ui/UIA.cpp
@@ -285,3 +285,5 @@ UIA::submit3pidToken(const QString &token)
this->submit_url.clear();
});
}
+
+#include "moc_UIA.cpp"
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp
index c7254e23..6f5fbc61 100644
--- a/src/ui/UserProfile.cpp
+++ b/src/ui/UserProfile.cpp
@@ -627,3 +627,5 @@ UserProfile::openGlobalProfile()
{
emit manager->openGlobalUserProfile(userid_);
}
+
+#include "moc_UserProfile.cpp"
|