Merge branch 'Plasma/5.13'

icc-effect-5.14.5
Vlad Zagorodniy 2018-08-15 11:34:19 +03:00
commit 7746b3304e
3 changed files with 16 additions and 13 deletions

View File

@ -21,6 +21,7 @@
import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Controls 2.0 as QQC2
import QtQuick.Layouts 1.0
import org.kde.kwin.kwincompositing 1.0
@ -101,22 +102,22 @@ Rectangle {
id: effectItem
property int maximumWidth: parent.maximumWidth - checkBoxLayout.width - (videoButton.width + configureButton.width + aboutButton.width) - parent.spacing * 5
Layout.maximumWidth: maximumWidth
Label {
QQC2.Label {
text: model.NameRole
font.bold: true
font.weight: Font.Bold
wrapMode: Text.Wrap
Layout.maximumWidth: parent.maximumWidth
}
Label {
QQC2.Label {
id: desc
text: model.DescriptionRole
wrapMode: Text.Wrap
Layout.maximumWidth: parent.maximumWidth
}
Label {
QQC2.Label {
id:aboutItem
text: i18n("Author: %1\nLicense: %2", model.AuthorNameRole, model.LicenseRole)
font.bold: true
font.weight: Font.Bold
visible: false
wrapMode: Text.Wrap
Layout.maximumWidth: parent.maximumWidth

View File

@ -20,6 +20,7 @@
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Controls 2.0 as QQC2
import QtQuick.Layouts 1.0
import org.kde.kwin.kwincompositing 1.0
@ -35,12 +36,12 @@ Rectangle {
implicitHeight: sectionText.implicitHeight + 2 * col.spacing
color: searchModel.backgroundNormalColor
Label {
QQC2.Label {
id: sectionText
x: col.spacing
y: col.spacing
text: section
font.bold: true
font.weight: Font.Bold
color: searchModel.sectionColor
anchors.horizontalCenter: parent.horizontalCenter
}
@ -58,7 +59,7 @@ Rectangle {
id: col
anchors.fill: parent
Label {
QQC2.Label {
id: hint
text: i18n("Hint: To find out or configure how to activate an effect, look at the effect's settings.")
anchors {
@ -68,7 +69,7 @@ Rectangle {
}
RowLayout {
TextField {
QQC2.TextField {
// TODO: needs clear button, missing in Qt
id: searchField
placeholderText: i18n("Search")

View File

@ -19,6 +19,7 @@
*/
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls 2.0 as QQC2
import QtQuick.Layouts 1.1
import org.kde.kwin.private.kdecoration 1.0 as KDecoration
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons;
@ -64,7 +65,7 @@ Item {
model: leftButtons
key: "decoButtonLeft"
}
Label {
QQC2.Label {
id: titlebar
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
@ -159,7 +160,7 @@ Item {
Drag.keys: [ "decoButtonAdd" ]
Drag.active: dragArea.drag.active
}
Label {
QQC2.Label {
id: iconLabel
text: model["display"]
horizontalAlignment: Text.AlignHCenter
@ -195,9 +196,9 @@ Item {
ColumnLayout {
anchors.centerIn: parent
visible: leftButtonsView.dragging || rightButtonsView.dragging
Label {
QQC2.Label {
text: i18n("Drop here to remove button")
font.bold: true
font.weight: Font.Bold
}
KQuickControlsAddons.QIconItem {
id: icon