From 1b94294a34150a051f78b97278047a8ed173213c Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 28 Jun 2018 11:41:57 +0200 Subject: Move all pendingCurrentIndex assignments to a private setter This makes debugging significantly easier, in that it's now possible to use one qDebug() statement for the assignment rather than a handful at different places in the code. Change-Id: Ic6fdc2943b6eeb0496148b07d7a3ece0b6399c1b Reviewed-by: Liang Qi --- src/quicktemplates2/qquicktumbler_p_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quicktemplates2/qquicktumbler_p_p.h') diff --git a/src/quicktemplates2/qquicktumbler_p_p.h b/src/quicktemplates2/qquicktumbler_p_p.h index a7e5f2ac..9ed0647e 100644 --- a/src/quicktemplates2/qquicktumbler_p_p.h +++ b/src/quicktemplates2/qquicktumbler_p_p.h @@ -104,6 +104,7 @@ public: void disconnectFromView(); void setupViewData(QQuickItem *newControlContentItem); void syncCurrentIndex(); + void setPendingCurrentIndex(int index); enum PropertyChangeReason { UserChange, -- cgit v1.2.3