rosterlistmodel.cpp 415 B

123456789101112131415161718192021222324
  1. #include "rosterlistmodel.h"
  2. RosterListModel::RosterListModel( QObject *parent ) :ListModel( new RosterItemModel, parent )
  3. {
  4. }
  5. void RosterListModel::append( RosterItemModel *item ) {
  6. this->appendRow( item );
  7. }
  8. void RosterListModel::remove( int index ) {
  9. this->removeRow( index );
  10. }
  11. int RosterListModel::count() {
  12. return this->rowCount();
  13. }
  14. void RosterListModel::clearList()
  15. {
  16. this->clear();
  17. }