mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Added stub QML page for discovery action
CURA-336
This commit is contained in:
parent
bca613b47e
commit
d7bb807e2b
2 changed files with 27 additions and 0 deletions
|
|
@ -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
|
||||
26
DiscoverUM3Action.qml
Normal file
26
DiscoverUM3Action.qml
Normal file
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue