Fix effectstack layout margin for qtblend effect

parent 1bfec556
Pipeline #14429 passed with stage
in 15 minutes and 10 seconds
......@@ -170,8 +170,8 @@ KeyframeWidget::KeyframeWidget(std::shared_ptr<AssetParameterModel> model, QMode
connect(m_buttonPrevious, &QAbstractButton::pressed, m_keyframeview, &KeyframeView::slotGoToPrev);
connect(m_buttonNext, &QAbstractButton::pressed, m_keyframeview, &KeyframeView::slotGoToNext);
//m_baseHeight = m_keyframeview->height() + m_selectType->defaultWidget()->sizeHint().height();
QMargins mrg = contentsMargins();
m_baseHeight = m_keyframeview->height() + m_toolbar->sizeHint().height() + 2 + mrg.top() + mrg.bottom();
QMargins mrg = m_lay->contentsMargins();
m_baseHeight = m_keyframeview->height() + m_toolbar->sizeHint().height() + mrg.top() + mrg.bottom();
setFixedHeight(m_baseHeight);
addParameter(index);
......
......@@ -7,14 +7,23 @@
<x>0</x>
<y>0</y>
<width>155</width>
<height>58</height>
<height>46</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="verticalSpacing">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="margin">
<property name="bottomMargin">
<number>0</number>
</property>
<property name="verticalSpacing">
<number>0</number>
</property>
<item row="0" column="1">
......@@ -44,7 +53,7 @@
<number>0</number>
</property>
<property name="bottomMargin">
<number>15</number>
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="m_labelComment">
......
......@@ -175,7 +175,7 @@ GeometryWidget::GeometryWidget(Monitor *monitor, QPair<int, int> range, const QR
layout->addLayout(horLayout2);
slotUpdateGeometryRect(rect);
slotAdjustRectKeyframeValue();
setMinimumHeight(m_spinX->minimumHeight() + alignButton->sizeHint().height() + m_spinSize->minimumHeight());
setMinimumHeight(horLayout->sizeHint().height() + horLayout2->sizeHint().height() + alignLayout->sizeHint().height());
}
void GeometryWidget::slotAdjustToSource()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment