https://bugs.kde.org/show_bug.cgi?id=520305

Igor Mironchik <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Igor Mironchik <[email protected]> ---
The problem is in Qt after some version. KleverNotes print this error now:

qrc:/qt/qml/org/kde/klevernotes/contents/ui/textEditor/TextToolBar.qml:93:
Error: Cannot assign QJSValue to QQmlListProperty

So in

onVisibleToolsChanged: {
        actions = setupActions()
    }

actions are empty always - so and there is no toolbar, as actions is a strongly
typed list that can not be assigned from JavaScript array.

You need to do:

// Clear previously set actions.
actions = []

// Prepare JavaScript array with actions
const finalActions = setupActions()

// Iterate JavaScript array and push every item into actions
for (EVERY_FINAL_ACTION) {
    actions.push(CURRENT_ACTION)
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to