summaryrefslogtreecommitdiff
path: root/src/controls/TableViewColumn.qml
diff options
context:
space:
mode:
authorVenu <venugopal.shivashankar@digia.com>2014-03-06 16:53:40 +0100
committerVenugopal Shivashankar <venugopal.shivashankar@digia.com>2014-06-27 12:30:40 +0200
commit58c5f54f0b772a424c60a8e5184eaf698e744c9a (patch)
tree78dd541ef330ca522b34684f8530037f68a71bea /src/controls/TableViewColumn.qml
parentc76b9478be9c6aab13bcd8e237db12dec080841e (diff)
downloadqtquickcontrols-58c5f54f0b772a424c60a8e5184eaf698e744c9a.tar.gz
Doc: Added images and missing snippets
Task-number: QTBUG-33799 Change-Id: I582518a73276d47cf63cf31411b5176a90acab6f Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/TableViewColumn.qml')
-rw-r--r--src/controls/TableViewColumn.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/controls/TableViewColumn.qml b/src/controls/TableViewColumn.qml
index 931d32da..75565e4b 100644
--- a/src/controls/TableViewColumn.qml
+++ b/src/controls/TableViewColumn.qml
@@ -46,6 +46,21 @@ import QtQuick 2.2
\since 5.1
\ingroup viewitems
\brief Used to define columns in a \l TableView.
+
+ \image tableview.png
+
+ TableViewColumn represents a column within a TableView. It provides
+ properties to decide how the data in that column is presented.
+
+ \qml
+ TableView {
+ TableViewColumn { role: "title"; title: "Title"; width: 100 }
+ TableViewColumn { role: "author"; title: "Author"; width: 200 }
+ model: libraryModel
+ }
+ \endqml
+
+ \sa TableView
*/
QtObject {