MCPcopy Create free account
hub / github.com/colmap/colmap / AddLayoutRow

Method AddLayoutRow

src/colmap/ui/options_widget.cc:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void OptionsWidget::AddLayoutRow(const std::string& label_text,
74 QLayout* layout) {
75 QLabel* label = new QLabel(tr(label_text.c_str()), this);
76 label->setFont(font());
77 label->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
78 grid_layout_->addWidget(label, grid_layout_->rowCount(), 0);
79
80 QWidget* layout_widget = new QWidget(this);
81 layout_widget->setLayout(layout);
82 layout->setContentsMargins(0, 0, 0, 0);
83
84 grid_layout_->addWidget(layout_widget, grid_layout_->rowCount() - 1, 1);
85
86 layout_rows_.emplace(layout, std::make_pair(label, layout_widget));
87}
88
89QSpinBox* OptionsWidget::AddOptionInt(int* option,
90 const std::string& label_text,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected