diff options
Diffstat (limited to 'src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h')
-rw-r--r-- | src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h b/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h deleted file mode 100644 index b78aeeec01..0000000000 --- a/src/components/qt_hmi/References/Work/fordsdlcore/sdlappslistmodel.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef SDLAPPSLISTMODEL_H -#define SDLAPPSLISTMODEL_H - -#include <QAbstractListModel> -#include <QStringList> - -class SdlAppsListModel : public QAbstractListModel { - Q_OBJECT - public: - explicit SdlAppsListModel(QObject* parent = 0); - - int rowCount(const QModelIndex& parent) const { - return m_data.size(); - } - - QVariant data(const QModelIndex& index, int role) const { - return m_data.values().at(index.row()); - } - - virtual QHash<int, QByteArray> roleNames() const { - QHash<int, QByteArray> roles; - roles['t'] = "text"; - return roles; - } - - void append(int id, QString string) { - beginResetModel(); - m_data.clear(); - m_data[id] = string; - endResetModel(); - } - - void clear() { - beginResetModel(); - m_data.clear(); - endResetModel(); - } - -signals: - - public slots: - - private: - QHash<int, QString> m_data; -}; - -#endif // SDLAPPSLISTMODEL_H |