mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-02 01:37:22 +00:00
don't need scale factor when render, we can scale the scene or the view.
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
BarcodeItem::BarcodeItem()
|
||||
: QGraphicsItem()
|
||||
{
|
||||
scaleFactor=1;
|
||||
w=400;
|
||||
h=400;
|
||||
}
|
||||
@@ -37,7 +36,7 @@ QRectF BarcodeItem::boundingRect() const
|
||||
|
||||
void BarcodeItem::paint(QPainter * painter, const QStyleOptionGraphicsItem * /*option*/, QWidget * /*widget*/)
|
||||
{
|
||||
bc.render(*painter,boundingRect(),Zint::QZint::IgnoreAspectRatio,scaleFactor);
|
||||
bc.render(*painter,boundingRect(),Zint::QZint::IgnoreAspectRatio);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user