Added support for binding simple data to combo boxes. (not tested)
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef COMBODATA_H
|
||||
#define COMBODATA_H
|
||||
|
||||
#include <QVariant>
|
||||
|
||||
#include "core_global.h"
|
||||
|
||||
class CORESHARED_EXPORT ComboData
|
||||
{
|
||||
public:
|
||||
ComboData(const QVariant &index, const QString &label);
|
||||
~ComboData();
|
||||
|
||||
QVariant index() const;
|
||||
void setIndex(const QVariant &index);
|
||||
|
||||
QString label() const;
|
||||
void setLabel(const QString &label);
|
||||
|
||||
private:
|
||||
QVariant m_index;
|
||||
QString m_label;
|
||||
};
|
||||
|
||||
#endif // COMBODATA_H
|
||||
Reference in New Issue
Block a user