refs #303 Simulator table view

* Simulator component
* Name / variant pair object / view / model
This commit is contained in:
Klaus Basan
2014-08-02 22:15:15 +02:00
parent 42f89ebeca
commit 9afc9024ca
9 changed files with 159 additions and 12 deletions

View File

@@ -31,10 +31,19 @@ namespace BlackGui
public:
//! Constructor
explicit CNameVariantPairModel(QObject *parent = nullptr);
explicit CNameVariantPairModel(bool withIcon, QObject *parent = nullptr);
//! Constructor
explicit CNameVariantPairModel(const BlackMisc::CNameVariantPairList &nameValues, QObject *parent = nullptr);
//! Icon on / off
void setIconMode(bool withIcon);
//! Remove by given name
void removeByName(const QString &name);
//! Add our update a value
void addOrUpdateByName(const QString &name, const QString &value, const BlackMisc::CIcon &icon);
//! Current row index of given name
int getNameRowIndex(const QString &name);
//! Destructor
virtual ~CNameVariantPairModel() {}