| 71 | } |
| 72 | |
| 73 | void 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 | |
| 89 | QSpinBox* OptionsWidget::AddOptionInt(int* option, |
| 90 | const std::string& label_text, |
nothing calls this directly
no outgoing calls
no test coverage detected