mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-01 19:51:31 +03:00
Adding barcode field from the data source
This commit is contained in:
@@ -41,6 +41,8 @@ class BarcodeItem : public LimeReport::ContentItemDesignIntf {
|
||||
Q_ENUMS(InputMode)
|
||||
Q_PROPERTY(QString content READ content WRITE setContent)
|
||||
Q_PROPERTY(BarcodeType barcodeType READ barcodeType WRITE setBarcodeType )
|
||||
Q_PROPERTY(QString datasource READ datasource WRITE setDatasource)
|
||||
Q_PROPERTY(QString field READ field WRITE setField)
|
||||
Q_PROPERTY(QString testValue READ designTestValue WRITE setDesignTestValue)
|
||||
Q_PROPERTY(QColor foregroundColor READ foregroundColor WRITE setForegroundColor)
|
||||
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
|
||||
@@ -148,6 +150,10 @@ public:
|
||||
QString content() const {return m_content;}
|
||||
void setBarcodeType(BarcodeType value);
|
||||
BarcodeType barcodeType(){return m_barcodeType;}
|
||||
QString datasource() const;
|
||||
void setDatasource(const QString &datasource);
|
||||
QString field() const;
|
||||
void setField(const QString &field);
|
||||
void setDesignTestValue(QString value);
|
||||
QString designTestValue(){return m_designTestValue;}
|
||||
QColor foregroundColor(){return m_foregroundColor;}
|
||||
@@ -174,6 +180,8 @@ public:
|
||||
private:
|
||||
Zint::QZint m_bc;
|
||||
QString m_content;
|
||||
QString m_datasource;
|
||||
QString m_field;
|
||||
QString m_designTestValue;
|
||||
BarcodeType m_barcodeType;
|
||||
QColor m_foregroundColor;
|
||||
|
Reference in New Issue
Block a user