Commit 848ca0a8 authored by Karel Slaný's avatar Karel Slaný Committed by Martin Straka

Removed unused code.

parent 006de4d0
......@@ -42,12 +42,7 @@ Dialog {
return d instanceof Date && !isNaN(d);
}
function openCalendarDialogue(index, selDate, maxDate, title, text, parentElement) {
// https://stackoverflow.com/questions/44128131/default-arguments-for-qml-function-gives-syntax-errors
if (parentElement === undefined) {
parentElement = null
}
function openCalendarDialogue(index, selDate, maxDate, title, text) {
root.title = title
rootText.text = text
root.open()
......@@ -59,17 +54,6 @@ Dialog {
if (isValidDate(maxDate)) {
calendar.maximumDate = maxDate
}
if (parentElement === null) {
// root.x = root.parent.width / 2 - width / 2
// root.y = root.parent.height / 2 - height / 1.2
// root.width = root.parent.width - 4*defaultMargin
} else {
root.parent = parentElement
// root.x = parentElement.width / 2 - width / 2
// root.y = parentElement.height / 2 - height / 1.2
// root.width = parentElement.width - 4*defaultMargin
}
}
// center dialogue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment