MCPcopy Create free account
hub / github.com/KDAB/GammaRay / NetworkConfigurationWidget

Method NetworkConfigurationWidget

plugins/network/networkconfigurationwidget.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using namespace GammaRay;
23
24NetworkConfigurationWidget::NetworkConfigurationWidget(QWidget *parent)
25 : QWidget(parent)
26 , ui(new Ui::NetworkConfigurationWidget)
27{
28 ui->setupUi(this);
29 auto srcModel = ObjectBroker::model(QStringLiteral("com.kdab.GammaRay.NetworkConfigurationModel"));
30 auto model = new ClientNetworkConfigurationModel(this);
31 model->setSourceModel(srcModel);
32 ui->networkConfigView->setModel(model);
33 ui->networkConfigView->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
34
35 new SearchLineController(ui->searchLine, model);
36}
37
38NetworkConfigurationWidget::~NetworkConfigurationWidget() = default;

Callers

nothing calls this directly

Calls 2

setSourceModelMethod · 0.45
setModelMethod · 0.45

Tested by

no test coverage detected