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

Method AddWidgetRow

src/colmap/ui/options_widget.cc:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void OptionsWidget::AddWidgetRow(const std::string& label_text,
61 QWidget* widget) {
62 QLabel* label = new QLabel(tr(label_text.c_str()), this);
63 label->setFont(font());
64 label->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
65 grid_layout_->addWidget(label, grid_layout_->rowCount(), 0);
66
67 widget->setFont(font());
68 grid_layout_->addWidget(widget, grid_layout_->rowCount() - 1, 1);
69
70 widget_rows_.emplace(widget, std::make_pair(label, widget));
71}
72
73void OptionsWidget::AddLayoutRow(const std::string& label_text,
74 QLayout* layout) {

Callers 1

CreateGeneralOptionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected