aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktableview_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-08-13 14:51:16 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-08-13 20:08:45 +0000
commit414d8f65786ed3d2020dd85965224a59068a0d5d (patch)
tree2949cd456d6951dc47213f692484d51f11bf3ca6 /src/quick/items/qquicktableview_p.h
parentc7ec614a8443a559a722b83ccf1c370fb1ee5a42 (diff)
QQuickTableView: rename attached prop tableView to view
ListView calls the same attached property for 'view'. So do the same for TableView. Change-Id: I99034869813750e2fab56fe6ffcc4b4a6a4d9c52 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quick/items/qquicktableview_p.h')
-rw-r--r--src/quick/items/qquicktableview_p.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/quick/items/qquicktableview_p.h b/src/quick/items/qquicktableview_p.h
index 1ad74fa438..7e0f9ba8c6 100644
--- a/src/quick/items/qquicktableview_p.h
+++ b/src/quick/items/qquicktableview_p.h
@@ -159,28 +159,27 @@ private:
class Q_QUICK_PRIVATE_EXPORT QQuickTableViewAttached : public QObject
{
Q_OBJECT
-
- Q_PROPERTY(QQuickTableView *tableView READ tableView NOTIFY tableViewChanged)
+ Q_PROPERTY(QQuickTableView *view READ view NOTIFY viewChanged)
public:
QQuickTableViewAttached(QObject *parent)
: QObject(parent) {}
- QQuickTableView *tableView() const { return m_tableview; }
- void setTableView(QQuickTableView *newTableView) {
- if (newTableView == m_tableview)
+ QQuickTableView *view() const { return m_view; }
+ void setView(QQuickTableView *newTableView) {
+ if (newTableView == m_view)
return;
- m_tableview = newTableView;
- Q_EMIT tableViewChanged();
+ m_view = newTableView;
+ Q_EMIT viewChanged();
}
Q_SIGNALS:
- void tableViewChanged();
+ void viewChanged();
void pooled();
void reused();
private:
- QPointer<QQuickTableView> m_tableview;
+ QPointer<QQuickTableView> m_view;
friend class QQuickTableViewPrivate;
};