smileslistmodel.h 761 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef SMILESLISTMODEL_H
  2. #define SMILESLISTMODEL_H
  3. #include "listmodel.h"
  4. #include "smilesitemmodel.h"
  5. //#include <QMap>
  6. class SmilesListModel : public ListModel
  7. {
  8. Q_OBJECT
  9. //QMap<QString, QString> bufOfSmiles;
  10. public:
  11. explicit SmilesListModel(QObject *parent = 0);
  12. Q_INVOKABLE void append( SmilesItemModel *item );
  13. //Q_INVOKABLE void remove( int index );
  14. Q_INVOKABLE int count();
  15. Q_INVOKABLE void clearList();
  16. /*Q_INVOKABLE QString getSmileFile( QString textSmile )
  17. {
  18. QString r("");
  19. if( bufOfSmiles.contains(textSmile) ) {
  20. r = bufOfSmiles[ textSmile ];
  21. }
  22. return r;
  23. }*/
  24. signals:
  25. void smilesModelChanged();
  26. public slots:
  27. };
  28. #endif // SMILESLISTMODEL_H