Browse Source

Add wrapper to Cura.ScrollableTextArea

Add wrapper to legacy Cura.ScrollableTextArea class which has now moved to Uranium, in order to keep plugins working in case they use it.
CURA-9374
Erwan MATHIEU 1 year ago
parent
commit
0c405288e0

+ 1 - 1
plugins/Marketplace/resources/qml/LicenseDialog.qml

@@ -52,7 +52,7 @@ UM.Dialog
             }
         }
 
-        UM.ScrollableTextArea
+        Cura.ScrollableTextArea
         {
             Layout.fillWidth: true
             Layout.fillHeight: true

+ 1 - 1
plugins/Marketplace/resources/qml/MultipleLicenseDialog.qml

@@ -66,7 +66,7 @@ UM.Dialog
             }
         }
 
-        UM.ScrollableTextArea
+        Cura.ScrollableTextArea
         {
             Layout.fillWidth: true
             Layout.fillHeight: true

+ 1 - 1
plugins/SliceInfoPlugin/MoreInfoWindow.qml

@@ -74,7 +74,7 @@ Window
                 wrapMode: Text.WordWrap
             }
 
-            UM.ScrollableTextArea
+            Cura.ScrollableTextArea
             {
                 anchors
                 {

+ 1 - 1
resources/qml/WelcomePages/ChangelogContent.qml

@@ -26,7 +26,7 @@ Item
         font: UM.Theme.getFont("huge")
     }
 
-    UM.ScrollableTextArea
+    Cura.ScrollableTextArea
     {
         id: changelogTextArea
 

+ 1 - 1
resources/qml/WelcomePages/WhatsNewContent.qml

@@ -90,7 +90,7 @@ Item
                         source: manager.getSubpageImageSource(index)
                     }
 
-                    UM.ScrollableTextArea
+                    Cura.ScrollableTextArea
                     {
                         id: subpageText
 

+ 14 - 0
resources/qml/Widgets/ScrollableTextArea.qml

@@ -0,0 +1,14 @@
+// Copyright (c) 2022 Ultimaker B.V.
+// Cura is released under the terms of the LGPLv3 or higher.
+
+import QtQuick 2.10
+import QtQuick.Controls 2.3
+
+import UM 1.7 as UM
+import Cura 1.1 as Cura
+
+
+// Wrapper to UM.ScrollableTextArea which was originally placed here
+UM.ScrollableTextArea
+{
+}