Tidying
This commit is contained in:
@@ -4,6 +4,13 @@ using namespace Bloom::Widgets::InsightTargetWidgets::Dip;
|
|||||||
|
|
||||||
BodyWidget::BodyWidget(QWidget* parent, std::size_t pinCount): QWidget(parent) {
|
BodyWidget::BodyWidget(QWidget* parent, std::size_t pinCount): QWidget(parent) {
|
||||||
this->setObjectName("target-body");
|
this->setObjectName("target-body");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The DIP package widget looks awkward when the body height is fixed. For this reason, the body height and
|
||||||
|
* indicator sizes are proportional to the pin count.
|
||||||
|
*
|
||||||
|
* The proportionality constants used below were chosen because they look the nicest. No other reason.
|
||||||
|
*/
|
||||||
this->setFixedHeight(
|
this->setFixedHeight(
|
||||||
std::min(
|
std::min(
|
||||||
BodyWidget::MAXIMUM_BODY_HEIGHT,
|
BodyWidget::MAXIMUM_BODY_HEIGHT,
|
||||||
|
|||||||
Reference in New Issue
Block a user