Public bug reported:

ListItemLayout has 3 UCLabels inside its main slot.

Those labels are created on C++ side, and they're exposed to QML via
Q_PROPERTY.

Because of the REVISION 1 in textSize Q_PROPERTY definition,
initializing textSize from QML side on C++ created labels fails with: 

".textSize" is not available due to component versioning.

Here's the testcase: 
import QtQuick 2.4
import Ubuntu.Components 1.3
ListItemLayout {
    title.text: "Hello"
    title.textSize: Label.XLarge
}

This is probably a bug in Qt's versioning handling, but since we don't actually 
need the REVISION requirement for textSize,
we should just drop it to fix the initialization issue

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1501673

Title:
  [UCLabel] Remove REVISION requirement for textSize property

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  ListItemLayout has 3 UCLabels inside its main slot.

  Those labels are created on C++ side, and they're exposed to QML via
  Q_PROPERTY.

  Because of the REVISION 1 in textSize Q_PROPERTY definition,
  initializing textSize from QML side on C++ created labels fails with: 

  ".textSize" is not available due to component versioning.

  Here's the testcase: 
  import QtQuick 2.4
  import Ubuntu.Components 1.3
  ListItemLayout {
      title.text: "Hello"
      title.textSize: Label.XLarge
  }

  This is probably a bug in Qt's versioning handling, but since we don't 
actually need the REVISION requirement for textSize,
  we should just drop it to fix the initialization issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1501673/+subscriptions

-- 
Mailing list: https://launchpad.net/~ubuntu-sdk-bugs
Post to     : ubuntu-sdk-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to