Take version information from CmakeLists.txt

Warning: potential incompatibility because version number is no longer stored in zint.h
This commit is contained in:
Robin Stuart
2020-11-22 11:29:45 +00:00
parent 44923349f3
commit 3eb31fe3f8
9 changed files with 45 additions and 13 deletions

View File

@ -363,6 +363,10 @@ namespace Zint {
bool QZint::hasErrors() const {
return m_lastError.length();
}
int QZint::getVersion() const {
return ZBarcode_Version();
}
bool QZint::save_to_file(QString filename) {
resetSymbol();

View File

@ -119,6 +119,8 @@ public:
bool save_to_file(QString filename);
void render(QPainter & painter, const QRectF & paintRect, AspectRatioMode mode=IgnoreAspectRatio);
int getVersion() const;
signals:
void encoded();