example: Update for RibbonTabGroup openExternal.
This commit is contained in:
parent
290dfe05c3
commit
f2e709ccdc
|
@ -17,7 +17,11 @@ RibbonWindow {
|
||||||
{
|
{
|
||||||
title: qsTr("Tab Bar"),
|
title: qsTr("Tab Bar"),
|
||||||
text: qsTr("A tab bar for window, let user choose the controllers."),
|
text: qsTr("A tab bar for window, let user choose the controllers."),
|
||||||
target: tab_bar
|
target: tab_bar,
|
||||||
|
enter_func: ()=>{
|
||||||
|
tab_bar.folded = false
|
||||||
|
tour.refresh(300) // Use it if has animation
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: qsTr("Tab Bar Buttons"),
|
title: qsTr("Tab Bar Buttons"),
|
||||||
|
@ -107,6 +111,7 @@ RibbonWindow {
|
||||||
id: basic_page
|
id: basic_page
|
||||||
title: qsTr("Basic")
|
title: qsTr("Basic")
|
||||||
RibbonTabGroup{
|
RibbonTabGroup{
|
||||||
|
showOpenExternal: true
|
||||||
width: slider_layout.width + 20
|
width: slider_layout.width + 20
|
||||||
text: qsTr("Slider")
|
text: qsTr("Slider")
|
||||||
RowLayout{
|
RowLayout{
|
||||||
|
@ -149,6 +154,7 @@ RibbonWindow {
|
||||||
RibbonTabGroup{
|
RibbonTabGroup{
|
||||||
width: switch_layout.width + 30
|
width: switch_layout.width + 30
|
||||||
text: qsTr("Switch Button")
|
text: qsTr("Switch Button")
|
||||||
|
showOpenExternal: true
|
||||||
RowLayout{
|
RowLayout{
|
||||||
id: switch_layout
|
id: switch_layout
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
@ -197,6 +203,7 @@ RibbonWindow {
|
||||||
RibbonTabGroup{
|
RibbonTabGroup{
|
||||||
width: checkbox_layout.width + 30
|
width: checkbox_layout.width + 30
|
||||||
text: qsTr("CheckBox")
|
text: qsTr("CheckBox")
|
||||||
|
showOpenExternal: true
|
||||||
RowLayout{
|
RowLayout{
|
||||||
id: checkbox_layout
|
id: checkbox_layout
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
@ -232,6 +239,7 @@ RibbonWindow {
|
||||||
RibbonTabGroup{
|
RibbonTabGroup{
|
||||||
width: button_layout.width + 30
|
width: button_layout.width + 30
|
||||||
text: qsTr("Button")
|
text: qsTr("Button")
|
||||||
|
showOpenExternal: true
|
||||||
RowLayout{
|
RowLayout{
|
||||||
id: button_layout
|
id: button_layout
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
Loading…
Reference in New Issue