2
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
4
This library is free software; you can redistribute it and/or modify it
5
under the terms of the GNU Library General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or (at your
7
option) any later version.
9
This library is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to the
16
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
#include "abstractitemmodel.h"
21
#include "abstractitemmodel_p.h"
23
AbstractItemModel::AbstractItemModel( QObject *parent )
24
: QAbstractItemModel( parent ),
25
d_ptr( new AbstractItemModelPrivate( this ) )
29
AbstractItemModel::~AbstractItemModel()
33
void AbstractItemModel::beginMoveRows( const QModelIndex &srcParent, int start, int end,
34
const QModelIndex &destinationParent, int destinationStart )
36
Q_D(AbstractItemModel);
37
return d->beginMoveRows( srcParent, start, end, destinationParent, destinationStart );
40
void AbstractItemModel::endMoveRows()
42
Q_D(AbstractItemModel);
46
void AbstractItemModel::beginMoveColumns( const QModelIndex &srcParent, int start, int end,
47
const QModelIndex &destinationParent, int destinationStart )
49
Q_D(AbstractItemModel);
50
return d->beginMoveColumns( srcParent, start, end, destinationParent, destinationStart );
53
void AbstractItemModel::endMoveColumns()
55
Q_D(AbstractItemModel);
59
void AbstractItemModel::beginResetModel()
61
Q_D(AbstractItemModel);
65
void AbstractItemModel::endResetModel()
67
Q_D(AbstractItemModel);
71
void AbstractItemModel::beginChangeChildOrder( const QModelIndex &index )
73
Q_D(AbstractItemModel);
74
d->beginChangeChildOrder( index );
77
void AbstractItemModel::endChangeChildOrder()
79
Q_D(AbstractItemModel);
80
d->endChangeChildOrder();
83
#include "abstractitemmodel.moc"