/usr/share/plasma/plasmoids/org.kde.plasma_applet_dict/contents/ui/main.qml is in plasma-widgets-addons 4:5.12.4-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.core 2.0 as PlasmaCore
import QtWebEngine 1.1
import org.kde.plasma.private.dict 1.0
ColumnLayout {
DictObject {
id: dict
selectedDictionary: plasmoid.configuration.dictionary
onSearchInProgress: web.loadHtml(i18n("Looking up definition..."));
onDefinitionFound: web.loadHtml(html);
}
RowLayout {
Layout.fillWidth: true
PlasmaComponents.TextField {
id: input
placeholderText: i18n("Enter word to define here")
implicitWidth: units.gridUnit * 40
onAccepted: {
if (input.text === "") {
web.visible = false;
} else {
web.visible = true;
dict.lookup(input.text);
}
}
}
PlasmaComponents.Button {
iconSource: "configure"
onClicked: plasmoid.action("configure").trigger();
}
}
WebEngineView {
id: web
visible: false
Layout.fillWidth: true
//Layout.fillHeight: true
Layout.preferredHeight: 400
zoomFactor: units.devicePixelRatio
profile: dict.webProfile
}
}
|