Include moc files for a tiny speedup on incremental builds

pull/1709/head
Nicolas Werner 8 months ago
parent d2009428b6
commit 06927cd3c2
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      .ci/format.sh
  2. 197
      scripts/includemocs.py
  3. 2
      src/AliasEditModel.cpp
  4. 2
      src/AvatarProvider.cpp
  5. 2
      src/BlurhashProvider.cpp
  6. 2
      src/ChatPage.cpp
  7. 2
      src/Clipboard.cpp
  8. 2
      src/ColorImageProvider.h
  9. 2
      src/CombinedImagePackModel.cpp
  10. 2
      src/CompletionProxyModel.cpp
  11. 2
      src/FallbackAuth.cpp
  12. 2
      src/GridImagePackModel.cpp
  13. 2
      src/ImagePackListModel.cpp
  14. 2
      src/InviteesModel.cpp
  15. 5
      src/InviteesModel.h
  16. 2
      src/JdenticonProvider.cpp
  17. 2
      src/LoginPage.cpp
  18. 2
      src/MainWindow.cpp
  19. 2
      src/MemberList.cpp
  20. 2
      src/MxcImageProvider.cpp
  21. 2
      src/PowerlevelsEditModels.cpp
  22. 2
      src/ReCaptcha.cpp
  23. 2
      src/ReadReceiptsModel.cpp
  24. 5
      src/ReadReceiptsModel.h
  25. 2
      src/RegisterPage.cpp
  26. 2
      src/RoomDirectoryModel.cpp
  27. 2
      src/SSOHandler.cpp
  28. 2
      src/SSOHandler.h
  29. 2
      src/SingleImagePackModel.cpp
  30. 2
      src/TrayIcon.cpp
  31. 2
      src/UserDirectoryModel.cpp
  32. 2
      src/UserSettingsPage.cpp
  33. 2
      src/dbus/NhekoDBusApi.cpp
  34. 5
      src/dbus/NhekoDBusApi.h
  35. 2
      src/dbus/NhekoDBusBackend.cpp
  36. 5
      src/dbus/NhekoDBusBackend.h
  37. 2
      src/dock/Dock.cpp
  38. 2
      src/emoji/Provider.cpp
  39. 2
      src/encryption/DeviceVerificationFlow.cpp
  40. 2
      src/encryption/Olm.cpp
  41. 2
      src/encryption/SelfVerificationStatus.cpp
  42. 2
      src/encryption/VerificationManager.cpp
  43. 2
      src/notifications/Manager.cpp
  44. 2
      src/timeline/CommunitiesModel.cpp
  45. 2
      src/timeline/DelegateChooser.cpp
  46. 2
      src/timeline/EventDelegateChooser.cpp
  47. 2
      src/timeline/EventStore.cpp
  48. 2
      src/timeline/InputBar.cpp
  49. 2
      src/timeline/Permissions.cpp
  50. 2
      src/timeline/PresenceEmitter.cpp
  51. 2
      src/timeline/Reaction.cpp
  52. 2
      src/timeline/RoomlistModel.cpp
  53. 2
      src/timeline/TimelineFilter.cpp
  54. 2
      src/timeline/TimelineModel.cpp
  55. 1
      src/timeline/TimelineViewManager.cpp
  56. 2
      src/ui/EventExpiry.cpp
  57. 2
      src/ui/HiddenEvents.cpp
  58. 2
      src/ui/MxcAnimatedImage.cpp
  59. 2
      src/ui/MxcMediaProxy.cpp
  60. 2
      src/ui/NhekoCursorShape.cpp
  61. 2
      src/ui/NhekoDropArea.cpp
  62. 2
      src/ui/NhekoDropArea.h
  63. 2
      src/ui/NhekoGlobalObject.cpp
  64. 2
      src/ui/RoomSettings.cpp
  65. 2
      src/ui/RoomSummary.cpp
  66. 2
      src/ui/Theme.cpp
  67. 2
      src/ui/UIA.cpp
  68. 2
      src/ui/UserProfile.cpp
  69. 2
      src/voip/CallDevices.cpp
  70. 2
      src/voip/CallManager.cpp
  71. 2
      src/voip/ScreenCastPortal.cpp
  72. 2
      src/voip/WebRTCSession.cpp

