[vlmc-devel] Effects: Reduce space waste

Hugo Beauzée-Luyssen git at videolan.org
Fri Jul 21 19:06:59 CEST 2017


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov  4 22:05:27 2016 +0100| [d147a888d700df2bd53f2b0035553fcf4f4fe1b5] | committer: Yikai Lu

Effects: Reduce space waste

Signed-off-by: Yikai Lu <luyikei.qmltu at gmail.com>

> https://code.videolan.org/videolan/vlmc/commit/d147a888d700df2bd53f2b0035553fcf4f4fe1b5
---

 src/Gui/effectsengine/Effect.qml          | 29 ++++++-----------------------
 src/Gui/effectsengine/EffectsListView.qml |  1 -
 2 files changed, 6 insertions(+), 24 deletions(-)

diff --git a/src/Gui/effectsengine/Effect.qml b/src/Gui/effectsengine/Effect.qml
index e239e8e7..b6c27307 100644
--- a/src/Gui/effectsengine/Effect.qml
+++ b/src/Gui/effectsengine/Effect.qml
@@ -1,52 +1,35 @@
 import QtQuick 2.0
 import QtQuick.Controls 1.4
+import QtQuick.Layouts 1.3
+
 
 Rectangle {
     id: effect
     color: "#444444"
-    width: parent.width
-    height: 200
     border.color: "#222222"
     border.width: 1
 
+    width: parent.width
+    height: childrenRect.height
+
     property string identifier
     property string name
     property string description
-    property string author
 
     Column {
-        width: sView.viewport.width
-
         Text {
             text: name
-            font.pointSize: 20
-            color: "#EEEEEE"
-            elide: Text.ElideRight
-            width: parent.width
-        }
-
-        Text {
-            text: identifier
+            font.pointSize: 14
             color: "#EEEEEE"
             elide: Text.ElideRight
-            width: parent.width
         }
 
         Text {
             text: description
             color: "#EEEEEE"
             elide: Text.ElideRight
-            width: parent.width
-        }
-
-        Text {
-            text: author
-            color: "#EEEEEE"
-            elide: Text.ElideRight
-            width: parent.width
         }
     }
-
     MouseArea {
         anchors.fill: parent
         onPressed: {
diff --git a/src/Gui/effectsengine/EffectsListView.qml b/src/Gui/effectsengine/EffectsListView.qml
index db11eb5b..4918ecdf 100644
--- a/src/Gui/effectsengine/EffectsListView.qml
+++ b/src/Gui/effectsengine/EffectsListView.qml
@@ -28,7 +28,6 @@ Rectangle {
                 identifier: model.identifier
                 name: model.name
                 description: model.description
-                author: model.author
             }
         }
     }



More information about the Vlmc-devel mailing list