| 95 | } |
| 96 | |
| 97 | StandardPathsWidget::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 | |
| 117 | StandardPathsWidget::~StandardPathsWidget() = default; |
| 118 |
nothing calls this directly
no test coverage detected