mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 11:19:04 +08:00
Convert FW updater to controls2
This commit is contained in:
parent
980ac986df
commit
c22db1e654
@ -2,7 +2,7 @@
|
|||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 2.1
|
||||||
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 // For filedialog
|
import QtQuick.Dialogs 1.2 // For filedialog
|
||||||
@ -160,9 +160,7 @@ Cura.MachineAction
|
|||||||
ProgressBar
|
ProgressBar
|
||||||
{
|
{
|
||||||
id: prog
|
id: prog
|
||||||
value: (manager.firmwareUpdater != null) ? manager.firmwareUpdater.firmwareProgress : 0
|
value: (manager.firmwareUpdater != null) ? manager.firmwareUpdater.firmwareProgress / 100 : 0
|
||||||
minimumValue: 0
|
|
||||||
maximumValue: 100
|
|
||||||
indeterminate:
|
indeterminate:
|
||||||
{
|
{
|
||||||
if(manager.firmwareUpdater == null)
|
if(manager.firmwareUpdater == null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user