Skip to content

Instantly share code, notes, and snippets.

@oKcerG
Last active January 12, 2018 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oKcerG/687bf999404f1212328e3d362d4b4e2f to your computer and use it in GitHub Desktop.
Save oKcerG/687bf999404f1212328e3d362d4b4e2f to your computer and use it in GitHub Desktop.
import QtQuick 2.7
Rectangle {
property alias textItem: textItem
property alias text: textItem.text
property alias textColor: textItem.color
property alias maxWidth: textItem.width
property alias maxHeight: textItem.height
property alias maximumLineCount: textItem.maximumLineCount
property alias wrapMode: textItem.wrapMode
property alias elide: textItem.elide
property alias padding: textItem.padding
property alias leftPadding: textItem.leftPadding
property alias rightPadding: textItem.rightPadding
property alias topPadding: textItem.topPadding
property alias bottomPadding: textItem.bottomPadding
implicitWidth: textItem.implicitWidth
implicitHeight: textItem.implicitHeight
width: textItem.contentWidth + leftPadding + rightPadding
height: textItem.contentHeight + topPadding + bottomPadding
Text {
id: textItem
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment