Skip to content

Commit caebcd3

Browse files
committed
Fix sizing issue on Qt5
1 parent 6086f15 commit caebcd3

File tree

2 files changed

+15
-27
lines changed

2 files changed

+15
-27
lines changed

mainwindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ void MainWindow::adjustExpansion(bool allowExpand) {
129129
ui->grpDest->adjustSize();
130130

131131
if(inExp || outExp) {
132-
this->setMaximumHeight(16777216);
133-
ui->scrollArea->setMaximumHeight(16777216);
132+
this->setMaximumHeight(16777215);
133+
ui->scrollArea->setMaximumHeight(16777215);
134134

135135
if(allowExpand) {
136136
// TODO: detect screen height and restrict resize?

mainwindow.ui

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<rect>
5454
<x>0</x>
5555
<y>0</y>
56-
<width>577</width>
56+
<width>578</width>
5757
<height>599</height>
5858
</rect>
5959
</property>
@@ -79,6 +79,12 @@
7979
<bool>false</bool>
8080
</property>
8181
<widget class="SourceFileFrame" name="stkSource">
82+
<property name="sizePolicy">
83+
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
84+
<horstretch>0</horstretch>
85+
<verstretch>100</verstretch>
86+
</sizepolicy>
87+
</property>
8288
<property name="acceptDrops">
8389
<bool>true</bool>
8490
</property>
@@ -554,18 +560,6 @@
554560
<property name="enabled">
555561
<bool>false</bool>
556562
</property>
557-
<property name="minimumSize">
558-
<size>
559-
<width>0</width>
560-
<height>90</height>
561-
</size>
562-
</property>
563-
<property name="maximumSize">
564-
<size>
565-
<width>16777215</width>
566-
<height>120</height>
567-
</size>
568-
</property>
569563
<property name="title">
570564
<string>Source Data</string>
571565
</property>
@@ -639,18 +633,6 @@
639633
<property name="enabled">
640634
<bool>false</bool>
641635
</property>
642-
<property name="minimumSize">
643-
<size>
644-
<width>0</width>
645-
<height>120</height>
646-
</size>
647-
</property>
648-
<property name="maximumSize">
649-
<size>
650-
<width>16777215</width>
651-
<height>120</height>
652-
</size>
653-
</property>
654636
<property name="title">
655637
<string>Recovery Data</string>
656638
</property>
@@ -748,6 +730,12 @@
748730
</layout>
749731
</widget>
750732
<widget class="QGroupBox" name="grpDest">
733+
<property name="sizePolicy">
734+
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
735+
<horstretch>0</horstretch>
736+
<verstretch>50</verstretch>
737+
</sizepolicy>
738+
</property>
751739
<property name="title">
752740
<string>Recovery/Output Files</string>
753741
</property>

0 commit comments

Comments
 (0)