Skip to content
Snippets Groups Projects
Commit a03a0e2d authored by luyikei's avatar luyikei
Browse files

Add EffectsListView.qml

parent 171e76b5
No related branches found
No related tags found
No related merge requests found
import QtQuick 2.0
import QtQuick.Controls 1.4
Rectangle {
anchors.fill: parent
color: "#999999"
ListModel {
id: effects
}
Component.onCompleted: {
var effectsInfo = view.effects();
for ( var i = 0; i < effectsInfo.length; ++i ) {
effects.append( effectsInfo[i] );
}
}
ScrollView {
id: sView
height: parent.height
width: parent.width
ListView {
width: sView.viewport.width
model: effects
delegate: Effect {
identifier: model.identifier
name: model.name
description: model.description
author: model.author
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment