mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-08 20:41:59 +00:00
Take version information from CmakeLists.txt
Warning: potential incompatibility because version number is no longer stored in zint.h
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user