parent
69187f4bc0
commit
3522f8f8b9
2 changed files with 14 additions and 1 deletions
|
@ -54,6 +54,7 @@ Page {
|
|||
canvas.strokeStyle = defaultStrokeColor;
|
||||
}
|
||||
|
||||
// Remember the stroke/rubber size
|
||||
var currentLineWidth = size.value;
|
||||
size.value = prevLineWidth;
|
||||
prevLineWidth = currentLineWidth;
|
||||
|
@ -81,7 +82,11 @@ Page {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
onClicked: {
|
||||
canvas.clear();
|
||||
clear.execute(menu, qsTr("Clearing the canvas..."), function() { canvas.clear() });
|
||||
}
|
||||
|
||||
RemorseItem {
|
||||
id: clear
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,12 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainPage</name>
|
||||
<message>
|
||||
<location filename="../qml/pages/MainPage.qml" line="84"/>
|
||||
<source>Clearing the canvas...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
|
Loading…
Reference in a new issue