From d7bb807e2b0ccb927932fe999e1913378b4df3d8 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 23 Jun 2016 13:35:25 +0200 Subject: [PATCH] Added stub QML page for discovery action CURA-336 --- DiscoverUM3Action.py | 1 + DiscoverUM3Action.qml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 DiscoverUM3Action.qml diff --git a/DiscoverUM3Action.py b/DiscoverUM3Action.py index 848e1c26f2..89b024b8bd 100644 --- a/DiscoverUM3Action.py +++ b/DiscoverUM3Action.py @@ -3,6 +3,7 @@ from cura.MachineAction import MachineAction class DiscoverUM3Action(MachineAction): def __init__(self): super().__init__("DiscoverUM3Action", "Discover printers") + self._qml_url = "DiscoverUM3Action.qml" def _execute(self): pass \ No newline at end of file diff --git a/DiscoverUM3Action.qml b/DiscoverUM3Action.qml new file mode 100644 index 0000000000..1d26d143f8 --- /dev/null +++ b/DiscoverUM3Action.qml @@ -0,0 +1,26 @@ +import UM 1.2 as UM +import Cura 1.0 as Cura + +import QtQuick 2.2 +import QtQuick.Controls 1.1 +import QtQuick.Layouts 1.1 +import QtQuick.Window 2.1 + +Cura.MachineAction +{ + anchors.fill: parent; + Item + { + anchors.fill: parent; + id: discoverUM3Action + UM.I18nCatalog { id: catalog; name:"cura"} + Label + { + id: pageTitle + width: parent.width + text: catalog.i18nc("@title", "Discover Printer") + wrapMode: Text.WordWrap + font.pointSize: 18; + } + } +} \ No newline at end of file