Skip to content

Commit 8b88e03

Browse files
YoannQDQnyalldawson
authored andcommittedMar 23, 2023
Fix widget minimum height
1 parent 474feb1 commit 8b88e03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/gui/qgsrasterformatsaveoptionswidget.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ QgsRasterFormatSaveOptionsWidget::QgsRasterFormatSaveOptionsWidget( QWidget *par
4343
, mProvider( provider )
4444
{
4545
setupUi( this );
46-
setMinimumSize( this->fontMetrics().height() * 5, 240 );
46+
47+
// Set the table minimum size to fit at least 4 rows
48+
mOptionsTable->setMinimumSize(200, mOptionsTable->verticalHeader()->defaultSectionSize() * 4 + mOptionsTable->horizontalHeader()->height() + 2 );
4749

4850
connect( mProfileNewButton, &QPushButton::clicked, this, &QgsRasterFormatSaveOptionsWidget::mProfileNewButton_clicked );
4951
connect( mProfileDeleteButton, &QPushButton::clicked, this, &QgsRasterFormatSaveOptionsWidget::mProfileDeleteButton_clicked );

0 commit comments

Comments
 (0)
Please sign in to comment.