Skip to content
Snippets Groups Projects
Commit 6a0de004 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix placeholderTextColor not supported below Qt 5.12

parent 7040be1d
No related branches found
No related tags found
No related merge requests found
Pipeline #396 passed
......@@ -122,7 +122,14 @@ Rectangle {
text: "asfkajsdf"
selectByMouse: true
placeholderText: qsTr("Write a message...")
placeholderTextColor: colors.buttonText
//placeholderTextColor: colors.buttonText
// only set the anchors on Qt 5.12 or higher
// see https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html#anchors.centerIn-prop
Component.onCompleted: {
if (placeholderTextColor !== undefined)
placeholderTextColor = colors.buttonText
}
color: colors.text
width: textInput.width
wrapMode: TextEdit.Wrap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment