1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-05-14 18:13:53 +00:00

Restore backend_qt - static only now; qzint: legacy support for renamed methods

This commit is contained in:
gitlost
2021-06-24 18:31:08 +01:00
parent 70801d8932
commit 54947fb435
17 changed files with 415 additions and 146 deletions

View File

@@ -13,12 +13,13 @@
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
/* vim: set ts=4 sw=4 et : */
#ifndef BARCODEITEM_H
#define BARCODEITEM_H
#include <QGraphicsItem>
#include "qzint.h"
#include <qzint.h>
/**
@author BogDan Vatra <taipan@licentia.eu>
@@ -27,18 +28,18 @@
class BarcodeItem : public QGraphicsItem
{
public:
BarcodeItem();
~BarcodeItem();
void setSize(int width, int height);
QRectF boundingRect() const;
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
BarcodeItem();
~BarcodeItem();
void setSize(int width, int height);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
private:
int w, h;
int w, h;
public:
mutable Zint::QZint bc;
Zint::QZint::AspectRatioMode ar;
mutable Zint::QZint bc;
Zint::QZint::AspectRatioMode ar;
};
#endif