MCPcopy Create free account
hub / github.com/baldurk/renderdoc / ConfigEditor

Method ConfigEditor

qrenderdoc/Windows/Dialogs/ConfigEditor.cpp:690–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690ConfigEditor::ConfigEditor(QWidget *parent) : QDialog(parent), ui(new Ui::ConfigEditor)
691{
692 ui->setupUi(this);
693 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
694
695 m_Config = RENDERDOC_SetConfigSetting("");
696
697 m_SettingModel = new SettingModel(this);
698 m_FilterModel = new SettingFilterModel(this);
699
700 m_FilterModel->setSourceModel(m_SettingModel);
701 ui->settings->setModel(m_FilterModel);
702
703 {
704 RDHeaderView *header = new RDHeaderView(Qt::Horizontal, ui->settings);
705 ui->settings->setHeader(header);
706
707 header->setColumnStretchHints({-1, 1, -1});
708 }
709
710 ui->settings->setItemDelegate(new SettingDelegate(this, ui->settings));
711}
712
713ConfigEditor::~ConfigEditor()
714{

Callers

nothing calls this directly

Calls 3

setColumnStretchHintsMethod · 0.80
setModelMethod · 0.45
setItemDelegateMethod · 0.45

Tested by

no test coverage detected