mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 16:35:55 +08:00
Added stub QML page for discovery action
CURA-336
This commit is contained in:
parent
bca613b47e
commit
d7bb807e2b
@ -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…
x
Reference in New Issue
Block a user