1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-08 20:41:59 +00:00

Make GUI scalable

This commit is contained in:
Robin Stuart
2016-12-14 23:33:17 +00:00
parent 0f9a326398
commit 28ea2f1c69
7 changed files with 77 additions and 74 deletions

View File

@@ -29,12 +29,15 @@ 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);
private:
int w, h;
public:
mutable Zint::QZint bc;
int w,h;
Zint::QZint::AspectRatioMode ar;
};