qt: File fields are no longer cramped

This commit is contained in:
Cacodemon345
2022-02-10 01:38:00 +06:00
parent 9a75453216
commit e499702550
2 changed files with 2 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ FileField::FileField(QWidget *parent) :
fileName_ = ui->label->text();
emit fileSelected(ui->label->text());
});
this->setFixedWidth(this->sizeHint().width() + ui->pushButton->sizeHint().width());
}
FileField::~FileField()

View File

@@ -35,7 +35,7 @@
<item>
<widget class="QLineEdit" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>