intellij-qml icon indicating copy to clipboard operation
intellij-qml copied to clipboard

Support ternary operator

Open machinekoder opened this issue 6 years ago • 1 comments

The ternary operator is recommended to be used in QML. Right now it breaks code folding.

import QtQuick 2.0
import QtQuick.Controls 2.0

Item {
    id: root
    width: 500
    height: 500
    property string someText: root.width < 500 ? "small" : "big"  // ? condition also breaks code folding
}

machinekoder avatar Jul 08 '18 13:07 machinekoder

It is also highlighted in Red as an error

Berserker66 avatar Dec 18 '18 09:12 Berserker66