From 6d45d126f8c53cbfec55d769376c09174ba16f38 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 12 Jul 2023 13:47:51 +0200 Subject: [PATCH] Add explicit moc includes to sources for moc-covered headers Add missing #pragma once + missing include * speeds up incremental builds as changes to a header will not always need the full mocs_compilation.cpp for all the target's headers rebuild, while having a moc file sourced into a source file only adds minor extra costs, due to small own code and the used headers usually already covered by the source file, being for the same class/struct * seems to not slow down clean builds, due to empty mocs_compilation.cpp resulting in those quickly processed, while the minor extra cost of the sourced moc files does not outweigh that in summary. Measured times actually improved by some percent points. (ideally CMake would just skip empty mocs_compilation.cpp & its object file one day) * enables compiler to see all methods of a class in same compilation unit to do some sanity checks * potentially more inlining in general, due to more in the compilation unit * allows to keep using more forward declarations in the header, as with the moc code being sourced into the cpp file there definitions can be ensured and often are already for the needs of the normal class methods --- src/actionshandler.cpp | 2 ++ src/chatdocumenthandler.cpp | 2 ++ src/clipboard.cpp | 2 ++ src/colorschemer.cpp | 2 ++ src/controller.cpp | 2 ++ src/delegatesizehelper.cpp | 2 ++ src/filetypesingleton.cpp | 2 ++ src/filetypesingleton.h | 1 + src/linkpreviewer.cpp | 2 ++ src/locationhelper.cpp | 2 ++ src/locationhelper.h | 1 + src/login.cpp | 2 ++ src/matriximageprovider.cpp | 2 ++ src/models/accountemoticonmodel.cpp | 2 ++ src/models/collapsestateproxymodel.cpp | 2 ++ src/models/completionmodel.cpp | 2 ++ src/models/completionproxymodel.cpp | 2 ++ src/models/customemojimodel.cpp | 2 ++ src/models/devicesmodel.cpp | 2 ++ src/models/emojimodel.cpp | 2 ++ src/models/emoticonfiltermodel.cpp | 2 ++ src/models/emoticonfiltermodel.h | 2 ++ src/models/imagepacksmodel.cpp | 2 ++ src/models/livelocationsmodel.cpp | 2 ++ src/models/locationsmodel.cpp | 2 ++ src/models/mediamessagefiltermodel.cpp | 2 ++ src/models/messageeventmodel.cpp | 2 ++ src/models/messagefiltermodel.cpp | 2 ++ src/models/publicroomlistmodel.cpp | 2 ++ src/models/pushrulemodel.cpp | 2 ++ src/models/reactionmodel.cpp | 2 ++ src/models/roomlistmodel.cpp | 2 ++ src/models/searchmodel.cpp | 2 ++ src/models/serverlistmodel.cpp | 2 ++ src/models/sortfilterroomlistmodel.cpp | 2 ++ src/models/sortfilterspacelistmodel.cpp | 2 ++ src/models/statefiltermodel.cpp | 2 ++ src/models/statemodel.cpp | 2 ++ src/models/stickermodel.cpp | 2 ++ src/models/userdirectorylistmodel.cpp | 2 ++ src/models/userfiltermodel.cpp | 2 ++ src/models/userlistmodel.cpp | 2 ++ src/models/webshortcutmodel.cpp | 2 ++ src/neochataccountregistry.cpp | 2 ++ src/neochatroom.cpp | 2 ++ src/neochatuser.cpp | 2 ++ src/notificationsmanager.cpp | 2 ++ src/pollhandler.cpp | 2 ++ src/roommanager.cpp | 2 ++ src/runner.cpp | 2 ++ src/spacehierarchycache.cpp | 2 ++ src/texthandler.cpp | 2 ++ src/trayicon.cpp | 2 ++ src/trayicon_sni.cpp | 2 ++ src/urlhelper.cpp | 2 ++ src/windowcontroller.cpp | 2 ++ 56 files changed, 110 insertions(+) diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index 14e466669..d35d88679 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -183,3 +183,5 @@ void ActionsHandler::checkEffects(const QString &text) Q_EMIT showEffect(*effect); } } + +#include "moc_actionshandler.cpp" diff --git a/src/chatdocumenthandler.cpp b/src/chatdocumenthandler.cpp index ba799ebf3..02b255be0 100644 --- a/src/chatdocumenthandler.cpp +++ b/src/chatdocumenthandler.cpp @@ -355,3 +355,5 @@ void ChatDocumentHandler::setErrorColor(const QColor &color) m_highlighter->rehighlight(); Q_EMIT errorColorChanged(); } + +#include "moc_chatdocumenthandler.cpp" diff --git a/src/clipboard.cpp b/src/clipboard.cpp index 1fbef7878..dbc76daf1 100644 --- a/src/clipboard.cpp +++ b/src/clipboard.cpp @@ -79,3 +79,5 @@ void Clipboard::setImage(const QUrl &url) } } } + +#include "moc_clipboard.cpp" diff --git a/src/colorschemer.cpp b/src/colorschemer.cpp index d2c98ffbc..cad39bdb1 100644 --- a/src/colorschemer.cpp +++ b/src/colorschemer.cpp @@ -44,3 +44,5 @@ QString ColorSchemer::nameForIndex(int index) const { return c->model()->data(c->model()->index(index, 0), Qt::DisplayRole).toString(); } + +#include "moc_colorschemer.cpp" diff --git a/src/controller.cpp b/src/controller.cpp index 59e5c857f..35349be08 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -746,3 +746,5 @@ QVariantList Controller::getSupportedRoomVersions(Quotient::Connection *connecti return supportedRoomVersions; } + +#include "moc_controller.cpp" diff --git a/src/delegatesizehelper.cpp b/src/delegatesizehelper.cpp index b1bc2f6bf..7c4d6dec0 100644 --- a/src/delegatesizehelper.cpp +++ b/src/delegatesizehelper.cpp @@ -151,3 +151,5 @@ qreal DelegateSizeHelper::currentWidth() const return std::ceil(std::min(absoluteWidth, m_maxWidth)); } } + +#include "moc_delegatesizehelper.cpp" diff --git a/src/filetypesingleton.cpp b/src/filetypesingleton.cpp index 184104d26..edb699760 100644 --- a/src/filetypesingleton.cpp +++ b/src/filetypesingleton.cpp @@ -112,3 +112,5 @@ QStringList FileTypeSingleton::supportedAnimatedImageFormats() const Q_D(const FileTypeSingleton); return d->supportedAnimatedImageFormats; } + +#include "moc_filetypesingleton.cpp" diff --git a/src/filetypesingleton.h b/src/filetypesingleton.h index 4086bf34b..176aebd61 100644 --- a/src/filetypesingleton.h +++ b/src/filetypesingleton.h @@ -5,6 +5,7 @@ #pragma once +#include #include #include #include diff --git a/src/linkpreviewer.cpp b/src/linkpreviewer.cpp index 0dd96849b..4fee72bfc 100644 --- a/src/linkpreviewer.cpp +++ b/src/linkpreviewer.cpp @@ -89,3 +89,5 @@ void LinkPreviewer::loadUrlPreview() }); } } + +#include "moc_linkpreviewer.cpp" diff --git a/src/locationhelper.cpp b/src/locationhelper.cpp index aa8679c5d..8614bdab8 100644 --- a/src/locationhelper.cpp +++ b/src/locationhelper.cpp @@ -42,3 +42,5 @@ float LocationHelper::zoomToFit(const QRectF &r, float mapWidth, float mapHeight return std::clamp(z, 5.0, 18.0); } + +#include "moc_locationhelper.cpp" diff --git a/src/locationhelper.h b/src/locationhelper.h index 04a8777fc..2d396c7d0 100644 --- a/src/locationhelper.h +++ b/src/locationhelper.h @@ -1,5 +1,6 @@ // SPDX-FileCopyrightText: 2023 Volker Krause // SPDX-License-Identifier: LGPL-2.0-or-later +#pragma once #include "linkpreviewer.h" #include diff --git a/src/login.cpp b/src/login.cpp index 3a6602544..59a7be097 100644 --- a/src/login.cpp +++ b/src/login.cpp @@ -207,3 +207,5 @@ bool Login::isLoggedIn() const { return m_isLoggedIn; } + +#include "moc_login.cpp" diff --git a/src/matriximageprovider.cpp b/src/matriximageprovider.cpp index 838cdacb6..ad62cf427 100644 --- a/src/matriximageprovider.cpp +++ b/src/matriximageprovider.cpp @@ -114,3 +114,5 @@ QQuickImageResponse *MatrixImageProvider::requestImageResponse(const QString &id { return new ThumbnailResponse(id, requestedSize); } + +#include "moc_matriximageprovider.cpp" diff --git a/src/models/accountemoticonmodel.cpp b/src/models/accountemoticonmodel.cpp index b6968a7bf..b46c5966e 100644 --- a/src/models/accountemoticonmodel.cpp +++ b/src/models/accountemoticonmodel.cpp @@ -176,3 +176,5 @@ void AccountEmoticonModel::addEmoticon(const QUrl &source, const QString &shortc { doAddEmoticon(source, shortcode, description, type); } + +#include "moc_accountemoticonmodel.cpp" diff --git a/src/models/collapsestateproxymodel.cpp b/src/models/collapsestateproxymodel.cpp index bbd5657c3..f38d2f4eb 100644 --- a/src/models/collapsestateproxymodel.cpp +++ b/src/models/collapsestateproxymodel.cpp @@ -174,3 +174,5 @@ QString CollapseStateProxyModel::excessAuthors(int row) const return QStringLiteral("+ %1").arg(excessAuthors); } } + +#include "moc_collapsestateproxymodel.cpp" diff --git a/src/models/completionmodel.cpp b/src/models/completionmodel.cpp index c849c8cf2..3d60293bf 100644 --- a/src/models/completionmodel.cpp +++ b/src/models/completionmodel.cpp @@ -193,3 +193,5 @@ void CompletionModel::setRoomListModel(RoomListModel *roomListModel) m_roomListModel = roomListModel; Q_EMIT roomListModelChanged(); } + +#include "moc_completionmodel.cpp" diff --git a/src/models/completionproxymodel.cpp b/src/models/completionproxymodel.cpp index 96357c71b..eb5e03813 100644 --- a/src/models/completionproxymodel.cpp +++ b/src/models/completionproxymodel.cpp @@ -59,3 +59,5 @@ void CompletionProxyModel::setFullText(const QString &fullText) { m_fullText = fullText; } + +#include "moc_completionproxymodel.cpp" diff --git a/src/models/customemojimodel.cpp b/src/models/customemojimodel.cpp index 6428f0f39..237b6b612 100644 --- a/src/models/customemojimodel.cpp +++ b/src/models/customemojimodel.cpp @@ -208,3 +208,5 @@ QVariantList CustomEmojiModel::filterModel(const QString &filter) } return results; } + +#include "moc_customemojimodel.cpp" diff --git a/src/models/devicesmodel.cpp b/src/models/devicesmodel.cpp index 0482aa637..b3aab48cf 100644 --- a/src/models/devicesmodel.cpp +++ b/src/models/devicesmodel.cpp @@ -109,3 +109,5 @@ Connection *DevicesModel::connection() const { return Controller::instance().activeConnection(); } + +#include "moc_devicesmodel.cpp" diff --git a/src/models/emojimodel.cpp b/src/models/emojimodel.cpp index 2be666b6b..5b8e17da0 100644 --- a/src/models/emojimodel.cpp +++ b/src/models/emojimodel.cpp @@ -216,3 +216,5 @@ QVariantList EmojiModel::categoriesWithCustom() const ; return cats; } + +#include "moc_emojimodel.cpp" diff --git a/src/models/emoticonfiltermodel.cpp b/src/models/emoticonfiltermodel.cpp index 1bbab356f..e06d7ebc5 100644 --- a/src/models/emoticonfiltermodel.cpp +++ b/src/models/emoticonfiltermodel.cpp @@ -53,3 +53,5 @@ void EmoticonFilterModel::setShowEmojis(bool showEmojis) endResetModel(); Q_EMIT showEmojisChanged(); } + +#include "moc_emoticonfiltermodel.cpp" diff --git a/src/models/emoticonfiltermodel.h b/src/models/emoticonfiltermodel.h index 89839c562..4d6dc36ba 100644 --- a/src/models/emoticonfiltermodel.h +++ b/src/models/emoticonfiltermodel.h @@ -1,6 +1,8 @@ // SPDX-FileCopyrightText: 2023 Tobias Fella // SPDX-License-Identifier: GPL-2.0-or-later +#pragma once + #include /** diff --git a/src/models/imagepacksmodel.cpp b/src/models/imagepacksmodel.cpp index da8870106..a54a9c371 100644 --- a/src/models/imagepacksmodel.cpp +++ b/src/models/imagepacksmodel.cpp @@ -165,3 +165,5 @@ QVector ImagePacksModel::images } return m_events[index].images; } + +#include "moc_imagepacksmodel.cpp" diff --git a/src/models/livelocationsmodel.cpp b/src/models/livelocationsmodel.cpp index e48cf4920..0a02e4533 100644 --- a/src/models/livelocationsmodel.cpp +++ b/src/models/livelocationsmodel.cpp @@ -169,3 +169,5 @@ void LiveLocationsModel::updateLocationData(LiveLocationData &&data) Q_EMIT dataChanged(idx, idx); } + +#include "moc_livelocationsmodel.cpp" diff --git a/src/models/locationsmodel.cpp b/src/models/locationsmodel.cpp index ed9a3d44a..1bc14e95e 100644 --- a/src/models/locationsmodel.cpp +++ b/src/models/locationsmodel.cpp @@ -127,3 +127,5 @@ QRectF LocationsModel::boundingBox() const } return bbox; } + +#include "moc_locationsmodel.cpp" diff --git a/src/models/mediamessagefiltermodel.cpp b/src/models/mediamessagefiltermodel.cpp index 7a66041e0..8d175a1fa 100644 --- a/src/models/mediamessagefiltermodel.cpp +++ b/src/models/mediamessagefiltermodel.cpp @@ -77,3 +77,5 @@ int MediaMessageFilterModel::getRowForSourceItem(int sourceRow) const { return mapFromSource(sourceModel()->index(sourceRow, 0)).row(); } + +#include "moc_mediamessagefiltermodel.cpp" diff --git a/src/models/messageeventmodel.cpp b/src/models/messageeventmodel.cpp index a626b53c3..e0606ee85 100644 --- a/src/models/messageeventmodel.cpp +++ b/src/models/messageeventmodel.cpp @@ -1163,3 +1163,5 @@ void MessageEventModel::createReactionModelForEvent(const Quotient::RoomMessageE } } } + +#include "moc_messageeventmodel.cpp" diff --git a/src/models/messagefiltermodel.cpp b/src/models/messagefiltermodel.cpp index 6a1a5d077..4d9140d2e 100644 --- a/src/models/messagefiltermodel.cpp +++ b/src/models/messagefiltermodel.cpp @@ -49,3 +49,5 @@ bool MessageFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sour return true; } + +#include "moc_messagefiltermodel.cpp" diff --git a/src/models/publicroomlistmodel.cpp b/src/models/publicroomlistmodel.cpp index ba7f39624..de0cc3d83 100644 --- a/src/models/publicroomlistmodel.cpp +++ b/src/models/publicroomlistmodel.cpp @@ -260,3 +260,5 @@ bool PublicRoomListModel::hasMore() const { return !(attempted && nextBatch.isEmpty()); } + +#include "moc_publicroomlistmodel.cpp" diff --git a/src/models/pushrulemodel.cpp b/src/models/pushrulemodel.cpp index d2c32c615..5c858e057 100644 --- a/src/models/pushrulemodel.cpp +++ b/src/models/pushrulemodel.cpp @@ -443,3 +443,5 @@ QVector PushRuleModel::actionToVariant(PushNotificationAction::Action return actions; } + +#include "moc_pushrulemodel.cpp" diff --git a/src/models/reactionmodel.cpp b/src/models/reactionmodel.cpp index 86af00d0e..56ecaa535 100644 --- a/src/models/reactionmodel.cpp +++ b/src/models/reactionmodel.cpp @@ -108,3 +108,5 @@ QHash ReactionModel::roleNames() const {HasLocalUser, "hasLocalUser"}, }; } + +#include "moc_reactionmodel.cpp" diff --git a/src/models/roomlistmodel.cpp b/src/models/roomlistmodel.cpp index c4c9a3d9c..3c9a6c9bc 100644 --- a/src/models/roomlistmodel.cpp +++ b/src/models/roomlistmodel.cpp @@ -525,3 +525,5 @@ int RoomListModel::rowForRoom(NeoChatRoom *room) const { return m_rooms.indexOf(room); } + +#include "moc_roomlistmodel.cpp" diff --git a/src/models/searchmodel.cpp b/src/models/searchmodel.cpp index 1dd6282a3..f443147c4 100644 --- a/src/models/searchmodel.cpp +++ b/src/models/searchmodel.cpp @@ -283,3 +283,5 @@ void SearchModel::setSearching(bool searching) m_searching = searching; Q_EMIT searchingChanged(); } + +#include "moc_searchmodel.cpp" diff --git a/src/models/serverlistmodel.cpp b/src/models/serverlistmodel.cpp index e20398f4d..66c4f3b1e 100644 --- a/src/models/serverlistmodel.cpp +++ b/src/models/serverlistmodel.cpp @@ -151,3 +151,5 @@ QHash ServerListModel::roleNames() const {IsDeletableRole, QByteArrayLiteral("isDeletable")}, }; } + +#include "moc_serverlistmodel.cpp" diff --git a/src/models/sortfilterroomlistmodel.cpp b/src/models/sortfilterroomlistmodel.cpp index 02834fbf6..86833e8a7 100644 --- a/src/models/sortfilterroomlistmodel.cpp +++ b/src/models/sortfilterroomlistmodel.cpp @@ -103,3 +103,5 @@ void SortFilterRoomListModel::setActiveSpaceId(const QString &spaceId) Q_EMIT activeSpaceIdChanged(); invalidate(); } + +#include "moc_sortfilterroomlistmodel.cpp" diff --git a/src/models/sortfilterspacelistmodel.cpp b/src/models/sortfilterspacelistmodel.cpp index 63d782896..348609f25 100644 --- a/src/models/sortfilterspacelistmodel.cpp +++ b/src/models/sortfilterspacelistmodel.cpp @@ -37,3 +37,5 @@ bool SortFilterSpaceListModel::lessThan(const QModelIndex &source_left, const QM const auto idRight = sourceModel()->data(source_right, RoomListModel::IdRole).toString(); return idLeft < idRight; } + +#include "moc_sortfilterspacelistmodel.cpp" diff --git a/src/models/statefiltermodel.cpp b/src/models/statefiltermodel.cpp index 0d8a8dfbb..96c47cee3 100644 --- a/src/models/statefiltermodel.cpp +++ b/src/models/statefiltermodel.cpp @@ -30,3 +30,5 @@ void StateFilterModel::removeStateEventTypeFiltered(const QString &stateEventTyp invalidateFilter(); } } + +#include "moc_statefiltermodel.cpp" diff --git a/src/models/statemodel.cpp b/src/models/statemodel.cpp index 3f8008c81..906e37c7f 100644 --- a/src/models/statemodel.cpp +++ b/src/models/statemodel.cpp @@ -70,3 +70,5 @@ QByteArray StateModel::stateEventJson(const QModelIndex &index) return {}; #endif } + +#include "moc_statemodel.cpp" diff --git a/src/models/stickermodel.cpp b/src/models/stickermodel.cpp index a9f233e06..c6529f147 100644 --- a/src/models/stickermodel.cpp +++ b/src/models/stickermodel.cpp @@ -127,3 +127,5 @@ void StickerModel::postSticker(int index) }; m_room->postJson("m.sticker", content); } + +#include "moc_stickermodel.cpp" diff --git a/src/models/userdirectorylistmodel.cpp b/src/models/userdirectorylistmodel.cpp index c4a7ac311..b3e5f5346 100644 --- a/src/models/userdirectorylistmodel.cpp +++ b/src/models/userdirectorylistmodel.cpp @@ -194,3 +194,5 @@ int UserDirectoryListModel::rowCount(const QModelIndex &parent) const return users.count(); } + +#include "moc_userdirectorylistmodel.cpp" diff --git a/src/models/userfiltermodel.cpp b/src/models/userfiltermodel.cpp index 1b6111de7..14bf03b37 100644 --- a/src/models/userfiltermodel.cpp +++ b/src/models/userfiltermodel.cpp @@ -26,3 +26,5 @@ void UserFilterModel::setFilterText(const QString &filterText) Q_EMIT filterTextChanged(); invalidateFilter(); } + +#include "moc_userfiltermodel.cpp" diff --git a/src/models/userlistmodel.cpp b/src/models/userlistmodel.cpp index 24cc5c726..06db08f6d 100644 --- a/src/models/userlistmodel.cpp +++ b/src/models/userlistmodel.cpp @@ -213,3 +213,5 @@ QHash UserListModel::roleNames() const return roles; } + +#include "moc_userlistmodel.cpp" diff --git a/src/models/webshortcutmodel.cpp b/src/models/webshortcutmodel.cpp index a86082ec9..606f0f833 100644 --- a/src/models/webshortcutmodel.cpp +++ b/src/models/webshortcutmodel.cpp @@ -129,3 +129,5 @@ void KWebShortcutModel::configureWebShortcuts() job->exec(); #endif } + +#include "moc_webshortcutmodel.cpp" diff --git a/src/neochataccountregistry.cpp b/src/neochataccountregistry.cpp index c25f01009..8e0134823 100644 --- a/src/neochataccountregistry.cpp +++ b/src/neochataccountregistry.cpp @@ -103,3 +103,5 @@ Connection *AccountRegistry::get(const QString &userId) } return nullptr; } + +#include "moc_neochataccountregistry.cpp" diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 79a1b5054..21c1685b5 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -2104,3 +2104,5 @@ void NeoChatRoom::loadReply(const QString &eventId, const QString &replyId) Q_EMIT replyLoaded(eventId, replyId); }); } + +#include "moc_neochatroom.cpp" diff --git a/src/neochatuser.cpp b/src/neochatuser.cpp index 18f043102..dd2b3409d 100644 --- a/src/neochatuser.cpp +++ b/src/neochatuser.cpp @@ -39,3 +39,5 @@ void NeoChatUser::polishColor() // https://github.com/quotient-im/libQuotient/wiki/User-color-coding-standard-draft-proposal setColor(QColor::fromHslF(hueF(), 1, -0.7 * lightness + 0.9, 1)); } + +#include "moc_neochatuser.cpp" diff --git a/src/notificationsmanager.cpp b/src/notificationsmanager.cpp index dc7f86e03..830403ef0 100644 --- a/src/notificationsmanager.cpp +++ b/src/notificationsmanager.cpp @@ -294,3 +294,5 @@ void NotificationsManager::clearInvitationNotification(const QString &roomId) m_invitations[roomId]->close(); } } + +#include "moc_notificationsmanager.cpp" diff --git a/src/pollhandler.cpp b/src/pollhandler.cpp index 6a5440d74..006e36605 100644 --- a/src/pollhandler.cpp +++ b/src/pollhandler.cpp @@ -163,3 +163,5 @@ int PollHandler::answerCount() const { return m_answers.size(); } + +#include "moc_pollhandler.cpp" diff --git a/src/roommanager.cpp b/src/roommanager.cpp index cb8d6d0be..3613f7bb4 100644 --- a/src/roommanager.cpp +++ b/src/roommanager.cpp @@ -291,3 +291,5 @@ void RoomManager::setChatDocumentHandler(ChatDocumentHandler *handler) m_chatDocumentHandler->setRoom(m_currentRoom); Q_EMIT chatDocumentHandlerChanged(); } + +#include "moc_roommanager.cpp" diff --git a/src/runner.cpp b/src/runner.cpp index 1adee90e8..421370fe7 100644 --- a/src/runner.cpp +++ b/src/runner.cpp @@ -94,3 +94,5 @@ void Runner::Run(const QString &id, const QString &actionId) WindowController::instance().showAndRaiseWindow(QString()); } + +#include "moc_runner.cpp" diff --git a/src/spacehierarchycache.cpp b/src/spacehierarchycache.cpp index 37b342bd7..f08d68941 100644 --- a/src/spacehierarchycache.cpp +++ b/src/spacehierarchycache.cpp @@ -107,3 +107,5 @@ bool SpaceHierarchyCache::isChildSpace(const QString &spaceId) const } return false; } + +#include "moc_spacehierarchycache.cpp" diff --git a/src/texthandler.cpp b/src/texthandler.cpp index 8ddd3cfc9..552018b74 100644 --- a/src/texthandler.cpp +++ b/src/texthandler.cpp @@ -448,3 +448,5 @@ QList TextHandler::getLinkPreviews() } return links; } + +#include "moc_texthandler.cpp" diff --git a/src/trayicon.cpp b/src/trayicon.cpp index 5b93e003d..deba589c5 100644 --- a/src/trayicon.cpp +++ b/src/trayicon.cpp @@ -35,3 +35,5 @@ TrayIcon::TrayIcon(QObject *parent) setContextMenu(menu); } + +#include "moc_trayicon.cpp" diff --git a/src/trayicon_sni.cpp b/src/trayicon_sni.cpp index b4b33530a..faf9ec2ca 100644 --- a/src/trayicon_sni.cpp +++ b/src/trayicon_sni.cpp @@ -32,3 +32,5 @@ void TrayIcon::hide() { setStatus(Passive); } + +#include "moc_trayicon_sni.cpp" diff --git a/src/urlhelper.cpp b/src/urlhelper.cpp index 0a7e3ce6a..1d55f3a18 100644 --- a/src/urlhelper.cpp +++ b/src/urlhelper.cpp @@ -29,3 +29,5 @@ void UrlHelper::copyTo(const QUrl &origin, const QUrl &destination) QFile originFile(origin.toLocalFile()); originFile.copy(destination.toLocalFile()); } + +#include "moc_urlhelper.cpp" diff --git a/src/windowcontroller.cpp b/src/windowcontroller.cpp index 6f46de71c..7dd8a402b 100644 --- a/src/windowcontroller.cpp +++ b/src/windowcontroller.cpp @@ -69,3 +69,5 @@ void WindowController::showAndRaiseWindow(const QString &startupId) KWindowSystem::activateWindow(m_window); #endif } + +#include "moc_windowcontroller.cpp"