mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-01 07:38:26 -04:00
don't need scale factor when render, we can scale the scene or the view.
This commit is contained in:
parent
b0f9cfb532
commit
fd45a1d277
4 changed files with 8 additions and 39 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue