Last active
January 12, 2018 16:56
-
-
Save oKcerG/687bf999404f1212328e3d362d4b4e2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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