Fix property dialog size

This commit is contained in:
reionwong 2021-09-20 23:29:48 +08:00
parent 84edf40876
commit 8418faf167
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ FilePropertiesDialog::~FilePropertiesDialog()
void FilePropertiesDialog::updateSize(int width, int height)
{
setBaseSize(QSize(width, height));
resize(QSize(width, height));
setMinimumSize(QSize(width, height));
setMaximumSize(QSize(width, height));
}

View file

@ -29,8 +29,8 @@ Item {
property int widthValue: _mainLayout.implicitWidth + FishUI.Units.largeSpacing * 4
property int heightValue: _mainLayout.implicitHeight + FishUI.Units.largeSpacing * 2
// width: widthValue
// height: heightValue
width: widthValue
height: heightValue
onWidthValueChanged: main.updateSize(widthValue, heightValue)
onHeightValueChanged: main.updateSize(widthValue, heightValue)