accountslistmodel.cpp 433 B

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