qt: File fields are no longer cramped
This commit is contained in:
@@ -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()
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user