Skip to content

Commit

Permalink
Update qucsactivefilter.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
dsm authored Dec 4, 2024
1 parent 054e0b5 commit e6a5555
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qucs-activefilter/qucsactivefilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,12 @@ QucsActiveFilter::QucsActiveFilter(QWidget *parent)
QSize sz;
QString s1 = ":/images/bitmaps/AFR.svg";
imgAFR = new QSvgWidget(s1);
// Ensure the background is white
imgAFR->setStyleSheet("background-color: white;");
sz = gpbPar->size(); // take left box size as reference size
sz *= 0.6;
imgAFR->setFixedSize(sz);

vl1->addWidget(imgAFR);
vl1->setAlignment(imgAFR, Qt::AlignHCenter);

Expand All @@ -234,6 +237,8 @@ QucsActiveFilter::QucsActiveFilter(QWidget *parent)
gpbSCH->setLayout(vl2);
s1 = ":/images/bitmaps/cauer.svg";
sch_pic = new QSvgWidget(s1);
// Ensure the background is white
sch_pic->setStyleSheet("background-color: white;");
sz = gpbFunc->size(); // take lefbox size as reference size
sz *= 0.95;
sch_pic->setFixedSize(sz);
Expand Down

0 comments on commit e6a5555

Please sign in to comment.