mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-30 14:55:20 -04:00
Make GUI scalable
This commit is contained in:
parent
0f9a326398
commit
28ea2f1c69
7 changed files with 77 additions and 74 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue