mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 09:57:02 +00: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