MCPcopy Create free account
hub / github.com/KDE/kdevelop / EnvironmentSelectionWidget

Method EnvironmentSelectionWidget

kdevplatform/util/environmentselectionwidget.cpp:37–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37EnvironmentSelectionWidget::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
53EnvironmentSelectionWidget::~EnvironmentSelectionWidget() = default;
54

Callers

nothing calls this directly

Calls 2

QStringClass · 0.70
addWidgetMethod · 0.45

Tested by

no test coverage detected