touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #89421
[Bug 1474280] [NEW] including a page inside a dialog breaks headers in a mainview
Public bug reported:
observe the following code available here: https://code.launchpad.net
/~rick-rickspencer3/+junk/pagesindialogs
When you run the app, click on the red rectangle. This causes a dialog
to appear. When you click close on the dialog, not that the header in
the mainview is gone. If you remove the Page{} from the dialog, this no
longer happens. As a result, you cannot reuse pages inside a dialog.
import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.Components.Popups 1.0
MainView {
objectName: "mainView"
applicationName: "reproducer.rick-rickspencer3"
useDeprecatedToolbar: false
width: units.gu(40)
height: units.gu(75)
Page {
title: i18n.tr("app")
MouseArea {
anchors.fill: parent
Rectangle {
color: "red"
anchors.fill: parent
}
onClicked: PopupUtils.open(fakeComponent)
}
}
Component {
id: fakeComponent
Dialog {
id: fakeDialog
title: "Fake Dialog"
Page{
Button {
text: i18n.tr("Close")
onTriggered: {
PopupUtils.close(fakeDialog)
}
}
}
}
}
}
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
observe the following code available here: https://code.launchpad.net
/~rick-rickspencer3/+junk/pagesindialogs
When you run the app, click on the red rectangle. This causes a dialog
to appear. When you click close on the dialog, not that the header in
the mainview is gone. If you remove the Page{} from the dialog, this no
longer happens. As a result, you cannot reuse pages inside a dialog.
import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.Components.Popups 1.0
- /*!
- \brief MainView with a Label and Button elements.
- */
-
MainView {
- // objectName for functional testing purposes (autopilot-qt5)
objectName: "mainView"
- // Note! applicationName needs to match the "name" field of the click manifest
applicationName: "reproducer.rick-rickspencer3"
-
- /*
- This property enables the application to change orientation
- when the device is rotated. The default is false.
- */
- //automaticOrientation: true
-
- // Removes the old toolbar and enables new features of the new header.
useDeprecatedToolbar: false
width: units.gu(40)
height: units.gu(75)
Page {
title: i18n.tr("app")
MouseArea {
anchors.fill: parent
Rectangle {
color: "red"
anchors.fill: parent
}
onClicked: PopupUtils.open(fakeComponent)
}
}
Component {
id: fakeComponent
Dialog {
id: fakeDialog
title: "Fake Dialog"
+ Page{
Button {
text: i18n.tr("Close")
onTriggered: {
PopupUtils.close(fakeDialog)
}
}
-
+ }
}
}
}
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1474280
Title:
including a page inside a dialog breaks headers in a mainview
Status in ubuntu-ui-toolkit package in Ubuntu:
New
Bug description:
observe the following code available here: https://code.launchpad.net
/~rick-rickspencer3/+junk/pagesindialogs
When you run the app, click on the red rectangle. This causes a dialog
to appear. When you click close on the dialog, not that the header in
the mainview is gone. If you remove the Page{} from the dialog, this
no longer happens. As a result, you cannot reuse pages inside a
dialog.
import QtQuick 2.0
import Ubuntu.Components 1.1
import Ubuntu.Components.Popups 1.0
MainView {
objectName: "mainView"
applicationName: "reproducer.rick-rickspencer3"
useDeprecatedToolbar: false
width: units.gu(40)
height: units.gu(75)
Page {
title: i18n.tr("app")
MouseArea {
anchors.fill: parent
Rectangle {
color: "red"
anchors.fill: parent
}
onClicked: PopupUtils.open(fakeComponent)
}
}
Component {
id: fakeComponent
Dialog {
id: fakeDialog
title: "Fake Dialog"
Page{
Button {
text: i18n.tr("Close")
onTriggered: {
PopupUtils.close(fakeDialog)
}
}
}
}
}
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1474280/+subscriptions
Follow ups