1/****************************************************************************
2** The full license is below, this is here to make licensecheck happy
4** This program is free software; you can redistribute it and/or modify
5** it under the terms of the GNU Lesser General Public License as published by
6** the Free Software Foundation; version 2.1.
8** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
9** Contact: http://www.qt-project.org/legal
11** This file is part of the test suite of the Qt Toolkit.
13** $QT_BEGIN_LICENSE:LGPL$
14** Commercial License Usage
15** Licensees holding valid commercial Qt licenses may use this file in
16** accordance with the commercial license agreement provided with the
17** Software or, alternatively, in accordance with the terms contained in
18** a written agreement between you and Digia. For licensing terms and
19** conditions see http://qt.digia.com/licensing. For further information
20** use the contact form at http://qt.digia.com/contact-us.
22** GNU Lesser General Public License Usage
23** Alternatively, this file may be used under the terms of the GNU Lesser
24** General Public License version 2.1 as published by the Free Software
25** Foundation and appearing in the file LICENSE.LGPL included in the
26** packaging of this file. Please review the following information to
27** ensure the GNU Lesser General Public License version 2.1 requirements
28** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
30** In addition, as a special exception, Digia gives you certain additional
31** rights. These rights are described in the Digia Qt LGPL Exception
32** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
34** GNU General Public License Usage
35** Alternatively, this file may be used under the terms of the GNU
36** General Public License version 3.0 as published by the Free Software
37** Foundation and appearing in the file LICENSE.GPL included in the
38** packaging of this file. Please review the following information to
39** ensure the GNU General Public License version 3.0 requirements will be
40** met: http://www.gnu.org/copyleft/gpl.html.
45****************************************************************************/
51#include <QtCore/QObject>
52#include <QtCore/QAbstractItemModel>
53#include <QtCore/QStack>
55class ModelTest : public QObject
60 ModelTest( QAbstractItemModel *model, QObject *parent = 0 );
63 void nonDestructiveBasicTest();
73 void layoutAboutToBeChanged();
75 void rowsAboutToBeInserted( const QModelIndex &parent, int start, int end );
76 void rowsInserted( const QModelIndex & parent, int start, int end );
77 void rowsAboutToBeRemoved( const QModelIndex &parent, int start, int end );
78 void rowsRemoved( const QModelIndex & parent, int start, int end );
79 void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
80 void headerDataChanged(Qt::Orientation orientation, int start, int end);
83 void checkChildren( const QModelIndex &parent, int currentDepth = 0 );
85 QAbstractItemModel *model;
93 QStack<Changing> insert;
94 QStack<Changing> remove;
98 QList<QPersistentModelIndex> changing;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list