avoid qml warnings when controlRoot is not set
AbandonedPublic

Authored by dakon on Sat, Aug 3, 11:41 AM.

Details

Reviewers
ngraham
mart
apol
Group Reviewers
Plasma
Summary

When debugging a custom Qml application in KDevelop I'm spammed with these
messages otherwise:

file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:62: TypeError: Cannot read property 'selectedText' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:70: TypeError: Cannot read property 'selectedText' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:78: TypeError: Cannot read property 'canPaste' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:78: TypeError: Type error
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:70: TypeError: Type error
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:62: TypeError: Type error

Diff Detail

Repository
R858 Qt Quick Controls 2: Desktop Style
Lint
Lint Skipped
Unit
Unit Tests Skipped
dakon created this revision.Sat, Aug 3, 11:41 AM
Restricted Application added a project: Plasma. · View Herald TranscriptSat, Aug 3, 11:41 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
dakon requested review of this revision.Sat, Aug 3, 11:41 AM
ngraham accepted this revision.Sun, Aug 4, 6:04 PM
ngraham added reviewers: mart, Plasma.
ngraham added subscribers: mart, ngraham.

@mart, does this look correct to you?

This revision is now accepted and ready to land.Sun, Aug 4, 6:04 PM
apol accepted this revision.Mon, Aug 5, 12:50 AM
dakon abandoned this revision.Wed, Aug 14, 7:45 PM

Dupe of D21514