scripting: Drop "Item" word in WindowThumbnailItem and DesktopBackgroundItem
Drop the "Item" word to be more consistent with QtQuick coding conventions, where C++ usually include the Item word, but QML types don't.
This commit is contained in:
parent
37bcdbc03e
commit
9b6c9242f6
9 changed files with 13 additions and 13 deletions
|
@ -73,7 +73,7 @@ FocusScope {
|
|||
windowType: KWinComponents.WindowFilterModel.Dock | KWinComponents.WindowFilterModel.Desktop
|
||||
}
|
||||
|
||||
KWinComponents.WindowThumbnailItem {
|
||||
KWinComponents.WindowThumbnail {
|
||||
wId: model.window.internalId
|
||||
x: model.window.x - targetScreen.geometry.x
|
||||
y: model.window.y - targetScreen.geometry.y
|
||||
|
|
|
@ -21,7 +21,7 @@ Item {
|
|||
windowModel: desktopView.windowModel
|
||||
}
|
||||
|
||||
KWinComponents.WindowThumbnailItem {
|
||||
KWinComponents.WindowThumbnail {
|
||||
wId: model.window.internalId
|
||||
x: model.window.x - targetScreen.geometry.x
|
||||
y: model.window.y - targetScreen.geometry.y
|
||||
|
|
|
@ -74,7 +74,7 @@ FocusScope {
|
|||
}
|
||||
}
|
||||
|
||||
KWinComponents.DesktopBackgroundItem {
|
||||
KWinComponents.DesktopBackground {
|
||||
id: backgroundItem
|
||||
activity: KWinComponents.Workspace.currentActivity
|
||||
desktop: KWinComponents.Workspace.currentDesktop
|
||||
|
@ -301,7 +301,7 @@ FocusScope {
|
|||
windowType: KWinComponents.WindowFilterModel.Dock
|
||||
}
|
||||
|
||||
KWinComponents.WindowThumbnailItem {
|
||||
KWinComponents.WindowThumbnail {
|
||||
id: windowThumbnail
|
||||
visible: !model.window.hidden && opacity > 0
|
||||
wId: model.window.internalId
|
||||
|
|
|
@ -74,10 +74,10 @@ FocusScope {
|
|||
delete dndManagerStore[key];
|
||||
}
|
||||
|
||||
KWinComponents.WindowThumbnailItem {
|
||||
KWinComponents.WindowThumbnail {
|
||||
id: otherScreenThumbnail
|
||||
z: 2
|
||||
property KWinComponents.WindowThumbnailItem cloneOf
|
||||
property KWinComponents.WindowThumbnail cloneOf
|
||||
visible: false
|
||||
client: cloneOf ? cloneOf.client : null
|
||||
width: cloneOf ? cloneOf.width : 0
|
||||
|
|
|
@ -89,7 +89,7 @@ Item {
|
|||
TweenBehavior on width {}
|
||||
TweenBehavior on height {}
|
||||
|
||||
KWinComponents.WindowThumbnailItem {
|
||||
KWinComponents.WindowThumbnail {
|
||||
id: thumbSource
|
||||
wId: thumb.window.internalId
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ FocusScope {
|
|||
windowModel: KWinComponents.WindowModel {}
|
||||
}
|
||||
|
||||
KWinComponents.WindowThumbnailItem {
|
||||
KWinComponents.WindowThumbnail {
|
||||
wId: model.window.internalId
|
||||
x: model.window.x - targetScreen.geometry.x
|
||||
y: model.window.y - targetScreen.geometry.y
|
||||
|
|
|
@ -62,7 +62,7 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
KWinComponents.DesktopBackgroundItem {
|
||||
KWinComponents.DesktopBackground {
|
||||
activity: KWinComponents.Workspace.currentActivity
|
||||
desktop: KWinComponents.Workspace.currentDesktop
|
||||
outputName: targetScreen.name
|
||||
|
@ -225,7 +225,7 @@ Item {
|
|||
windowType: KWinComponents.WindowFilterModel.Dock
|
||||
}
|
||||
|
||||
KWinComponents.WindowThumbnailItem {
|
||||
KWinComponents.WindowThumbnail {
|
||||
id: windowThumbnail
|
||||
wId: model.window.internalId
|
||||
x: model.window.x - targetScreen.geometry.x
|
||||
|
|
|
@ -31,7 +31,7 @@ LayoutPreview::LayoutPreview(const QString &path, bool showDesktopThumbnail, QOb
|
|||
{
|
||||
QQmlEngine *engine = new QQmlEngine(this);
|
||||
QQmlComponent *component = new QQmlComponent(engine, this);
|
||||
qmlRegisterType<WindowThumbnailItem>("org.kde.kwin", 3, 0, "WindowThumbnailItem");
|
||||
qmlRegisterType<WindowThumbnailItem>("org.kde.kwin", 3, 0, "WindowThumbnail");
|
||||
qmlRegisterType<SwitcherItem>("org.kde.kwin", 3, 0, "TabBoxSwitcher");
|
||||
qmlRegisterAnonymousType<QAbstractItemModel>("org.kde.kwin", 3);
|
||||
component->loadUrl(QUrl::fromLocalFile(path));
|
||||
|
|
|
@ -673,8 +673,8 @@ KWin::Scripting::Scripting(QObject *parent)
|
|||
|
||||
void KWin::Scripting::init()
|
||||
{
|
||||
qmlRegisterType<DesktopBackgroundItem>("org.kde.kwin", 3, 0, "DesktopBackgroundItem");
|
||||
qmlRegisterType<WindowThumbnailItem>("org.kde.kwin", 3, 0, "WindowThumbnailItem");
|
||||
qmlRegisterType<DesktopBackgroundItem>("org.kde.kwin", 3, 0, "DesktopBackground");
|
||||
qmlRegisterType<WindowThumbnailItem>("org.kde.kwin", 3, 0, "WindowThumbnail");
|
||||
qmlRegisterType<DBusCall>("org.kde.kwin", 3, 0, "DBusCall");
|
||||
qmlRegisterType<ScreenEdgeItem>("org.kde.kwin", 3, 0, "ScreenEdgeItem");
|
||||
qmlRegisterType<WindowModel>("org.kde.kwin", 3, 0, "WindowModel");
|
||||
|
|
Loading…
Reference in a new issue