summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/modeltest/modeltest.h
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-08-08 14:56:14 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-15 15:04:11 +0200
commitda64a5079249ec04e4d3d6df2cc87ee69f66b977 (patch)
tree5d383efa68882af141995f83868f20ad1a7279d0 /tests/auto/other/modeltest/modeltest.h
parentfb07ce50ae2dcfb61c5a366bba3b4e2862301d25 (diff)
Only emit headerDataChanged for valid proxy intervals.
Modeltest asserts before the patch, and passes afterward. Task-number: QTBUG-26515 Change-Id: I08a89cd5c9c59613badcddbd056a3d0b8fbbca13 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/auto/other/modeltest/modeltest.h')
-rw-r--r--tests/auto/other/modeltest/modeltest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/other/modeltest/modeltest.h b/tests/auto/other/modeltest/modeltest.h
index 1b254a4009..9c828dbb95 100644
--- a/tests/auto/other/modeltest/modeltest.h
+++ b/tests/auto/other/modeltest/modeltest.h
@@ -71,6 +71,8 @@ protected Q_SLOTS:
void rowsInserted( const QModelIndex & parent, int start, int end );
void rowsAboutToBeRemoved( const QModelIndex &parent, int start, int end );
void rowsRemoved( const QModelIndex & parent, int start, int end );
+ void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
+ void headerDataChanged(Qt::Orientation orientation, int start, int end);
private:
void checkChildren( const QModelIndex &parent, int currentDepth = 0 );