Skip to content

Commit

Permalink
MacOS ui fix
Browse files Browse the repository at this point in the history
Attempt 2 at MacOS ui fix
  • Loading branch information
pekempy authored Jun 9, 2021
1 parent ed378e2 commit 39dce56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ MainWindow::MainWindow(QWidget *parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);

QFormLayout * centralWidget = ui->formLayout;
centralWidget->setFieldGrowthPolicy(QFormLayout::ExpandingFieldsGrow);

//restrict date input to YYYY-MM-DD.
QRegularExpression re("^\\d{4}[\\-\\/\\s]?((((0[13578])|(1[02]))[\\-\\/\\s]?(([0-2][0-9])|(3[01])))|(((0[469])|(11))[\\-\\/\\s]?(([0-2][0-9])|(30)))|(02[\\-\\/\\s]?[0-2][0-9]))$");
Expand Down

0 comments on commit 39dce56

Please sign in to comment.