Ensure moc sees fully qualified property types

Qt6 insists on that. We can do this either by including the moc files,
or by including the corresponding headers in the header defining the
properties, the former seems cleaner when possible.
This commit is contained in:
Volker Krause 2022-03-09 17:38:03 +01:00
parent eee16b01a4
commit a34717dc22
14 changed files with 22 additions and 1 deletions

View file

@ -3747,3 +3747,5 @@ bool AbstractClient::wantsShadowToBeRendered() const
}
}
#include "moc_abstract_client.cpp"

View file

@ -133,3 +133,5 @@ void PreviewButtonItem::setColor(const QColor &color)
}
}
#include "moc_previewbutton.cpp"

View file

@ -455,3 +455,5 @@ SETTER2(setProvidesContextHelp, providesContextHelp)
} // namespace Preview
} // namespace KDecoration2
#include "moc_previewclient.cpp"

View file

@ -453,3 +453,5 @@ DecorationShadow *PreviewItem::shadow() const
}
}
#include "moc_previewitem.cpp"

View file

@ -260,3 +260,4 @@ QString KCMKWinDecoration::borderSizeIndexToString(int index) const
}
#include "kcm.moc"
#include "moc_kcm.cpp"

View file

@ -165,3 +165,4 @@ bool VirtualDesktops::isSaveNeeded() const
}
#include "virtualdesktops.moc"
#include "moc_virtualdesktops.cpp"

View file

@ -100,3 +100,4 @@ int VirtualKeyboardsModel::rowCount(const QModelIndex &parent) const
}
#include "kcmvirtualkeyboard.moc"
#include "moc_kcmvirtualkeyboard.cpp"

View file

@ -20,6 +20,7 @@
#include <QPainter>
#include <QPixmap>
#include <QtMath>
#include <QWindow>
#include <ksharedconfig.h>
#include <kconfiggroup.h>
@ -1767,3 +1768,4 @@ TimeLine &TimeLine::operator=(const TimeLine &other)
} // namespace
#include "moc_kwinglobals.cpp"
#include "moc_kwineffects.cpp"

View file

@ -790,3 +790,4 @@ void ConfigurationModule::initQml()
}
#include "aurorae.moc"
#include "moc_aurorae.cpp"

View file

@ -11,6 +11,7 @@
#include <QObject>
#include <QString>
#include <QVariant>
namespace KWin
{

View file

@ -115,3 +115,5 @@ void DesktopBackgroundItem::updateWindow()
}
} // namespace KWin
#include "moc_desktopbackgrounditem.cpp"

View file

@ -6,6 +6,8 @@
#pragma once
#include "virtualdesktops.h"
#include <QAbstractListModel>
#include <QPointer>
#include <QSortFilterProxyModel>
@ -16,7 +18,6 @@ namespace KWin
{
class AbstractClient;
class AbstractOutput;
class VirtualDesktop;
namespace ScriptingModels::V3
{

View file

@ -421,3 +421,5 @@ DeclarativeScriptWorkspaceWrapper::DeclarativeScriptWorkspaceWrapper(QObject* pa
: WorkspaceWrapper(parent) {}
} // KWin
#include "moc_workspace_wrapper.cpp"

View file

@ -721,3 +721,4 @@ bool Toplevel::isOnCurrentDesktop() const
} // namespace
#include "moc_toplevel.cpp"