RibbonWindow: Keep deprecated function show as before.
This commit is contained in:
parent
c26a368296
commit
82ef344180
|
@ -111,13 +111,15 @@ Window {
|
||||||
|
|
||||||
function show_popup(content_url, arguments)
|
function show_popup(content_url, arguments)
|
||||||
{
|
{
|
||||||
console.warn("RibbonWindow: This \"show_popup()\" function deprecated, please use RibbonPopup.open_content()")
|
console.warn(qsTr("RibbonWindow: This \"show_popup()\" function is deprecated, please use RibbonPopup.open_content()"))
|
||||||
|
popup.show_close_btn = !popup.show_close_btn
|
||||||
popup.show_content(content_url, arguments)
|
popup.show_content(content_url, arguments)
|
||||||
}
|
}
|
||||||
|
|
||||||
function close_popup()
|
function close_popup()
|
||||||
{
|
{
|
||||||
console.warn("RibbonWindow: This \"close_popup()\" function deprecated, please use RibbonPopup.close_content()")
|
console.warn(qsTr("RibbonWindow: This \"close_popup()\" function is deprecated, please use RibbonPopup.close_content()"))
|
||||||
|
popup.show_close_btn = !popup.show_close_btn
|
||||||
pop.close_content()
|
pop.close_content()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue