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
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 dialog80 // 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);