[Touch-packages] [Bug 1598920] Re: QML MouseArea CursorShape: not respected

2016-07-05 Thread Michael Zanetti
Ok. Thanks Daniel. Tracked it down to the MainView. Updating title and
example code.

** Summary changed:

- QML MouseArea CursorShape: not respected
+ MainView intercepts MouseArea's CursorShape property

** Description changed:

  The MouseArea CursorShape doesnt have any effect.
  
  Docs Here: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html
  
- Expected Behavour: 
+ Expected Behavour:
  Mouse image shows selected Qt cursor
  
- Experienced Behavour: 
- The regular arrow is displayed. 
- 
+ Experienced Behavour:
+ The regular arrow is displayed.
  
  Example Code:
  
  import QtQuick 2.4
  import Ubuntu.Components 1.3
  
+ MainView {
+ objectName: "mainView"
+ applicationName: "mouseTest"
  
- MainView {
- objectName: "mainView"
- applicationName: "mouseTest"
+ width: units.gu(100)
+ height: units.gu(75)
  
- width: units.gu(100)
- height: units.gu(75)
+ Rectangle{
+ anchors.fill: parent
+ color: UbuntuColors.coolGrey
  
- Page {
- header: PageHeader {
- id: pageHeader
- title: i18n.tr("Cursor Test")
- }
- 
- Rectangle{
- anchors.fill: parent
- color: UbuntuColors.coolGrey
- 
- 
- MouseArea{
- anchors.fill: parent
- cursorShape: Qt.CrossCursor
- hoverEnabled: true
- onClicked: console.log("In MouseArea")
- 
- }
- }
- }
+ MouseArea{
+ anchors.fill: parent
+ cursorShape: Qt.CrossCursor
+ hoverEnabled: true
+ onClicked: console.log("In MouseArea")
+ }
+ }
  }

** Summary changed:

- MainView intercepts MouseArea's CursorShape property
+ MainView intercepts MouseArea's cursorShape property

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1598920

Title:
  MainView intercepts MouseArea's cursorShape property

Status in Canonical System Image:
  New
Status in qtubuntu package in Ubuntu:
  Invalid
Status in ubuntu-ui-toolkit package in Ubuntu:
  New
Status in unity8 package in Ubuntu:
  Invalid

Bug description:
  The MouseArea CursorShape doesnt have any effect.

  Docs Here: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html

  Expected Behavour:
  Mouse image shows selected Qt cursor

  Experienced Behavour:
  The regular arrow is displayed.

  Example Code:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  MainView {
  objectName: "mainView"
  applicationName: "mouseTest"

  width: units.gu(100)
  height: units.gu(75)

  Rectangle{
  anchors.fill: parent
  color: UbuntuColors.coolGrey

  MouseArea{
  anchors.fill: parent
  cursorShape: Qt.CrossCursor
  hoverEnabled: true
  onClicked: console.log("In MouseArea")
  }
  }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1598920/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1598920] Re: QML MouseArea CursorShape: not respected

2016-07-05 Thread Daniel d'Andrada
To be clear:
A QQuickItem::cursor() must trickle all the way to down QWindow::cursor() so 
that shell can see it.

Either Page or MainView is interfering in that process.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1598920

Title:
  QML MouseArea CursorShape: not respected

Status in Canonical System Image:
  New
Status in qtubuntu package in Ubuntu:
  Invalid
Status in ubuntu-ui-toolkit package in Ubuntu:
  New
Status in unity8 package in Ubuntu:
  Invalid

Bug description:
  The MouseArea CursorShape doesnt have any effect.

  Docs Here: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html

  Expected Behavour: 
  Mouse image shows selected Qt cursor

  Experienced Behavour: 
  The regular arrow is displayed. 

  
  Example Code:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  
  MainView {
  objectName: "mainView"
  applicationName: "mouseTest"

  width: units.gu(100)
  height: units.gu(75)

  Page {
  header: PageHeader {
  id: pageHeader
  title: i18n.tr("Cursor Test")
  }

  Rectangle{
  anchors.fill: parent
  color: UbuntuColors.coolGrey


  MouseArea{
  anchors.fill: parent
  cursorShape: Qt.CrossCursor
  hoverEnabled: true
  onClicked: console.log("In MouseArea")

  }
  }
  }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1598920/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1598920] Re: QML MouseArea CursorShape: not respected

2016-07-05 Thread Daniel d'Andrada
Some ubuntu-ui-toolkit component muse be eating or overriding that
MouseArea's cursor.

If you have a qml file just with that inner Rectangle + MouseArea it
works fine:

"""
import QtQuick 2.4
import Ubuntu.Components 1.3

MainView {
objectName: "mainView"
applicationName: "mouseTest"

width: units.gu(100)
height: units.gu(75)

Page {
header: PageHeader {
id: pageHeader
title: i18n.tr("Cursor Test")
}

Rectangle{
anchors.fill: parent
color: UbuntuColors.coolGrey

MouseArea{
anchors.fill: parent
cursorShape: Qt.CrossCursor
hoverEnabled: true
onClicked: console.log("In MouseArea")

}
}
}
}
"""

** Changed in: unity8 (Ubuntu)
   Status: New => Invalid

** Changed in: qtubuntu (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1598920

Title:
  QML MouseArea CursorShape: not respected

Status in Canonical System Image:
  New
Status in qtubuntu package in Ubuntu:
  Invalid
Status in ubuntu-ui-toolkit package in Ubuntu:
  New
Status in unity8 package in Ubuntu:
  Invalid

Bug description:
  The MouseArea CursorShape doesnt have any effect.

  Docs Here: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html

  Expected Behavour: 
  Mouse image shows selected Qt cursor

  Experienced Behavour: 
  The regular arrow is displayed. 

  
  Example Code:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  
  MainView {
  objectName: "mainView"
  applicationName: "mouseTest"

  width: units.gu(100)
  height: units.gu(75)

  Page {
  header: PageHeader {
  id: pageHeader
  title: i18n.tr("Cursor Test")
  }

  Rectangle{
  anchors.fill: parent
  color: UbuntuColors.coolGrey


  MouseArea{
  anchors.fill: parent
  cursorShape: Qt.CrossCursor
  hoverEnabled: true
  onClicked: console.log("In MouseArea")

  }
  }
  }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1598920/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1598920] Re: QML MouseArea CursorShape: not respected

2016-07-05 Thread Michael Zanetti
Adding unity8 & qtubuntu as I think this is more in there, not uitk

** Also affects: unity8 (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: qtubuntu (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1598920

Title:
  QML MouseArea CursorShape: not respected

Status in Canonical System Image:
  New
Status in qtubuntu package in Ubuntu:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  New
Status in unity8 package in Ubuntu:
  New

Bug description:
  The MouseArea CursorShape doesnt have any effect.

  Docs Here: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html

  Expected Behavour: 
  Mouse image shows selected Qt cursor

  Experienced Behavour: 
  The regular arrow is displayed. 

  
  Example Code:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  
  MainView {
  objectName: "mainView"
  applicationName: "mouseTest"

  width: units.gu(100)
  height: units.gu(75)

  Page {
  header: PageHeader {
  id: pageHeader
  title: i18n.tr("Cursor Test")
  }

  Rectangle{
  anchors.fill: parent
  color: UbuntuColors.coolGrey


  MouseArea{
  anchors.fill: parent
  cursorShape: Qt.CrossCursor
  hoverEnabled: true
  onClicked: console.log("In MouseArea")

  }
  }
  }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1598920/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1598920] Re: QML MouseArea CursorShape: not respected

2016-07-05 Thread Jean-Baptiste Lallement
** Also affects: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided
   Status: New

-- 
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/1598920

Title:
  QML MouseArea CursorShape: not respected

Status in Canonical System Image:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  The MouseArea CursorShape doesnt have any effect.

  Docs Here: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html

  Expected Behavour: 
  Mouse image shows selected Qt cursor

  Experienced Behavour: 
  The regular arrow is displayed. 

  
  Example Code:

  import QtQuick 2.4
  import Ubuntu.Components 1.3

  
  MainView {
  objectName: "mainView"
  applicationName: "mouseTest"

  width: units.gu(100)
  height: units.gu(75)

  Page {
  header: PageHeader {
  id: pageHeader
  title: i18n.tr("Cursor Test")
  }

  Rectangle{
  anchors.fill: parent
  color: UbuntuColors.coolGrey


  MouseArea{
  anchors.fill: parent
  cursorShape: Qt.CrossCursor
  hoverEnabled: true
  onClicked: console.log("In MouseArea")

  }
  }
  }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1598920/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp