slight delay for opening

This commit is contained in:
Marco Martin 2012-01-09 17:47:00 +01:00
parent 4c2e802a7d
commit 6d118bdbeb

View File

@ -64,7 +64,8 @@ Item {
function open() function open()
{ {
dialog.state = "" status = DialogStatus.Opening
delayOpenTimer.restart()
} }
function accept() function accept()
@ -103,6 +104,12 @@ Item {
close() close()
} }
} }
Timer {
id: delayOpenTimer
running: false
interval: 100
onTriggered: dialog.state = ""
}
PlasmaCore.FrameSvgItem { PlasmaCore.FrameSvgItem {
id: dialog id: dialog