Port to versionless QML module imports

It's more convenient and Qt upstream seems to encourage to use it too,
e.g. example import statements have no version.
This commit is contained in:
Vlad Zahorodnii 2023-03-11 12:29:24 +02:00
parent 18a9b3b25a
commit 4148be0d27
55 changed files with 214 additions and 214 deletions

View file

@ -1,5 +1,5 @@
import QtQuick 2.0; import QtQuick
import org.kde.kwin 3.0; import org.kde.kwin
ScreenEdgeHandler { ScreenEdgeHandler {
edge: ScreenEdgeHandler.LeftEdge edge: ScreenEdgeHandler.LeftEdge

View file

@ -6,12 +6,12 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.components 3.0 as PC3 import org.kde.plasma.components 3.0 as PC3
import org.kde.kwin.private.desktopgrid 1.0 import org.kde.kwin.private.desktopgrid
FocusScope { FocusScope {
id: desktopView id: desktopView

View file

@ -6,13 +6,13 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import Qt5Compat.GraphicalEffects import Qt5Compat.GraphicalEffects
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Window 2.15 import QtQuick.Window
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.components 3.0 as PC3 import org.kde.plasma.components 3.0 as PC3
Rectangle { Rectangle {

View file

@ -4,8 +4,8 @@
SPDX-License-Identifier: LGPL-2.1-or-later SPDX-License-Identifier: LGPL-2.1-or-later
*/ */
import QtQuick 2.1 import QtQuick
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents3 import org.kde.plasma.components 3.0 as PlasmaComponents3
Rectangle { Rectangle {

View file

@ -5,15 +5,15 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import Qt5Compat.GraphicalEffects import Qt5Compat.GraphicalEffects
import QtQuick.Controls 2.15 import QtQuick.Controls
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.components 3.0 as PC3 import org.kde.plasma.components 3.0 as PC3
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
Item { Item {
id: bar id: bar

View file

@ -4,8 +4,8 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
Item { Item {
id: desktopView id: desktopView

View file

@ -5,15 +5,15 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import Qt5Compat.GraphicalEffects import Qt5Compat.GraphicalEffects
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.milou 0.3 as Milou import org.kde.milou as Milou
import org.kde.plasma.components 3.0 as PC3 import org.kde.plasma.components 3.0 as PC3
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras import org.kde.plasma.extras as PlasmaExtras
FocusScope { FocusScope {
id: container id: container

View file

@ -5,13 +5,13 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Window 2.15 import QtQuick.Window
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.components 3.0 as PC3 import org.kde.plasma.components 3.0 as PC3
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
FocusScope { FocusScope {
id: heap id: heap

View file

@ -5,13 +5,13 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Window 2.15 import QtQuick.Window
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.components 3.0 as PC3 import org.kde.plasma.components 3.0 as PC3
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
Item { Item {
id: thumb id: thumb

View file

@ -4,13 +4,13 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Controls 2.15 import QtQuick.Controls
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import org.kde.kirigami 2.18 as Kirigami import org.kde.kirigami 2.18 as Kirigami
import org.kde.quickcharts 1.0 as Charts import org.kde.quickcharts as Charts
import org.kde.quickcharts.controls 1.0 as ChartControls import org.kde.quickcharts.controls as ChartControls
Rectangle { Rectangle {
id: root id: root

View file

@ -4,12 +4,12 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import Qt5Compat.GraphicalEffects import Qt5Compat.GraphicalEffects
import QtQuick.Layouts 1.4 import QtQuick.Layouts
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
Rectangle { Rectangle {
id: handle id: handle

View file

@ -4,10 +4,10 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
Rectangle { Rectangle {
id: handle id: handle

View file

@ -4,11 +4,11 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.4 import QtQuick.Layouts
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.plasma.components 3.0 as PlasmaComponents
Item { Item {

View file

@ -4,14 +4,14 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import Qt5Compat.GraphicalEffects import Qt5Compat.GraphicalEffects
import QtQuick.Layouts 1.4 import QtQuick.Layouts
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.plasma.components 3.0 as PlasmaComponents
import org.kde.kitemmodels 1.0 as KitemModels import org.kde.kitemmodels as KitemModels
FocusScope { FocusScope {
id: root id: root

View file

@ -5,14 +5,14 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import Qt5Compat.GraphicalEffects import Qt5Compat.GraphicalEffects
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import org.kde.kwin 3.0 as KWinComponents import org.kde.kwin as KWinComponents
import org.kde.kwin.private.effects 1.0 import org.kde.kwin.private.effects
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras import org.kde.plasma.extras as PlasmaExtras
import org.kde.KWin.Effect.WindowView 1.0 import org.kde.KWin.Effect.WindowView
Item { Item {
id: container id: container

View file

@ -3,10 +3,10 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.15 import QtQuick
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.kwin.private.kdecoration 1.0 as KDecoration import org.kde.kwin.private.kdecoration as KDecoration
ListView { ListView {
id: view id: view

View file

@ -4,13 +4,13 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kcm 1.6 as KCM import org.kde.kcm as KCM
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.kwin.private.kdecoration 1.0 as KDecoration import org.kde.kwin.private.kdecoration as KDecoration
// Fake Window // Fake Window
Rectangle { Rectangle {

View file

@ -5,11 +5,11 @@
SPDX-License-Identifier: LGPL-2.0-only SPDX-License-Identifier: LGPL-2.0-only
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kcm 1.6 as KCM import org.kde.kcm as KCM
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
KCM.AbstractKCM { KCM.AbstractKCM {

View file

@ -4,11 +4,11 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.15 import QtQuick
import org.kde.kcm 1.6 as KCM import org.kde.kcm as KCM
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.kwin.private.kdecoration 1.0 as KDecoration import org.kde.kwin.private.kdecoration as KDecoration
KCM.GridView { KCM.GridView {
function updateDecoration(item, marginTopLeft, marginBottomRight) { function updateDecoration(item, marginTopLeft, marginBottomRight) {

View file

@ -5,13 +5,13 @@
SPDX-License-Identifier: LGPL-2.0-only SPDX-License-Identifier: LGPL-2.0-only
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kcm 1.6 as KCM import org.kde.kcm as KCM
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
import org.kde.newstuff 1.85 as NewStuff import org.kde.newstuff as NewStuff
KCM.AbstractKCM { KCM.AbstractKCM {
id: root id: root

View file

@ -4,11 +4,11 @@
SPDX-License-Identifier: LGPL-2.0-or-later SPDX-License-Identifier: LGPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import org.kde.kcm 1.6 as KCM import org.kde.kcm as KCM
import org.kde.kirigami 2.20 as Kirigami import org.kde.kirigami 2.20 as Kirigami
KCM.ScrollViewKCM { KCM.ScrollViewKCM {

View file

@ -6,12 +6,12 @@
*/ */
import QtQuick 2.5 import QtQuick
import QtQuick.Controls 2.5 as QQC2 import QtQuick.Controls as QQC2
import QtQuick.Layouts 1.1 import QtQuick.Layouts
import org.kde.kirigami 2.5 as Kirigami import org.kde.kirigami 2.5 as Kirigami
import org.kde.kcm 1.5 as KCM import org.kde.kcm as KCM
Kirigami.SwipeListItem { Kirigami.SwipeListItem {
id: listItem id: listItem

View file

@ -8,10 +8,10 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.5 import QtQuick
import QtQuick.Controls 2.5 as QQC2 import QtQuick.Controls as QQC2
import QtQuick.Layouts 1.1 import QtQuick.Layouts
import QtMultimedia 5.0 as Multimedia import QtMultimedia as Multimedia
Multimedia.Video { Multimedia.Video {
id: videoItem id: videoItem

View file

@ -5,16 +5,16 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.5 import QtQuick
import QtQuick.Controls 2.5 as QQC2 import QtQuick.Controls as QQC2
import QtQuick.Layouts 1.1 import QtQuick.Layouts
import org.kde.kcm 1.2 import org.kde.kcm
import org.kde.kconfig 1.0 import org.kde.kconfig
import org.kde.kirigami 2.10 as Kirigami import org.kde.kirigami 2.10 as Kirigami
import org.kde.newstuff 1.62 as NewStuff import org.kde.newstuff as NewStuff
import org.kde.private.kcms.kwin.effects 1.0 as Private import org.kde.private.kcms.kwin.effects as Private
ScrollViewKCM { ScrollViewKCM {
ConfigModule.quickHelp: i18n("This module lets you configure desktop effects.") ConfigModule.quickHelp: i18n("This module lets you configure desktop effects.")

View file

@ -4,12 +4,12 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.14 import QtQuick
import QtQuick.Layouts 1.14 import QtQuick.Layouts
import QtQuick.Controls 2.14 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.10 as Kirigami import org.kde.kirigami 2.10 as Kirigami
import org.kde.kcms.kwinrules 1.0 import org.kde.kcms.kwinrules
QQC2.ComboBox { QQC2.ComboBox {

View file

@ -4,9 +4,9 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.14 import QtQuick
import QtQuick.Layouts 1.14 import QtQuick.Layouts
import QtQuick.Controls 2.14 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.10 as Kirigami import org.kde.kirigami 2.10 as Kirigami
Kirigami.AbstractListItem { Kirigami.AbstractListItem {

View file

@ -4,13 +4,13 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.19 as Kirigami import org.kde.kirigami 2.19 as Kirigami
import org.kde.kcm 1.2 import org.kde.kcm
import org.kde.kitemmodels 1.0 import org.kde.kitemmodels
import org.kde.kcms.kwinrules 1.0 import org.kde.kcms.kwinrules
ScrollViewKCM { ScrollViewKCM {

View file

@ -4,13 +4,13 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.14 import QtQuick
import QtQuick.Layouts 1.14 import QtQuick.Layouts
import QtQuick.Controls 2.14 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.10 as Kirigami import org.kde.kirigami 2.10 as Kirigami
import org.kde.kquickcontrols 2.0 as KQC import org.kde.kquickcontrols as KQC
import org.kde.kcms.kwinrules 1.0 import org.kde.kcms.kwinrules
Loader { Loader {

View file

@ -4,11 +4,11 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.14 import QtQuick.Layouts
import QtQuick.Controls 2.14 as QQC2 import QtQuick.Controls as QQC2
import QtQml.Models 2.14 import QtQml.Models
import org.kde.kcm 1.2 import org.kde.kcm
import org.kde.kirigami 2.12 as Kirigami import org.kde.kirigami 2.12 as Kirigami
ScrollViewKCM { ScrollViewKCM {

View file

@ -5,15 +5,15 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.5 import QtQuick
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import QtQuick.Layouts 1.1 import QtQuick.Layouts
import org.kde.kcm 1.2 import org.kde.kcm
import org.kde.kconfig 1.0 import org.kde.kconfig
import org.kde.kirigami 2.10 as Kirigami import org.kde.kirigami 2.10 as Kirigami
import org.kde.newstuff 1.91 as NewStuff import org.kde.newstuff as NewStuff
import org.kde.kcmutils 1.0 as KCMUtils import org.kde.kcmutils as KCMUtils
ScrollViewKCM { ScrollViewKCM {
implicitWidth: Kirigami.Units.gridUnit * 22 implicitWidth: Kirigami.Units.gridUnit * 22

View file

@ -5,11 +5,11 @@
*/ */
import QtQuick 2.1 import QtQuick
import QtQuick.Layouts 1.1 import QtQuick.Layouts
import QtQuick.Controls 2.3 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.6 as Kirigami import org.kde.kirigami 2.6 as Kirigami
import org.kde.kcm 1.3 as KCM import org.kde.kcm as KCM
KCM.GridViewKCM { KCM.GridViewKCM {
id: root id: root

View file

@ -5,13 +5,13 @@
*/ */
import QtQuick 2.1 import QtQuick
import QtQuick.Layouts 1.1 import QtQuick.Layouts
import QtQuick.Controls 2.3 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.6 as Kirigami import org.kde.kirigami 2.6 as Kirigami
import org.kde.kcm 1.3 as KCM import org.kde.kcm as KCM
import org.kde.kwin.kwinxwaylandsettings 1.0 import org.kde.kwin.kwinxwaylandsettings
import org.kde.kquickcontrols 2.0 import org.kde.kquickcontrols
KCM.SimpleKCM { KCM.SimpleKCM {
id: root id: root

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
DecorationButton { DecorationButton {
id: appMenuButton id: appMenuButton

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
DecorationButton { DecorationButton {
function widthForButton() { function widthForButton() {

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
Item { Item {
function createButtons() { function createButtons() {

View file

@ -3,8 +3,8 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
Item { Item {
id: button id: button

View file

@ -3,8 +3,8 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
Item { Item {
function createButtons() { function createButtons() {

View file

@ -3,8 +3,8 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
Item { Item {
property QtObject borders: Borders { property QtObject borders: Borders {

View file

@ -3,8 +3,8 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
Item { Item {
id: button id: button

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
DecorationButton { DecorationButton {
property bool closeOnDoubleClick: decorationSettings.closeOnDoubleClickOnMenu property bool closeOnDoubleClick: decorationSettings.closeOnDoubleClickOnMenu

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
Decoration { Decoration {
id: root id: root

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
import org.kde.kwin.decorations.plastik 1.0 import org.kde.kwin.decorations.plastik
DecorationButton { DecorationButton {
id: button id: button

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.decoration 0.1 import org.kde.kwin.decoration
import org.kde.kwin.decorations.plastik 1.0 import org.kde.kwin.decorations.plastik
Decoration { Decoration {
function readBorderSize() { function readBorderSize() {

View file

@ -5,9 +5,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.12 as Kirigami import org.kde.kirigami 2.12 as Kirigami

View file

@ -5,10 +5,10 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents import org.kde.plasma.components 3.0 as PlasmaComponents
Item { Item {

View file

@ -5,9 +5,9 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Controls 2.15 as QQC2 import QtQuick.Controls as QQC2
import org.kde.kirigami 2.12 as Kirigami import org.kde.kirigami 2.12 as Kirigami

View file

@ -1,4 +1,4 @@
import QtQuick 2.3 import QtQuick
QtObject { QtObject {
property bool visible: true property bool visible: true

View file

@ -5,11 +5,11 @@
*/ */
import QtQuick 2.15 import QtQuick
import QtQuick.Layouts 1.15 import QtQuick.Layouts
import QtQuick.Window 2.15 import QtQuick.Window
import org.kde.plasma.core 2.1 as PlasmaCore import org.kde.plasma.core as PlasmaCore
import org.kde.plasma.components 3.0 as PlasmaComponents3 import org.kde.plasma.components 3.0 as PlasmaComponents3
PlasmaCore.Dialog { PlasmaCore.Dialog {

View file

@ -4,10 +4,10 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.1 import QtQuick
import QtQuick.Window 2.1 import QtQuick.Window
import org.kde.kwin 3.0 import org.kde.kwin
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core as PlasmaCore
Window { Window {
id: window id: window

View file

@ -6,8 +6,8 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0; import QtQuick
import org.kde.kwin 3.0 import org.kde.kwin
Item { Item {
id: root id: root

View file

@ -6,11 +6,11 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick 2.0; import QtQuick
import QtQuick.Window 2.0; import QtQuick.Window
import org.kde.plasma.core 2.0 as PlasmaCore; import org.kde.plasma.core as PlasmaCore;
import org.kde.plasma.extras 2.0 as PlasmaExtras import org.kde.plasma.extras as PlasmaExtras
import org.kde.kwin 3.0 import org.kde.kwin
PlasmaCore.Dialog { PlasmaCore.Dialog {
id: dialog id: dialog

View file

@ -6,8 +6,8 @@
SPDX-License-Identifier: GPL-2.0-or-later SPDX-License-Identifier: GPL-2.0-or-later
*/ */
import QtQuick.Controls 2.15 import QtQuick.Controls
import QtQuick.Layouts 1.2 import QtQuick.Layouts
GridLayout { GridLayout {
columns: 2 columns: 2

View file

@ -3,9 +3,9 @@
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/ */
import QtQuick 2.10 import QtQuick
import QtQuick.Controls 2.0 import QtQuick.Controls
import QtQuick.Layouts 1.1 import QtQuick.Layouts
ColumnLayout { ColumnLayout {
/* for margins */ /* for margins */

View file

@ -3,8 +3,8 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.0 import QtQuick
import org.kde.kwin.tests 1.0 import org.kde.kwin.tests
Image { Image {
source: "../48-apps-kwin.png" source: "../48-apps-kwin.png"

View file

@ -3,10 +3,10 @@
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/ */
import QtQuick 2.1 import QtQuick
import QtQuick.Window 2.1 import QtQuick.Window
import QtQuick.Layouts 1.1 import QtQuick.Layouts
import QtQuick.Controls 2.15 import QtQuick.Controls
/* /*
* Small test application to test the difference between unmap and destroy. * Small test application to test the difference between unmap and destroy.