Browse Source

Update QML import versions and add headings

CURA-6598
Lipu Fei 5 years ago
parent
commit
52f3f9b773

+ 7 - 2
resources/qml/LabelBar.qml

@@ -1,7 +1,12 @@
-import QtQuick 2.0
-import QtQuick.Controls 2.1
+// Copyright (c) 2019 Ultimaker B.V.
+// Cura is released under the terms of the LGPLv3 or higher.
+
+import QtQuick 2.10
+import QtQuick.Controls 2.3
 import QtQuick.Layouts 1.3
+
 import UM 1.2 as UM
+
 // The labelBar shows a set of labels that are evenly spaced from oneother.
 // The first item is aligned to the left, the last is aligned to the right.
 // It's intended to be used together with RadioCheckBar. As such, it needs

+ 2 - 2
resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml

@@ -1,8 +1,8 @@
 // Copyright (c) 2018 Ultimaker B.V.
 // Cura is released under the terms of the LGPLv3 or higher.
 
-import QtQuick 2.7
-import QtQuick.Controls 2.0
+import QtQuick 2.10
+import QtQuick.Controls 2.3
 import QtQuick.Controls.Styles 1.4
 
 import UM 1.2 as UM

+ 3 - 3
resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml

@@ -1,9 +1,9 @@
 // Copyright (c) 2018 Ultimaker B.V.
 // Cura is released under the terms of the LGPLv3 or higher.
 
-import QtQuick 2.7
-import QtQuick.Controls 2.0
-import QtQuick.Controls 1.1 as OldControls
+import QtQuick 2.10
+import QtQuick.Controls 2.3
+import QtQuick.Controls 1.4 as OldControls
 
 import UM 1.3 as UM
 import Cura 1.6 as Cura

+ 5 - 2
resources/qml/PrintSetupSelector/Custom/MenuButton.qml

@@ -1,8 +1,11 @@
-import QtQuick 2.0
+// Copyright (c) 2019 Ultimaker B.V.
+// Cura is released under the terms of the LGPLv3 or higher.
+
+import QtQuick 2.10
 import QtQuick.Controls 2.3
-import Cura 1.6 as Cura
 
 import UM 1.2 as UM
+import Cura 1.6 as Cura
 
 Button
 {

+ 6 - 2
resources/qml/PrintSetupSelector/Custom/QualitiesWithIntentMenu.qml

@@ -1,8 +1,12 @@
-import QtQuick 2.0
+// Copyright (c) 2019 Ultimaker B.V.
+// Cura is released under the terms of the LGPLv3 or higher.
+
+import QtQuick 2.10
 import QtQuick.Controls 2.3
-import Cura 1.6 as Cura
 
 import UM 1.2 as UM
+import Cura 1.6 as Cura
+
 Popup
 {
     id: popup

+ 1 - 1
resources/qml/PrintSetupSelector/PrintSetupSelectorHeader.qml

@@ -1,7 +1,7 @@
 // Copyright (c) 2018 Ultimaker B.V.
 // Cura is released under the terms of the LGPLv3 or higher.
 
-import QtQuick 2.7
+import QtQuick 2.10
 import QtQuick.Controls 2.3
 import QtQuick.Layouts 1.3
 

+ 1 - 1
resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml

@@ -1,7 +1,7 @@
 // Copyright (c) 2018 Ultimaker B.V.
 // Cura is released under the terms of the LGPLv3 or higher.
 
-import QtQuick 2.7
+import QtQuick 2.10
 import QtQuick.Controls 1.4
 import QtQuick.Controls.Styles 1.4
 

+ 1 - 1
resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml

@@ -1,7 +1,7 @@
 // Copyright (c) 2018 Ultimaker B.V.
 // Cura is released under the terms of the LGPLv3 or higher.
 
-import QtQuick 2.7
+import QtQuick 2.10
 import QtQuick.Controls 1.4
 import QtQuick.Controls 2.3 as Controls2
 import QtQuick.Controls.Styles 1.4

+ 4 - 1
resources/qml/RadioCheckbar.qml

@@ -1,4 +1,7 @@
-import QtQuick 2.0
+// Copyright (c) 2019 Ultimaker B.V.
+// Cura is released under the terms of the LGPLv3 or higher.
+
+import QtQuick 2.10
 import QtQuick.Controls 2.3
 import QtQuick.Layouts 1.3
 import UM 1.1 as UM