mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Convert FW updater to controls2
This commit is contained in:
parent
980ac986df
commit
c22db1e654
1 changed files with 2 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue