| 35 | }; |
| 36 | |
| 37 | EnvironmentSelectionWidget::EnvironmentSelectionWidget(QWidget* parent) |
| 38 | : QWidget(parent) |
| 39 | , d_ptr(new EnvironmentSelectionWidgetPrivate(this)) |
| 40 | { |
| 41 | Q_D(EnvironmentSelectionWidget); |
| 42 | |
| 43 | setLayout(new QHBoxLayout(this)); |
| 44 | layout()->addWidget(d->comboBox); |
| 45 | layout()->setContentsMargins(0, 0, 0, 0); |
| 46 | |
| 47 | setCurrentProfile(QString()); // select the default profile |
| 48 | |
| 49 | connect(d->comboBox, &QComboBox::currentTextChanged, |
| 50 | this, &EnvironmentSelectionWidget::currentProfileChanged); |
| 51 | } |
| 52 | |
| 53 | EnvironmentSelectionWidget::~EnvironmentSelectionWidget() = default; |
| 54 | |