mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 04:25:56 +08:00
Let DiscoverUM3Action use controls 2
This commit is contained in:
parent
54b52b6d4d
commit
980ac986df
@ -5,7 +5,7 @@ import UM 1.2 as UM
|
|||||||
import Cura 1.5 as Cura
|
import Cura 1.5 as Cura
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 2.9
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import QtQuick.Window 2.1
|
import QtQuick.Window 2.1
|
||||||
import QtQuick.Dialogs 1.2
|
import QtQuick.Dialogs 1.2
|
||||||
@ -112,17 +112,10 @@ Cura.MachineAction
|
|||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
id: objectListContainer
|
id: objectListContainer
|
||||||
frameVisible: true
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: base.height - contentRow.y - discoveryTip.height
|
height: base.height - contentRow.y - discoveryTip.height
|
||||||
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
Rectangle
|
|
||||||
{
|
|
||||||
parent: viewport
|
|
||||||
anchors.fill: parent
|
|
||||||
color: palette.light
|
|
||||||
}
|
|
||||||
|
|
||||||
ListView
|
ListView
|
||||||
{
|
{
|
||||||
id: listview
|
id: listview
|
||||||
@ -138,11 +131,13 @@ Cura.MachineAction
|
|||||||
Component.onCompleted: manager.startDiscovery()
|
Component.onCompleted: manager.startDiscovery()
|
||||||
delegate: Rectangle
|
delegate: Rectangle
|
||||||
{
|
{
|
||||||
height: childrenRect.height
|
height: printNameLabel.height
|
||||||
color: ListView.isCurrentItem ? palette.highlight : index % 2 ? palette.base : palette.alternateBase
|
color: ListView.isCurrentItem ? palette.highlight : index % 2 ? palette.base : palette.alternateBase
|
||||||
width: parent.width
|
width: listview.width
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
id: printNameLabel
|
||||||
|
height: contentHeight
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
@ -385,7 +380,6 @@ Cura.MachineAction
|
|||||||
manualPrinterDialog.hide()
|
manualPrinterDialog.hide()
|
||||||
}
|
}
|
||||||
enabled: manualPrinterDialog.addressText.trim() != ""
|
enabled: manualPrinterDialog.addressText.trim() != ""
|
||||||
isDefault: true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user