Skip to content

Commit

Permalink
fixed cut text due to QFormLayout Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
neoneela committed Mar 10, 2024
1 parent 5c6f103 commit 10ec5b0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ namespace hal
mLayout->addRow(new GateLibraryLabel(false, "Asynchronous set:", parent), mAsynchronousSetProperty);
mLayout->addRow(new GateLibraryLabel(false, "Set+Reset -> internal state:", parent), mInternalStateOnReset);
mLayout->addRow(new GateLibraryLabel(false, "Set+Reset -> neg. int. state:", parent), mNegatedInternalStateOnReset);

mLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
}

void GatelibraryFrameFF::update(GateType* gt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ namespace hal
mLayout->addRow(new GateLibraryLabel(false, "Category:", parent), mCategoryLabel);
mLayout->addRow(new GateLibraryLabel(false, "Identifiers:", parent), mIdentifiersLabel);

mLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);

}

void GatelibraryFrameInit::update(GateType* gt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace hal
mAscending = new GateLibraryLabel(true, " - ", this);

mLayout->addRow(new GateLibraryLabel(false, "Bit Order:", parent), mAscending);

mLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
}

void GatelibraryFrameLut::update(GateType* gt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ namespace hal
mLayout->addRow(new GateLibraryLabel(false, "State identifier:", parent), mStateIdentifier);
mLayout->addRow(new GateLibraryLabel(false, "Neg. state identifier:", parent), mNegStateIdentifier);

mLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);

}

void GatelibraryFrameState::update(GateType* gt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace hal {
: QLabel(txt,parent)
{
mValue = isVal;
setWordWrap(true);
}

void GateLibraryLabel::setValue(bool isVal)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace hal
mLayout->addRow(new GateLibraryLabel(false, "Name:", this), mNameLabel);
mLayout->addRow(new GateLibraryLabel(false, "ID:", this), mIdLabel);
mLayout->addRow(new GateLibraryLabel(false, "Properties:", this), mPropertiesLabel);

mLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
}

void GatelibraryFrameGeneral::update(GateType *gt)
Expand Down Expand Up @@ -57,7 +59,7 @@ namespace hal
//--------------------- boolean function frame ------------------
GatelibraryFrameBoolean::GatelibraryFrameBoolean(QWidget* parent)
: GatelibraryComponentFrame("Boolean Functions", parent)
{;}
{mLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);}

void GatelibraryFrameBoolean::update(GateType *gt)
{
Expand Down

0 comments on commit 10ec5b0

Please sign in to comment.