Showing the changes to interface/src/ui/DomainConnectionDialog.cpp (1 of 3 files). Show all
Unified · Split
| @@ -69,11 +69,12 @@ DomainConnectionDialog::DomainConnectionDialog(QWidget* parent) : · 68 unmodified lines | |||
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | // setup a horizontal box layout | ||
| 72 | QHBoxLayout* hBoxLayout = new QHBoxLayout; | 73 | QHBoxLayout* hBoxLayout = new QHBoxLayout; |
| 73 | hBoxLayout->addWidget(timeTable); | 74 | hBoxLayout->addWidget(timeTable); |
| 74 | hBoxLayout->setSizeConstraint(QLayout::SetMinimumSize); | 75 | hBoxLayout->setSizeConstraint(QLayout::SetMinimumSize); |
| 75 | 76 | ||
| 76 | timeTable->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); | 77 | // resize the table columns |
| 77 | timeTable->resizeColumnsToContents(); | 78 | timeTable->resizeColumnsToContents(); |
| 78 | 79 | ||
| 79 | // figure out the size of the table so we can size the dialog | 80 | // figure out the size of the table so we can size the dialog |
| @@ -87,6 +88,7 @@ DomainConnectionDialog::DomainConnectionDialog(QWidget* parent) : · 7 unmodified lines | |||
| 87 | tableHeight += timeTable->rowHeight(i); | 88 | tableHeight += timeTable->rowHeight(i); |
| 88 | } | 89 | } |
| 89 | 90 | ||
| 91 | // set the minimum size of the table to whatever we got | ||
| 90 | timeTable->setMinimumSize(tableWidth, tableHeight); | 92 | timeTable->setMinimumSize(tableWidth, tableHeight); |
| 91 | 93 | ||
| 92 | setLayout(hBoxLayout); | 94 | setLayout(hBoxLayout); |