import QtQuick 2.2
import QtQuick.Window 2.0
import QtQuick.Controls 1.2

Window{
    visible: true
    width : 800
    height: 600

    TableView {
        id: tableView
        objectName: "tableView"
        anchors.margins: 20
        anchors.fill: parent
        headerVisible: true
        alternatingRowColors: false
                
        TableViewColumn{ role: "title"  ; title: "Title" ; width: (tableView.width / 2) - 5 }
        TableViewColumn{ role: "lang"  ; title: "Lang" ; width: (tableView.width / 2) - 5 } 
        
        ListModel {
            id: libraryModel
            ListElement { title: "foo"; lang: "fr" }
            ListElement { title: "bar"; lang: "en" }
            ListElement { title: "baz"; lang: "de" }
        }
        
        model: libraryModel
    }
}
