Used size policy for the resizing of the target registers scroll area, as opposed to a manual resize in resizeEvent()
This commit is contained in:
@@ -217,10 +217,7 @@ void TargetRegistersPaneWidget::resizeEvent(QResizeEvent* event) {
|
|||||||
* In order to avoid the panel resize handle overlapping the scroll bar handle, we reduce the size of
|
* In order to avoid the panel resize handle overlapping the scroll bar handle, we reduce the size of
|
||||||
* the scroll area.
|
* the scroll area.
|
||||||
*/
|
*/
|
||||||
this->itemScrollArea->setFixedSize(
|
this->itemScrollArea->setFixedWidth(width - this->parent->getHandleSize());
|
||||||
width - this->parent->getHandleSize(),
|
|
||||||
parentSize.height() - this->toolBar->height() - this->searchInput->height() - 5
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TargetRegistersPaneWidget::postActivate() {
|
void TargetRegistersPaneWidget::postActivate() {
|
||||||
|
|||||||
@@ -116,12 +116,15 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item alignment="Qt::AlignTop">
|
<item>
|
||||||
<widget class="QScrollArea" name="item-scroll-area">
|
<widget class="QScrollArea" name="item-scroll-area">
|
||||||
<property name="widgetResizable"><bool>true</bool></property>
|
<property name="widgetResizable"><bool>true</bool></property>
|
||||||
<property name="verticalScrollBarPolicy"><enum>Qt::ScrollBarAsNeeded</enum></property>
|
<property name="verticalScrollBarPolicy"><enum>Qt::ScrollBarAsNeeded</enum></property>
|
||||||
<property name="sizeAdjustPolicy"><enum>QAbstractScrollArea::AdjustToContents</enum></property>
|
<property name="sizeAdjustPolicy"><enum>QAbstractScrollArea::AdjustToContents</enum></property>
|
||||||
<property name="horizontalScrollBarPolicy"><enum>Qt::ScrollBarAlwaysOff</enum></property>
|
<property name="horizontalScrollBarPolicy"><enum>Qt::ScrollBarAlwaysOff</enum></property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"/>
|
||||||
|
</property>
|
||||||
|
|
||||||
<widget class="QWidget" name="item-container">
|
<widget class="QWidget" name="item-container">
|
||||||
<layout class="QVBoxLayout">
|
<layout class="QVBoxLayout">
|
||||||
@@ -139,13 +142,6 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item alignment="Qt::AlignTop">
|
|
||||||
<spacer name="vertical-spacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user