@ -17,6 +17,8 @@ done;
git diff --exit-code git diff --exit-code
./scripts/includemocs.py --insert-at-end -n src
if command -v /usr/lib64/qt6/bin/qmllint &> /dev/null; then if command -v /usr/lib64/qt6/bin/qmllint &> /dev/null; then
/usr/lib64/qt6/bin/qmllint $QML_FILES /usr/lib64/qt6/bin/qmllint $QML_FILES
elif command -v /usr/lib/qt6/bin/qmllint &> /dev/null; then elif command -v /usr/lib/qt6/bin/qmllint &> /dev/null; then

@ -0,0 +1,197 @@
#!/usr/bin/env python3
#
# This file is part of KDToolBox.
#
# SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
# Author: Jesper K. Pedersen <jesper.pedersen@kdab.com>
#
# SPDX-License-Identifier: MIT
#
'''
Script to add inclusion of mocs to files recursively.
'''
# pylint: disable=redefined-outer-name
import os
import re
import argparse
import sys
dirty = False
def stripInitialSlash(path):
if path and path.startswith("/"):
path = path[1:]
return path
# Returns true if the path is to be excluded from the search
def shouldExclude(root, path):
# pylint: disable=used-before-assignment
if not args.excludes:
return False # No excludes provided
assert root.startswith(args.root)
root = stripInitialSlash(root[len(args.root):])
if args.headerPrefix:
assert root.startswith(args.headerPrefix)
root = stripInitialSlash(root[len(args.headerPrefix):])
return (path in args.excludes) or (root + "/" + path in args.excludes)
regexp = re.compile("\\s*(Q_OBJECT|Q_GADGET|Q_NAMESPACE)\\s*")
# Returns true if the header file provides contains a Q_OBJECT, Q_GADGET or Q_NAMESPACE macro
def hasMacro(fileName):
with open(fileName, "r", encoding="ISO-8859-1") as fileHandle:
for line in fileHandle:
if regexp.match(line):
return True
return False
# returns the matching .cpp file for the given .h file
def matchingCPPFile(root, fileName):
assert root.startswith(args.root)
root = stripInitialSlash(root[len(args.root):])
if args.headerPrefix:
assert root.startswith(args.headerPrefix)
root = stripInitialSlash(root[len(args.headerPrefix):])
if args.sourcePrefix:
root = args.sourcePrefix + "/" + root
return args.root + "/" \
+ root + ("/" if root != "" else "") \
+ fileNameWithoutExtension(fileName) + ".cpp"
def fileNameWithoutExtension(fileName):
return os.path.splitext(os.path.basename(fileName))[0]
# returns true if the specifies .cpp file already has the proper include
def cppHasMOCInclude(fileName):
includeStatement = '#include "moc_%s.cpp"' % fileNameWithoutExtension(fileName)
with open(fileName, encoding="utf8") as fileHandle:
return includeStatement in fileHandle.read()
def getMocInsertionLocation(filename, content):
headerIncludeRegex = re.compile(r'#include "%s\.h".*\n' % fileNameWithoutExtension(filename), re.M)
match = headerIncludeRegex.search(content)
if match:
return match.end()
return 0
def trimExistingMocInclude(content, cppFileName):
mocStrRegex = re.compile(r'#include "moc_%s\.cpp"\n' % fileNameWithoutExtension(cppFileName))
match = mocStrRegex.search(content)
if match:
return content[:match.start()] + content[match.end():]
return content
def processFile(root, fileName):
# pylint: disable=global-statement
global dirty
macroFound = hasMacro(root+"/"+fileName)
logVerbose("Inspecting %s %s" %
(root+"/"+fileName, "[Has Q_OBJECT / Q_GADGET / Q_NAMESPACE]" if macroFound else ""))
if macroFound:
cppFileName = matchingCPPFile(root, fileName)
logVerbose(" -> %s" % cppFileName)
if not os.path.exists(cppFileName):
log("file %s didn't exist (which might not be an error)" % cppFileName)
return
if args.replaceExisting or not cppHasMOCInclude(cppFileName):
dirty = True
if args.dryRun:
log("Missing moc include file: %s" % cppFileName)
else:
log("Updating %s" % cppFileName)
with open(cppFileName, "r", encoding="utf8") as f:
content = f.read()
if args.replaceExisting:
content = trimExistingMocInclude(content, cppFileName)
loc = getMocInsertionLocation(cppFileName, content)
if args.insertAtEnd:
with open(cppFileName, "a", encoding="utf8") as f:
f.write('\n#include "moc_%s.cpp"\n' % fileNameWithoutExtension(cppFileName))
else:
with open(cppFileName, "w", encoding="utf8") as f:
f.write(content[:loc] + ('#include "moc_%s.cpp"\n' %
fileNameWithoutExtension(cppFileName)) + content[loc:])
def log(content):
if not args.quiet:
print(content)
def logVerbose(content):
if args.verbose:
print(content)
################################ MAIN #################################
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="""Script to add inclusion of mocs to files recursively.
The source files either need to be in the same directories as the header files or in parallel directories,
where the root of the headers are specified using --header-prefix and the root of the sources are specified using --source-prefix.
If either header-prefix or source-prefix is the current directory, then they may be omitted.""")
parser.add_argument("--dry-run", "-n", dest="dryRun", action='store_true', help="only report files to be updated")
parser.add_argument("--quiet", "-q", dest="quiet", action='store_true', help="suppress output")
parser.add_argument("--verbose", "-v", dest="verbose", action='store_true')
parser.add_argument("--header-prefix", metavar="directory", dest="headerPrefix",
help="This directory will be replaced with source-prefix when "
"searching for matching source files")
parser.add_argument("--source-prefix", metavar="directory", dest="sourcePrefix", help="see --header-prefix")
parser.add_argument("--excludes", metavar="directory", dest="excludes", nargs="*",
help="directories to be excluded, might either be in the form of a directory name, "
"e.g. 3rdparty or a partial directory prefix from the root, e.g 3rdparty/parser")
parser.add_argument("--insert-at-end", dest="insertAtEnd", action='store_true',
help="insert the moc include at the end of the file instead of the beginning")
parser.add_argument("--replace-existing", dest="replaceExisting", action='store_true',
help="delete and readd existing MOC include statements")
parser.add_argument(dest="root", default=".", metavar="directory",
nargs="?", help="root directory for the operation")
args = parser.parse_args()
root = args.root
if args.headerPrefix:
root += "/" + args.headerPrefix
path = os.walk(root)
for root, directories, files in path:
# Filter out directories specified in --exclude
directories[:] = [d for d in directories if not shouldExclude(root, d)]
for file in files:
if file.endswith(".h") or file.endswith(".hpp"):
processFile(root, file)
if not dirty:
log("No changes needed")
sys.exit(-1 if dirty else 0)

@ -333,3 +333,5 @@ AliasEditingModel::commit()
} }
}); });
} }
#include "moc_AliasEditModel.cpp"

@ -69,3 +69,5 @@ resolve(const QString &room_id,
resolve(std::move(avatarUrl), size, receiver, callback); resolve(std::move(avatarUrl), size, receiver, callback);
} }
} }
#include "moc_AvatarProvider.cpp"

@ -45,3 +45,5 @@ BlurhashRunnable::run()
emit done(image.convertToFormat(QImage::Format_RGB32)); emit done(image.convertToFormat(QImage::Format_RGB32));
} }
#include "moc_BlurhashProvider.cpp"

@ -1773,3 +1773,5 @@ ChatPage::removeAllNotifications()
notificationsManager->closeAllNotifications(); notificationsManager->closeAllNotifications();
#endif #endif
} }
#include "moc_ChatPage.cpp"

@ -24,3 +24,5 @@ Clipboard::text() const
{ {
return QGuiApplication::clipboard()->text(); return QGuiApplication::clipboard()->text();
} }
#include "moc_Clipboard.cpp"

@ -2,6 +2,8 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QQuickImageProvider> #include <QQuickImageProvider>
class ColorImageProvider final : public QQuickImageProvider class ColorImageProvider final : public QQuickImageProvider

@ -103,3 +103,5 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
} }
return {}; return {};
} }
#include "moc_CombinedImagePackModel.cpp"

@ -169,3 +169,5 @@ CompletionProxyModel::setSearchString(const QString &s)
{ {
emit newSearchString(s); emit newSearchString(s);
} }
#include "moc_CompletionProxyModel.cpp"

@ -27,3 +27,5 @@ FallbackAuth::openFallbackAuth()
QDesktopServices::openUrl(url); QDesktopServices::openUrl(url);
} }
#include "moc_FallbackAuth.cpp"

@ -400,3 +400,5 @@ GridImagePackModel::setSearchString(QString key)
endResetModel(); endResetModel();
emit newSearchString(); emit newSearchString();
} }
#include "moc_GridImagePackModel.cpp"

@ -97,3 +97,5 @@ ImagePackListModel::containsAccountPack() const
return true; return true;
return false; return false;
} }
#include "moc_ImagePackListModel.cpp"

@ -110,3 +110,5 @@ Invitee::Invitee(QString mxid, QString displayName, QString avatarUrl, QObject *
emit userInfoLoaded(); emit userInfoLoaded();
} }
} }
#include "moc_InviteesModel.cpp"

@ -2,8 +2,7 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef INVITEESMODEL_H #pragma once
#define INVITEESMODEL_H
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QQmlEngine> #include <QQmlEngine>
@ -73,5 +72,3 @@ private:
QVector<Invitee *> invitees_; QVector<Invitee *> invitees_;
TimelineModel *room_; TimelineModel *room_;
}; };
#endif // INVITEESMODEL_H

@ -120,3 +120,5 @@ JdenticonProvider::isAvailable()
{ {
return Jdenticon::getJdenticonInterface() != nullptr; return Jdenticon::getJdenticonInterface() != nullptr;
} }
#include "moc_JdenticonProvider.cpp"

@ -352,3 +352,5 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod,
loggingIn_ = true; loggingIn_ = true;
emit loggingInChanged(); emit loggingInChanged();
} }
#include "moc_LoginPage.cpp"

@ -322,3 +322,5 @@ MainWindow::focusedRoom() const
return nullptr; return nullptr;
} }
#include "moc_MainWindow.cpp"

@ -169,3 +169,5 @@ MemberList::filterAcceptsRow(int source_row, const QModelIndex &) const
m_model.m_memberList[source_row].first.display_name.contains(filterString, m_model.m_memberList[source_row].first.display_name.contains(filterString,
Qt::CaseInsensitive); Qt::CaseInsensitive);
} }
#include "moc_MemberList.cpp"

@ -370,3 +370,5 @@ MxcImageProvider::download(const QString &id,
} }
} }
} }
#include "moc_MxcImageProvider.cpp"

@ -827,3 +827,5 @@ PowerlevelsSpacesListModel::roleNames() const
{ApplyPermissions, "applyPermissions"}, {ApplyPermissions, "applyPermissions"},
}; };
} }
#include "moc_PowerlevelsEditModels.cpp"

@ -27,3 +27,5 @@ ReCaptcha::openReCaptcha()
QDesktopServices::openUrl(url); QDesktopServices::openUrl(url);
} }
#include "moc_ReCaptcha.cpp"

@ -129,3 +129,5 @@ ReadReceiptsProxy::ReadReceiptsProxy(QString event_id, QString room_id, QObject
sort(0, Qt::DescendingOrder); sort(0, Qt::DescendingOrder);
setDynamicSortFilter(true); setDynamicSortFilter(true);
} }
#include "moc_ReadReceiptsModel.cpp"

@ -2,8 +2,7 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef READRECEIPTSMODEL_H #pragma once
#define READRECEIPTSMODEL_H
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QDateTime> #include <QDateTime>
@ -73,5 +72,3 @@ private:
ReadReceiptsModel model_; ReadReceiptsModel model_;
}; };
#endif // READRECEIPTSMODEL_H

@ -255,3 +255,5 @@ RegisterPage::startRegistration(const QString &username,
devicename.isEmpty() ? LoginPage::initialDeviceName_() : devicename.toStdString()); devicename.isEmpty() ? LoginPage::initialDeviceName_() : devicename.toStdString());
} }
} }
#include "moc_RegisterPage.cpp"

@ -228,3 +228,5 @@ RoomDirectoryModel::displayRooms(std::vector<mtx::responses::PublicRoomsChunk> f
nhlog::ui()->debug("Finished loading rooms"); nhlog::ui()->debug("Finished loading rooms");
} }
#include "moc_RoomDirectoryModel.cpp"

@ -55,3 +55,5 @@ SSOHandler::url() const
{ {
return "http://localhost:" + std::to_string(port) + "/sso"; return "http://localhost:" + std::to_string(port) + "/sso";
} }
#include "moc_SSOHandler.cpp"

@ -2,6 +2,8 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include "httplib.h" #include "httplib.h"
#include <QObject> #include <QObject>

@ -488,3 +488,5 @@ SingleImagePackModel::addImageCb(std::string uri, std::string filename, mtx::com
if (this->pack.pack->avatar_url.empty()) if (this->pack.pack->avatar_url.empty())
this->setAvatarUrl(QString::fromStdString(uri)); this->setAvatarUrl(QString::fromStdString(uri));
} }
#include "moc_SingleImagePackModel.cpp"

@ -123,3 +123,5 @@ TrayIcon::setUnreadCount(int count)
{ {
qGuiApp->setBadgeNumber(count); qGuiApp->setBadgeNumber(count);
} }
#include "moc_TrayIcon.cpp"

@ -103,3 +103,5 @@ UserDirectoryModel::displaySearchResults(std::vector<mtx::responses::User> resul
endInsertRows(); endInsertRows();
canFetchMore_ = false; canFetchMore_ = false;
} }
#include "moc_UserDirectoryModel.cpp"

@ -2332,3 +2332,5 @@ UserSettingsModel::UserSettingsModel(QObject *p)
emit dataChanged(index(ExpireEvents), index(ExpireEvents), {Value}); emit dataChanged(index(ExpireEvents), index(ExpireEvents), {Value});
}); });
} }
#include "moc_UserSettingsPage.cpp"

@ -228,3 +228,5 @@ operator>>(const QDBusArgument &arg, QImage &image)
return arg; return arg;
} }
#include "moc_NhekoDBusApi.cpp"

@ -2,8 +2,7 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NHEKODBUSAPI_H #pragma once
#define NHEKODBUSAPI_H
#include <QDBusArgument> #include <QDBusArgument>
#include <QIcon> #include <QIcon>
@ -99,5 +98,3 @@ const QDBusArgument &
operator>>(const QDBusArgument &arg, QImage &); operator>>(const QDBusArgument &arg, QImage &);
#define NHEKO_DBUS_SERVICE_NAME "im.nheko.Nheko" #define NHEKO_DBUS_SERVICE_NAME "im.nheko.Nheko"
#endif // NHEKODBUSAPI_H

@ -117,3 +117,5 @@ NhekoDBusBackend::bringWindowToTop() const
MainWindow::instance()->show(); MainWindow::instance()->show();
MainWindow::instance()->raise(); MainWindow::instance()->raise();
} }
#include "moc_NhekoDBusBackend.cpp"

@ -2,8 +2,7 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NHEKODBUSBACKEND_H #pragma once
#define NHEKODBUSBACKEND_H
#include <QDBusMessage> #include <QDBusMessage>
#include <QObject> #include <QObject>
@ -47,5 +46,3 @@ private:
RoomlistModel *m_parent; RoomlistModel *m_parent;
}; };
#endif // NHEKODBUSBACKEND_H

