smthemelistmodel.cpp 399 B

12345678910111213141516171819202122
  1. #include "smthemelistmodel.h"
  2. SmilesThemeListModel::SmilesThemeListModel(QObject *parent) : ListModel(new SmilesThemeItemModel, parent)
  3. {
  4. }
  5. void SmilesThemeListModel::append( SmilesThemeItemModel *item ) {
  6. this->appendRow( item );
  7. }
  8. int SmilesThemeListModel::count() {
  9. return this->rowCount();
  10. }
  11. void SmilesThemeListModel::clearList()
  12. {
  13. this->clear();
  14. //bufOfSmiles.clear();
  15. }