Skip to content

Commit

Permalink
ColumnDisplayFormatDialog: Adjusts the size of the widget.
Browse files Browse the repository at this point in the history
  • Loading branch information
sandman7920 committed Aug 12, 2021
1 parent 254df47 commit 183d8f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ColumnDisplayFormatDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ ColumnDisplayFormatDialog::~ColumnDisplayFormatDialog()
delete ui;
}

void ColumnDisplayFormatDialog::showEvent(QShowEvent *)
{
adjustSize();
}

QString ColumnDisplayFormatDialog::selectedDisplayFormat() const
{
if(ui->comboDisplayFormat->currentData().toString() == "default")
Expand Down
3 changes: 3 additions & 0 deletions src/ColumnDisplayFormatDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class ColumnDisplayFormatDialog : public QDialog

QString selectedDisplayFormat() const;

protected:
void showEvent(QShowEvent *) override;

private slots:
void updateSqlCode();
void accept() override;
Expand Down

0 comments on commit 183d8f7

Please sign in to comment.