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

Method StandardPathsWidget

plugins/sysinfo/standardpathswidget.cpp:97–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97StandardPathsWidget::StandardPathsWidget(QWidget *parent)
98 : QWidget(parent)
99 , ui(new Ui::StandardPathsWidget)
100 , m_stateManager(this)
101{
102 ui->setupUi(this);
103
104 auto *proxy = new StandardPathsProxy(this);
105 proxy->setSourceModel(ObjectBroker::model(QStringLiteral(
106 "com.kdab.GammaRay.StandardPathsModel")));
107
108 ui->pathView->header()->setObjectName("pathViewHeader");
109 ui->pathView->setUniformRowHeights(false);
110 ui->pathView->setDeferredResizeMode(0, QHeaderView::ResizeToContents);
111 ui->pathView->setDeferredResizeMode(1, QHeaderView::ResizeToContents);
112 ui->pathView->setDeferredHidden(3, true);
113 ui->pathView->setItemDelegateForColumn(2, new StandardPathsDelegate(this));
114 ui->pathView->setModel(proxy);
115}
116
117StandardPathsWidget::~StandardPathsWidget() = default;
118

Callers

nothing calls this directly

Calls 4

setDeferredResizeModeMethod · 0.80
setDeferredHiddenMethod · 0.80
setSourceModelMethod · 0.45
setModelMethod · 0.45

Tested by

no test coverage detected