mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Make GUI scalable
This commit is contained in:
@ -20,15 +20,19 @@
|
||||
BarcodeItem::BarcodeItem()
|
||||
: QGraphicsItem()
|
||||
{
|
||||
w=550;
|
||||
h=230;
|
||||
w=693;
|
||||
h=378; // Default widget size when created
|
||||
}
|
||||
|
||||
|
||||
BarcodeItem::~BarcodeItem()
|
||||
{
|
||||
}
|
||||
|
||||
void BarcodeItem::setSize(int width, int height) {
|
||||
w = width;
|
||||
h = height;
|
||||
}
|
||||
|
||||
QRectF BarcodeItem::boundingRect() const
|
||||
{
|
||||
return QRectF(0, 0, w, h);
|
||||
|
Reference in New Issue
Block a user