mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
cleanup
This commit is contained in:
parent
608009b2a5
commit
c4dbeced66
@ -6,12 +6,6 @@ include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend" )
|
||||
|
||||
set(QZint_SRCS qzint.cpp)
|
||||
|
||||
QT4_WRAP_CPP(QZint_SRCS qzint.h)
|
||||
|
||||
#add_definitions (-DNO_QT_KEYWORDS)
|
||||
# Uncomment the above line if you want to compile qzint without qt keywords
|
||||
|
||||
|
||||
add_library(QZint SHARED ${QZint_SRCS})
|
||||
|
||||
set_target_properties(QZint PROPERTIES VERSION ${ZINT_VERSION}
|
||||
|
@ -25,33 +25,12 @@ namespace Zint
|
||||
{
|
||||
|
||||
class QZint
|
||||
#ifndef NO_QT_KEYWORDS
|
||||
: public QObject
|
||||
#endif
|
||||
{
|
||||
#ifndef NO_QT_KEYWORDS
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(int symbol READ symbol WRITE setSymbol)
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
Q_PROPERTY(QString primaryMessage READ primaryMessage WRITE setPrimaryMessage)
|
||||
Q_PROPERTY(int height READ height WRITE setHeight)
|
||||
Q_PROPERTY(int width READ width WRITE setWidth)
|
||||
Q_PROPERTY(QColor fgColor READ fgColor WRITE setFgColor)
|
||||
Q_PROPERTY(QColor bgColor READ bgColor WRITE setBgColor)
|
||||
Q_PROPERTY(BorderType borderType READ borderType WRITE setBorderType)
|
||||
Q_PROPERTY(int borderWidth READ borderWidth WRITE setBorderWidth)
|
||||
Q_PROPERTY(int pdf417CodeWords READ pdf417CodeWords WRITE setPdf417CodeWords)
|
||||
Q_PROPERTY(int securityLevel READ securityLevel WRITE setSecurityLevel)
|
||||
Q_PROPERTY(int msiExtraSymbology READ msiExtraSymbology WRITE setMsiExtraSymbology)
|
||||
Q_PROPERTY(int code39ExtraSymbology READ code39ExtraSymbology WRITE setCode39ExtraSymbology)
|
||||
Q_PROPERTY(int excode39ExtraSymbology READ excode39ExtraSymbology WRITE setExcode39ExtraSymbology)
|
||||
Q_ENUMS(BorderType)
|
||||
#endif
|
||||
private:
|
||||
|
||||
public:
|
||||
|
||||
enum BorderType{NO_BORDER=0, BIND=1, BOX=2};
|
||||
enum AspectRatioMode{IgnoreAspectRatio=0, KeepAspectRatio=1, CenterBarCode=2};
|
||||
enum BorderType{NO_BORDER=0, BIND=1, BOX=2};
|
||||
enum AspectRatioMode{IgnoreAspectRatio=0, KeepAspectRatio=1, CenterBarCode=2};
|
||||
|
||||
public:
|
||||
QZint();
|
||||
@ -99,7 +78,7 @@ public:
|
||||
int excode39ExtraSymbology();
|
||||
void setExcode39ExtraSymbology(int excode39SymbologyNumber);
|
||||
|
||||
void render(QPainter & painter, const QRectF & paintRect, AspectRatioMode mode=IgnoreAspectRatio, qreal scaleFactor=1);
|
||||
void render(QPainter & painter, const QRectF & paintRect, AspectRatioMode mode=IgnoreAspectRatio);
|
||||
|
||||
const QString & lastError();
|
||||
bool hasErrors();
|
||||
|
Loading…
Reference in New Issue
Block a user