summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2017-09-12 15:30:23 +0200
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2017-09-12 15:03:33 +0000
commit67906d61c6f786dbbced67becc25e1a396f3183c (patch)
treedda582692050720fd6f5f6ae2bf13d9d666bed2e
parentcaa38d217ecbcaaa5617255290598012477c4492 (diff)
downloadqtquickcontrols-67906d61c6f786dbbced67becc25e1a396f3183c.tar.gz
Example: Update to the new QObject::connect syntax
The QSortFilterProxyModel-based proxy model forwards the rowsInserted and rowsDeleted signals. Task-number: QTBUG-60631 Change-Id: I51a46cd13a89ea22b8bb4807821b3f21f6893b19 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r--examples/quickcontrols/controls/tableview/src/sortfilterproxymodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols/controls/tableview/src/sortfilterproxymodel.cpp b/examples/quickcontrols/controls/tableview/src/sortfilterproxymodel.cpp
index 55f76d67..b93641a9 100644
--- a/examples/quickcontrols/controls/tableview/src/sortfilterproxymodel.cpp
+++ b/examples/quickcontrols/controls/tableview/src/sortfilterproxymodel.cpp
@@ -54,8 +54,8 @@
SortFilterProxyModel::SortFilterProxyModel(QObject *parent) : QSortFilterProxyModel(parent), m_complete(false)
{
- connect(this, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SIGNAL(countChanged()));
- connect(this, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SIGNAL(countChanged()));
+ connect(this, &QSortFilterProxyModel::rowsInserted, this, &SortFilterProxyModel::countChanged);
+ connect(this, &QSortFilterProxyModel::rowsRemoved, this, &SortFilterProxyModel::countChanged);
}
int SortFilterProxyModel::count() const