1234567891011121314151617181920212223 |
- #include "msglistmodel.h"
- MsgListModel::MsgListModel(QObject *parent) : ListModel( new MsgItemModel, parent )
- {
- }
- void MsgListModel::append( MsgItemModel *item ) {
- this->appendRow( item );
- }
- void MsgListModel::remove( int index ) {
- this->removeRow( index );
- }
- int MsgListModel::count() {
- return this->rowCount();
- }
- void MsgListModel::clearList()
- {
- this->clear();
- }
|