@ -90,3 +90,5 @@ Dock::setUnreadCount(const int count)
qGuiApp->setBadgeNumber(count); qGuiApp->setBadgeNumber(count);
} }
#endif #endif
#include "moc_Dock.cpp"

@ -15287,3 +15287,5 @@ constexpr
std::u16string_view(u"flag: Wales"), std::u16string_view(u"flag: Wales"),
emoji::Emoji::Category::Flags}, emoji::Emoji::Category::Flags},
}; };
#include "moc_Provider.cpp"

@ -987,3 +987,5 @@ DeviceVerificationFlow::send(T msg)
mtx::events::to_string(mtx::events::to_device_content_to_type<T>), mtx::events::to_string(mtx::events::to_device_content_to_type<T>),
state().toStdString()); state().toStdString());
} }
#include "moc_DeviceVerificationFlow.cpp"

@ -1770,3 +1770,5 @@ download_cross_signing_keys()
} }
} // namespace olm } // namespace olm
#include "moc_Olm.cpp"

@ -355,3 +355,5 @@ SelfVerificationStatus::invalidate()
return; return;
} }
} }
#include "moc_SelfVerificationStatus.cpp"

@ -169,3 +169,5 @@ VerificationManager::verifyOneOfDevices(QString userid, std::vector<QString> dev
this->dvList[flow->transactionId()] = flow; this->dvList[flow->transactionId()] = flow;
emit newDeviceVerificationRequest(flow.data()); emit newDeviceVerificationRequest(flow.data());
} }
#include "moc_VerificationManager.cpp"

@ -53,3 +53,5 @@ NotificationsManager::removeNotifications(const QString &roomId_,
} }
} }
} }
#include "moc_Manager.cpp"

@ -936,3 +936,5 @@ CommunitiesModel::updateSpaceStatus(QString space,
} }
} }
} }
#include "moc_CommunitiesModel.cpp"

@ -138,3 +138,5 @@ DelegateChooser::DelegateIncubator::statusChanged(QQmlIncubator::Status status)
nhlog::ui()->error("Error instantiating delegate: {}", e.toString().toStdString()); nhlog::ui()->error("Error instantiating delegate: {}", e.toString().toStdString());
} }
} }
#include "moc_DelegateChooser.cpp"

@ -369,3 +369,5 @@ EventDelegateChooserAttachedType::polishChooser()
} }
} }
} }
#include "moc_EventDelegateChooser.cpp"

@ -941,3 +941,5 @@ EventStore::fetchMore()
emit oldMessagesRetrieved(std::move(res)); emit oldMessagesRetrieved(std::move(res));
}); });
} }
#include "moc_EventStore.cpp"

@ -1495,3 +1495,5 @@ InputBar::reaction(const QString &reactedEvent, const QString &reactionKey)
room->redactEvent(selfReactedEvent); room->redactEvent(selfReactedEvent);
} }
} }
#include "moc_InputBar.cpp"

@ -91,3 +91,5 @@ Permissions::canPingRoom()
return pl.user_level(http::client()->user_id().to_string()) >= return pl.user_level(http::client()->user_id().to_string()) >=
pl.notification_level(mtx::events::state::notification_keys::room); pl.notification_level(mtx::events::state::notification_keys::room);
} }
#include "moc_Permissions.cpp"

@ -75,3 +75,5 @@ PresenceEmitter::userStatus(QString id) const
else else
return pullPresence(id)->status; return pullPresence(id)->status;
} }
#include "moc_PresenceEmitter.cpp"

@ -3,3 +3,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#include "Reaction.h" #include "Reaction.h"
#include "moc_Reaction.cpp"

@ -1288,3 +1288,5 @@ RoomPreview::inviterUserId() const
return QString(); return QString();
} }
#include "moc_RoomlistModel.cpp"

@ -252,3 +252,5 @@ TimelineFilter::filterAcceptsRow(int source_row, const QModelIndex &) const
return true; return true;
} }
} }
#include "moc_TimelineFilter.cpp"

@ -3373,3 +3373,5 @@ TimelineModel::parentSpace()
return parentSummary.get(); return parentSummary.get();
} }
#include "moc_TimelineModel.cpp"

@ -600,3 +600,4 @@ TimelineViewManager::processIgnoredUsers(const mtx::responses::AccountData &data
break; break;
} }
} }
#include "moc_TimelineViewManager.cpp"

@ -123,3 +123,5 @@ EventExpiry::setExpireStateEvents(bool val)
this->event.exclude_state_events = !val; this->event.exclude_state_events = !val;
emit expireEventsAfterCountChanged(); emit expireEventsAfterCountChanged();
} }
#include "moc_EventExpiry.cpp"

@ -104,3 +104,5 @@ HiddenEvents::save()
} }
}); });
} }
#include "moc_HiddenEvents.cpp"

@ -208,3 +208,5 @@ MxcAnimatedImage::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeD
return n; return n;
} }
#include "moc_MxcAnimatedImage.cpp"

@ -172,3 +172,5 @@ MxcMediaProxy::startDownload(bool onlyCached)
} }
}); });
} }
#include "moc_MxcMediaProxy.cpp"

@ -28,3 +28,5 @@ NhekoCursorShape::setCursorShape(Qt::CursorShape cursorShape)
setCursor(cursorShape); setCursor(cursorShape);
emit cursorShapeChanged(); emit cursorShapeChanged();
} }
#include "moc_NhekoCursorShape.cpp"

@ -40,3 +40,5 @@ NhekoDropArea::dropEvent(QDropEvent *event)
} }
} }
} }
#include "moc_NhekoDropArea.cpp"

@ -2,6 +2,8 @@
// //
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QQuickItem> #include <QQuickItem>
class NhekoDropArea : public QQuickItem class NhekoDropArea : public QQuickItem

@ -212,3 +212,5 @@ Nheko::setWindowRole([[maybe_unused]] QWindow *win, [[maybe_unused]] QString new
role.data()); role.data());
#endif #endif
} }
#include "moc_NhekoGlobalObject.cpp"

@ -811,3 +811,5 @@ RoomSettings::applyAllowedFromModel()
this->allowedRoomsModified_ = true; this->allowedRoomsModified_ = true;
emit allowedRoomsModifiedChanged(); emit allowedRoomsModifiedChanged();
} }
#include "moc_RoomSettings.cpp"

@ -95,3 +95,5 @@ RoomSummary::promptJoin()
else else
ChatPage::instance()->joinRoomVia(roomIdOrAlias, vias, true, reason_); ChatPage::instance()->joinRoomVia(roomIdOrAlias, vias, true, reason_);
} }
#include "moc_RoomSummary.cpp"

@ -84,3 +84,5 @@ Theme::Theme(QStringView theme)
error_ = QColor(0xdd, 0x3d, 0x3d); error_ = QColor(0xdd, 0x3d, 0x3d);
} }
} }
#include "moc_Theme.cpp"

@ -285,3 +285,5 @@ UIA::submit3pidToken(const QString &token)
this->submit_url.clear(); this->submit_url.clear();
}); });
} }
#include "moc_UIA.cpp"

@ -627,3 +627,5 @@ UserProfile::openGlobalProfile()
{ {
emit manager->openGlobalUserProfile(userid_); emit manager->openGlobalUserProfile(userid_);
} }
#include "moc_UserProfile.cpp"

@ -393,3 +393,5 @@ CallDevices::frameRates(const std::string &, const std::string &) const
} }
#endif #endif
#include "moc_CallDevices.cpp"

@ -1172,3 +1172,5 @@ getTurnURIs(const mtx::responses::TurnServer &turnServer)
return ret; return ret;
} }
} }
#include "moc_CallManager.cpp"

@ -511,3 +511,5 @@ ScreenCastPortal::openPipeWireRemote()
} }
#endif #endif
#include "moc_ScreenCastPortal.cpp"

@ -1305,3 +1305,5 @@ WebRTCSession::end()
} }
#endif #endif
#include "moc_WebRTCSession.cpp"

Loading…
Cancel
Save