aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktableview/data/deprecatedapi.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/qquicktableview/data/deprecatedapi.qml')
-rw-r--r--tests/auto/quick/qquicktableview/data/deprecatedapi.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktableview/data/deprecatedapi.qml b/tests/auto/quick/qquicktableview/data/deprecatedapi.qml
new file mode 100644
index 0000000000..2abeeb6ae9
--- /dev/null
+++ b/tests/auto/quick/qquicktableview/data/deprecatedapi.qml
@@ -0,0 +1,25 @@
+import QtQuick
+
+Item {
+ width: 400
+ height: 300
+ visible: true
+
+ property alias tableView: tableView
+
+ TableView {
+ id: tableView
+ anchors.fill: parent
+ delegate: Rectangle {
+ implicitWidth: 40
+ implicitHeight: 20
+ border.width: 1
+ }
+
+ function positionUsingDeprecatedEnum()
+ {
+ // Using Qt.Alignment for the second argument is deprecated, but supported
+ positionViewAtCell(columns - 1, rows - 1, Qt.AlignBottom | Qt.AlignRight)
+ }
+ }
+}