1234567891011121314151617181920212223242526272829 |
- #include "smileslistmodel.h"
- SmilesListModel::SmilesListModel(QObject *parent) : ListModel(new SmilesItemModel, parent)
- {
- }
- void SmilesListModel::append( SmilesItemModel *item ) {
- this->appendRow( item );
- /*QString key = item->text();
- if( !(key.isEmpty() || key.isNull()) ) {
- bufOfSmiles[ item->text() ] = item->picture();
- }*/
- }
- /*void SmilesListModel::remove( int index ) {
- this->removeRow( index );
- }*/
- int SmilesListModel::count() {
- return this->rowCount();
- }
- void SmilesListModel::clearList()
- {
- this->clear();
- //bufOfSmiles.clear();
- }
|