| 58 | } |
| 59 | |
| 60 | void 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 | |
| 73 | void OptionsWidget::AddLayoutRow(const std::string& label_text, |
| 74 | QLayout* layout) { |
no outgoing calls
no test coverage detected