Commit d147a888 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by luyikei

Effects: Reduce space waste

Signed-off-by: luyikei's avatarYikai Lu <luyikei.qmltu@gmail.com>
parent 5742f487
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 1.4 import QtQuick.Controls 1.4
import QtQuick.Layouts 1.3
Rectangle { Rectangle {
id: effect id: effect
color: "#444444" color: "#444444"
width: parent.width
height: 200
border.color: "#222222" border.color: "#222222"
border.width: 1 border.width: 1
width: parent.width
height: childrenRect.height
property string identifier property string identifier
property string name property string name
property string description property string description
property string author
Column { Column {
width: sView.viewport.width
Text { Text {
text: name text: name
font.pointSize: 20 font.pointSize: 14
color: "#EEEEEE"
elide: Text.ElideRight
width: parent.width
}
Text {
text: identifier
color: "#EEEEEE" color: "#EEEEEE"
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width
} }
Text { Text {
text: description text: description
color: "#EEEEEE" color: "#EEEEEE"
elide: Text.ElideRight elide: Text.ElideRight
width: parent.width
}
Text {
text: author
color: "#EEEEEE"
elide: Text.ElideRight
width: parent.width
} }
} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onPressed: { onPressed: {
......
...@@ -28,7 +28,6 @@ Rectangle { ...@@ -28,7 +28,6 @@ Rectangle {
identifier: model.identifier identifier: model.identifier
name: model.name name: model.name
description: model.description description: model.description
author: model.author
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment