← Back to team overview

touch-packages team mailing list archive

[Bug 1501673] Re: [UCLabel] Remove REVISION requirement for textSize property

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => In Progress

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Andrea Bernabei (faenil)

** Branch linked: lp:~faenil/ubuntu-ui-toolkit/uclabel_removeRevision

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

Title:
  [UCLabel] Remove REVISION requirement for textSize property

Status in ubuntu-ui-toolkit package in Ubuntu:
  In Progress

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


References