Changeset View
Changeset View
Standalone View
Standalone View
plasmoid/contents/ui/ImgRecogType.qml
- This file was copied from plasmoid/contents/ui/MessageBox.qml.
1 | import QtQuick 2.0 | 1 | import QtQuick 2.0 | ||
---|---|---|---|---|---|
2 | import QtQml.Models 2.2 | | |||
3 | import QtQuick.Controls 2.0 | 2 | import QtQuick.Controls 2.0 | ||
4 | import org.kde.plasma.components 2.0 as PlasmaComponents | | |||
5 | import org.kde.plasma.extras 2.0 as PlasmaExtras | | |||
6 | 3 | | |||
7 | Column { | 4 | Column { | ||
5 | id: colmsg | ||||
8 | spacing: 6 | 6 | spacing: 6 | ||
9 | anchors.right: parent.right | 7 | anchors.right: parent.right | ||
10 | 8 | | |||
11 | readonly property bool sentByMe: model.recipient !== "User" | 9 | readonly property bool sentByMe: model.recipient !== "User" | ||
12 | property alias mssg: messageText.text | 10 | //property alias mssg: messageText.text | ||
13 | 11 | | |||
14 | Row { | 12 | Row { | ||
15 | id: messageRow | 13 | id: messageRow | ||
16 | spacing: 6 | 14 | spacing: 6 | ||
17 | 15 | | |||
18 | Rectangle { | 16 | Rectangle { | ||
19 | id: messageRect | 17 | id: messageRect | ||
20 | width: cbwidth | 18 | width: cbwidth | ||
21 | radius: 2 | 19 | radius: 2 | ||
22 | height: messageText.implicitHeight + 24 | 20 | height: messageText.implicitHeight | ||
23 | color: theme.backgroundColor | 21 | color: "#222" | ||
24 | 22 | | |||
25 | PlasmaComponents.Label { | 23 | Image { | ||
26 | id: messageText | 24 | id: messageText | ||
27 | text: model.InputQuery | | |||
28 | anchors.fill: parent | 25 | anchors.fill: parent | ||
29 | anchors.margins: 12 | 26 | anchors.margins: 5 | ||
30 | wrapMode: Label.Wrap | 27 | fillMode: Image.PreserveAspectCrop | ||
28 | source: model.InputQuery | ||||
29 | sourceSize.width: cbwidth | ||||
30 | sourceSize.height: units.gridUnit * 10 | ||||
31 | } | 31 | } | ||
32 | } | 32 | } | ||
33 | } | 33 | } | ||
34 | } | 34 | } | ||
35 | |