Add support for auto-pausing when factor is found
This commit is contained in:
parent
12caef0a51
commit
18b6e69e9f
3 changed files with 47 additions and 5 deletions
18
qml/Main.qml
18
qml/Main.qml
|
@ -93,10 +93,20 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
text: "Stop at sqrt(n)"
|
||||
checked: true
|
||||
onCheckedChanged: factorizationController.useSqrtOptimization = checked
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
CheckBox {
|
||||
text: "Stop at sqrt(n)"
|
||||
checked: factorizationController.useSqrtOptimization
|
||||
onCheckedChanged: factorizationController.useSqrtOptimization = checked
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
text: "Pause when factor found"
|
||||
checked: factorizationController.pauseOnFound
|
||||
onCheckedChanged: factorizationController.pauseOnFound = checked
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue