Quick-Turn-Studio / CLionSupportForQt

19 stars 0 forks source link

Property assignment via function #14

Closed machtelik closed 4 years ago

machtelik commented 4 years ago

The following code leads to error <delegate declaration>, <property declaration>, <script field assignment>, <signal handler property>, <valued field assignment>, QmlTokenType.CLASS_NAME, QmlTokenType.CLOSE_BRACE, QmlTokenType.COMMAND_END, QmlTokenType.COMPARE_OPERATOR, QmlTokenType.COMPONENT_KEYWORD, QmlTokenType.DOT, QmlTokenType.ENUM_KEYWORD, QmlTokenType.FUNCTION_KEYWORD, QmlTokenType.ID_KEYWORD, QmlTokenType.IMPORT_QUALIFIER, QmlTokenType.OPERATION_OPERATOR, QmlTokenType.PROPERTY_KEYWORD, QmlTokenType.SIGNAL_KEYWORD or QmlTokenType.TERNARY_OPERATOR expected, got 'h'

    width: Math.min(1, 2)
    height: 3
grabusr commented 4 years ago

Hello Mike,

Could you provide more complex example? We tested it on:

import QtQuick 2.0

Item {
    width: Math.min(1, 2)
    height: 3
}

and it it works correctly, so probably it fails in more complex code block.

machtelik commented 4 years ago

Seems to be fixed in 0.9.3.