don't need scale factor when render, we can scale the scene or the view.

This commit is contained in:
taipanromania 2008-10-09 09:58:18 +00:00
parent b0f9cfb532
commit fd45a1d277
4 changed files with 8 additions and 39 deletions

View file

@ -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);
}