mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-03 00:19:51 -04:00
Make GUI scalable
This commit is contained in:
parent
0f9a326398
commit
28ea2f1c69
7 changed files with 77 additions and 74 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue