Implement displaying launch warnings. Fixes #12
This commit is contained in:
parent
1e8c2b179a
commit
ca72cbb135
3 changed files with 35 additions and 11 deletions
|
|
@ -47,7 +47,13 @@ Item {
|
|||
|
||||
function displayLaunchWarning(text)
|
||||
{
|
||||
// TODO: toast
|
||||
// This toast appears for 3 seconds, just shorter than how long
|
||||
// Session will wait for it to be displayed. This gives it time
|
||||
// to transition to invisible before continuing.
|
||||
var toast = Qt.createQmlObject('import QtQuick.Controls 2.3; ToolTip {}', parent, '')
|
||||
toast.text = text
|
||||
toast.timeout = 3000
|
||||
toast.visible = true
|
||||
}
|
||||
|
||||
onVisibleChanged: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue