History

thread safe timing of domain connection

Stephen Birarda committed 11 years ago

Commit 9cb6cca1 parent 08affbf3 files · +14 −5Browse files

Showing the changes to interface/src/ui/DomainConnectionDialog.cpp (1 of 3 files). Show all

Unified · Split

interface/src/ui/DomainConnectionDialog.cpp+3−1
@@ -69,11 +69,12 @@ DomainConnectionDialog::DomainConnectionDialog(QWidget* parent) : · 68 unmodified lines
6969 }
7070 }
7171
72+ // setup a horizontal box layout
7273 QHBoxLayout* hBoxLayout = new QHBoxLayout;
7374 hBoxLayout->addWidget(timeTable);
7475 hBoxLayout->setSizeConstraint(QLayout::SetMinimumSize);
7576
76− timeTable->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
77+ // resize the table columns
7778 timeTable->resizeColumnsToContents();
7879
7980 // figure out the size of the table so we can size the dialog
@@ -87,6 +88,7 @@ DomainConnectionDialog::DomainConnectionDialog(QWidget* parent) : · 7 unmodified lines
8788 tableHeight += timeTable->rowHeight(i);
8889 }
8990
91+ // set the minimum size of the table to whatever we got
9092 timeTable->setMinimumSize(tableWidth, tableHeight);
9193
9294 setLayout(hBoxLayout);