1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef SMILESLISTMODEL_H
- #define SMILESLISTMODEL_H
- #include "listmodel.h"
- #include "smilesitemmodel.h"
- //#include <QMap>
- class SmilesListModel : public ListModel
- {
- Q_OBJECT
- //QMap<QString, QString> bufOfSmiles;
- public:
- explicit SmilesListModel(QObject *parent = 0);
- Q_INVOKABLE void append( SmilesItemModel *item );
- //Q_INVOKABLE void remove( int index );
- Q_INVOKABLE int count();
- Q_INVOKABLE void clearList();
- /*Q_INVOKABLE QString getSmileFile( QString textSmile )
- {
- QString r("");
- if( bufOfSmiles.contains(textSmile) ) {
- r = bufOfSmiles[ textSmile ];
- }
- return r;
- }*/
-
- signals:
- void smilesModelChanged();
-
- public slots:
-
- };
- #endif // SMILESLISTMODEL_H
|