ColumnDisplayFormatDialog: Adjusts the size of the widget.

This commit is contained in:
Nikolay Zlatev
2021-08-12 16:59:06 +03:00
parent 254df474e1
commit 183d8f7e34
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -105,6 +105,11 @@ ColumnDisplayFormatDialog::~ColumnDisplayFormatDialog()
delete ui;
}
void ColumnDisplayFormatDialog::showEvent(QShowEvent *)
{
adjustSize();
}
QString ColumnDisplayFormatDialog::selectedDisplayFormat() const
{
if(ui->comboDisplayFormat->currentData().toString() == "default")
+3
View File
@@ -25,6 +25,9 @@ public:
QString selectedDisplayFormat() const;
protected:
void showEvent(QShowEvent *) override;
private slots:
void updateSqlCode();
void accept() override;