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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1501673

Title:
  [UCLabel] Remove REVISION requirement for textSize property

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to