Include moc files for a tiny speedup on incremental builds
This commit is contained in:
parent
d2009428b6
commit
06927cd3c2
72 changed files with 335 additions and 17 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_AvatarProvider.cpp"
|
||||
|
|
|
|||
|
|
@ -45,3 +45,5 @@ BlurhashRunnable::run()
|
|||
|
||||
emit done(image.convertToFormat(QImage::Format_RGB32));
|
||||
}
|
||||
|
||||
#include "moc_BlurhashProvider.cpp"
|
||||
|
|
|
|||
|
|
@ -1773,3 +1773,5 @@ ChatPage::removeAllNotifications()
|
|||
notificationsManager->closeAllNotifications();
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "moc_ChatPage.cpp"
|
||||
|
|
|
|||
|
|
@ -24,3 +24,5 @@ Clipboard::text() const
|
|||
{
|
||||
return QGuiApplication::clipboard()->text();
|
||||
}
|
||||
|
||||
#include "moc_Clipboard.cpp"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QQuickImageProvider>
|
||||
|
||||
class ColorImageProvider final : public QQuickImageProvider
|
||||
|
|
|
|||
|
|
@ -103,3 +103,5 @@ CombinedImagePackModel::data(const QModelIndex &index, int role) const
|
|||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
#include "moc_CombinedImagePackModel.cpp"
|
||||
|
|
|
|||
|
|
@ -169,3 +169,5 @@ CompletionProxyModel::setSearchString(const QString &s)
|
|||
{
|
||||
emit newSearchString(s);
|
||||
}
|
||||
|
||||
#include "moc_CompletionProxyModel.cpp"
|
||||
|
|
|
|||
|
|
@ -27,3 +27,5 @@ FallbackAuth::openFallbackAuth()
|
|||
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
#include "moc_FallbackAuth.cpp"
|
||||
|
|
|
|||
|
|
@ -400,3 +400,5 @@ GridImagePackModel::setSearchString(QString key)
|
|||
endResetModel();
|
||||
emit newSearchString();
|
||||
}
|
||||
|
||||
#include "moc_GridImagePackModel.cpp"
|
||||
|
|
|
|||
|
|
@ -97,3 +97,5 @@ ImagePackListModel::containsAccountPack() const
|
|||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
#include "moc_ImagePackListModel.cpp"
|
||||
|
|
|
|||
|
|
@ -110,3 +110,5 @@ Invitee::Invitee(QString mxid, QString displayName, QString avatarUrl, QObject *
|
|||
emit userInfoLoaded();
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_InviteesModel.cpp"
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#ifndef INVITEESMODEL_H
|
||||
#define INVITEESMODEL_H
|
||||
#pragma once
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QQmlEngine>
|
||||
|
|
@ -73,5 +72,3 @@ private:
|
|||
QVector<Invitee *> invitees_;
|
||||
TimelineModel *room_;
|
||||
};
|
||||
|
||||
#endif // INVITEESMODEL_H
|
||||
|
|
|
|||
|
|
@ -120,3 +120,5 @@ JdenticonProvider::isAvailable()
|
|||
{
|
||||
return Jdenticon::getJdenticonInterface() != nullptr;
|
||||
}
|
||||
|
||||
#include "moc_JdenticonProvider.cpp"
|
||||
|
|
|
|||
|
|
@ -352,3 +352,5 @@ LoginPage::onLoginButtonClicked(LoginMethod loginMethod,
|
|||
loggingIn_ = true;
|
||||
emit loggingInChanged();
|
||||
}
|
||||
|
||||
#include "moc_LoginPage.cpp"
|
||||
|
|
|
|||
|
|
@ -322,3 +322,5 @@ MainWindow::focusedRoom() const
|
|||
|
||||
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,
|
||||
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"},
|
||||
};
|
||||
}
|
||||
|
||||
#include "moc_PowerlevelsEditModels.cpp"
|
||||
|
|
|
|||
|
|
@ -27,3 +27,5 @@ ReCaptcha::openReCaptcha()
|
|||
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
|
||||
#include "moc_ReCaptcha.cpp"
|
||||
|
|
|
|||
|
|
@ -129,3 +129,5 @@ ReadReceiptsProxy::ReadReceiptsProxy(QString event_id, QString room_id, QObject
|
|||
sort(0, Qt::DescendingOrder);
|
||||
setDynamicSortFilter(true);
|
||||
}
|
||||
|
||||
#include "moc_ReadReceiptsModel.cpp"
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#ifndef READRECEIPTSMODEL_H
|
||||
#define READRECEIPTSMODEL_H
|
||||
#pragma once
|
||||
|
||||
#include <QAbstractListModel>
|
||||
#include <QDateTime>
|
||||
|
|
@ -73,5 +72,3 @@ private:
|
|||
|
||||
ReadReceiptsModel model_;
|
||||
};
|
||||
|
||||
#endif // READRECEIPTSMODEL_H
|
||||
|
|
|
|||
|
|
@ -255,3 +255,5 @@ RegisterPage::startRegistration(const QString &username,
|
|||
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");
|
||||
}
|
||||
|
||||
#include "moc_RoomDirectoryModel.cpp"
|
||||
|
|
|
|||
|
|
@ -55,3 +55,5 @@ SSOHandler::url() const
|
|||
{
|
||||
return "http://localhost:" + std::to_string(port) + "/sso";
|
||||
}
|
||||
|
||||
#include "moc_SSOHandler.cpp"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "httplib.h"
|
||||
|
||||
#include <QObject>
|
||||
|
|
|
|||
|
|
@ -488,3 +488,5 @@ SingleImagePackModel::addImageCb(std::string uri, std::string filename, mtx::com
|
|||
if (this->pack.pack->avatar_url.empty())
|
||||
this->setAvatarUrl(QString::fromStdString(uri));
|
||||
}
|
||||
|
||||
#include "moc_SingleImagePackModel.cpp"
|
||||
|
|
|
|||
|
|
@ -123,3 +123,5 @@ TrayIcon::setUnreadCount(int count)
|
|||
{
|
||||
qGuiApp->setBadgeNumber(count);
|
||||
}
|
||||
|
||||
#include "moc_TrayIcon.cpp"
|
||||
|
|
|
|||
|
|
@ -103,3 +103,5 @@ UserDirectoryModel::displaySearchResults(std::vector<mtx::responses::User> resul
|
|||
endInsertRows();
|
||||
canFetchMore_ = false;
|
||||
}
|
||||
|
||||
#include "moc_UserDirectoryModel.cpp"
|
||||
|
|
|
|||
|
|
@ -2332,3 +2332,5 @@ UserSettingsModel::UserSettingsModel(QObject *p)
|
|||
emit dataChanged(index(ExpireEvents), index(ExpireEvents), {Value});
|
||||
});
|
||||
}
|
||||
|
||||
#include "moc_UserSettingsPage.cpp"
|
||||
|
|
|
|||
|
|
@ -228,3 +228,5 @@ operator>>(const QDBusArgument &arg, QImage &image)
|
|||
|
||||
return arg;
|
||||
}
|
||||
|
||||
#include "moc_NhekoDBusApi.cpp"
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#ifndef NHEKODBUSAPI_H
|
||||
#define NHEKODBUSAPI_H
|
||||
#pragma once
|
||||
|
||||
#include <QDBusArgument>
|
||||
#include <QIcon>
|
||||
|
|
@ -99,5 +98,3 @@ const QDBusArgument &
|
|||
operator>>(const QDBusArgument &arg, QImage &);
|
||||
|
||||
#define NHEKO_DBUS_SERVICE_NAME "im.nheko.Nheko"
|
||||
|
||||
#endif // NHEKODBUSAPI_H
|
||||
|
|
|
|||
|
|
@ -117,3 +117,5 @@ NhekoDBusBackend::bringWindowToTop() const
|
|||
MainWindow::instance()->show();
|
||||
MainWindow::instance()->raise();
|
||||
}
|
||||
|
||||
#include "moc_NhekoDBusBackend.cpp"
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
//
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#ifndef NHEKODBUSBACKEND_H
|
||||
#define NHEKODBUSBACKEND_H
|
||||
#pragma once
|
||||
|
||||
#include <QDBusMessage>
|
||||
#include <QObject>
|
||||
|
|
@ -47,5 +46,3 @@ private:
|
|||
|
||||
RoomlistModel *m_parent;
|
||||
};
|
||||
|
||||
#endif // NHEKODBUSBACKEND_H
|
||||
|
|
|
|||
|
|
@ -90,3 +90,5 @@ Dock::setUnreadCount(const int count)
|
|||
qGuiApp->setBadgeNumber(count);
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "moc_Dock.cpp"
|
||||
|
|
|
|||
|
|
@ -15287,3 +15287,5 @@ constexpr
|
|||
std::u16string_view(u"flag: Wales"),
|
||||
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>),
|
||||
state().toStdString());
|
||||
}
|
||||
|
||||
#include "moc_DeviceVerificationFlow.cpp"
|
||||
|
|
|
|||
|
|
@ -1770,3 +1770,5 @@ download_cross_signing_keys()
|
|||
}
|
||||
|
||||
} // namespace olm
|
||||
|
||||
#include "moc_Olm.cpp"
|
||||
|
|
|
|||
|
|
@ -355,3 +355,5 @@ SelfVerificationStatus::invalidate()
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_SelfVerificationStatus.cpp"
|
||||
|
|
|
|||
|
|
@ -169,3 +169,5 @@ VerificationManager::verifyOneOfDevices(QString userid, std::vector<QString> dev
|
|||
this->dvList[flow->transactionId()] = flow;
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
#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));
|
||||
});
|
||||
}
|
||||
|
||||
#include "moc_EventStore.cpp"
|
||||
|
|
|
|||
|
|
@ -1495,3 +1495,5 @@ InputBar::reaction(const QString &reactedEvent, const QString &reactionKey)
|
|||
room->redactEvent(selfReactedEvent);
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_InputBar.cpp"
|
||||
|
|
|
|||
|
|
@ -91,3 +91,5 @@ Permissions::canPingRoom()
|
|||
return pl.user_level(http::client()->user_id().to_string()) >=
|
||||
pl.notification_level(mtx::events::state::notification_keys::room);
|
||||
}
|
||||
|
||||
#include "moc_Permissions.cpp"
|
||||
|
|
|
|||
|
|
@ -75,3 +75,5 @@ PresenceEmitter::userStatus(QString id) const
|
|||
else
|
||||
return pullPresence(id)->status;
|
||||
}
|
||||
|
||||
#include "moc_PresenceEmitter.cpp"
|
||||
|
|
|
|||
|
|
@ -3,3 +3,5 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include "Reaction.h"
|
||||
|
||||
#include "moc_Reaction.cpp"
|
||||
|
|
|
|||
|
|
@ -1288,3 +1288,5 @@ RoomPreview::inviterUserId() const
|
|||
|
||||
return QString();
|
||||
}
|
||||
|
||||
#include "moc_RoomlistModel.cpp"
|
||||
|
|
|
|||
|
|
@ -252,3 +252,5 @@ TimelineFilter::filterAcceptsRow(int source_row, const QModelIndex &) const
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_TimelineFilter.cpp"
|
||||
|
|
|
|||
|
|
@ -3373,3 +3373,5 @@ TimelineModel::parentSpace()
|
|||
|
||||
return parentSummary.get();
|
||||
}
|
||||
|
||||
#include "moc_TimelineModel.cpp"
|
||||
|
|
|
|||
|
|
@ -599,4 +599,5 @@ TimelineViewManager::processIgnoredUsers(const mtx::responses::AccountData &data
|
|||
emit this->ignoredUsersChanged(convertIgnoredToQt(ignoredEv));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#include "moc_TimelineViewManager.cpp"
|
||||
|
|
|
|||
|
|
@ -123,3 +123,5 @@ EventExpiry::setExpireStateEvents(bool val)
|
|||
this->event.exclude_state_events = !val;
|
||||
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;
|
||||
}
|
||||
|
||||
#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);
|
||||
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
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QQuickItem>
|
||||
|
||||
class NhekoDropArea : public QQuickItem
|
||||
|
|
|
|||
|
|
@ -212,3 +212,5 @@ Nheko::setWindowRole([[maybe_unused]] QWindow *win, [[maybe_unused]] QString new
|
|||
role.data());
|
||||
#endif
|
||||
}
|
||||
|
||||
#include "moc_NhekoGlobalObject.cpp"
|
||||
|
|
|
|||
|
|
@ -811,3 +811,5 @@ RoomSettings::applyAllowedFromModel()
|
|||
this->allowedRoomsModified_ = true;
|
||||
emit allowedRoomsModifiedChanged();
|
||||
}
|
||||
|
||||
#include "moc_RoomSettings.cpp"
|
||||
|
|
|
|||
|
|
@ -95,3 +95,5 @@ RoomSummary::promptJoin()
|
|||
else
|
||||
ChatPage::instance()->joinRoomVia(roomIdOrAlias, vias, true, reason_);
|
||||
}
|
||||
|
||||
#include "moc_RoomSummary.cpp"
|
||||
|
|
|
|||
|
|
@ -84,3 +84,5 @@ Theme::Theme(QStringView theme)
|
|||
error_ = QColor(0xdd, 0x3d, 0x3d);
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_Theme.cpp"
|
||||
|
|
|
|||
|
|
@ -285,3 +285,5 @@ UIA::submit3pidToken(const QString &token)
|
|||
this->submit_url.clear();
|
||||
});
|
||||
}
|
||||
|
||||
#include "moc_UIA.cpp"
|
||||
|
|
|
|||
|
|
@ -627,3 +627,5 @@ UserProfile::openGlobalProfile()
|
|||
{
|
||||
emit manager->openGlobalUserProfile(userid_);
|
||||
}
|
||||
|
||||
#include "moc_UserProfile.cpp"
|
||||
|
|
|
|||
|
|
@ -393,3 +393,5 @@ CallDevices::frameRates(const std::string &, const std::string &) const
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#include "moc_CallDevices.cpp"
|
||||
|
|
|
|||
|
|
@ -1172,3 +1172,5 @@ getTurnURIs(const mtx::responses::TurnServer &turnServer)
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
#include "moc_CallManager.cpp"
|
||||
|
|
|
|||
|
|
@ -511,3 +511,5 @@ ScreenCastPortal::openPipeWireRemote()
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#include "moc_ScreenCastPortal.cpp"
|
||||
|
|
|
|||
|
|
@ -1305,3 +1305,5 @@ WebRTCSession::end()
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
#include "moc_WebRTCSession.cpp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue