2016-02-11 07:30:33 +01:00
|
|
|
#ifndef COMBODATA_H
|
|
|
|
|
#define COMBODATA_H
|
|
|
|
|
|
|
|
|
|
#include <QVariant>
|
2016-02-11 12:11:32 +01:00
|
|
|
#include <QSharedDataPointer>
|
2016-02-11 07:30:33 +01:00
|
|
|
|
|
|
|
|
#include "core_global.h"
|
2016-02-11 12:11:32 +01:00
|
|
|
#include "data/comboitem.h"
|
2016-02-11 07:30:33 +01:00
|
|
|
|
|
|
|
|
class CORESHARED_EXPORT ComboData
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ComboData(const QVariant &index, const QString &label);
|
2016-02-11 12:11:32 +01:00
|
|
|
ComboData(const QSharedPointer<QObject> &index);
|
2016-02-11 07:30:33 +01:00
|
|
|
~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
|