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

Method on_openLocation_clicked

qrenderdoc/Windows/Dialogs/ExtensionManager.cpp:131–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void ExtensionManager::on_openLocation_clicked()
132{
133 if(m_Extensions.empty())
134 {
135 QDesktopServices::openUrl(QString(ConfigFilePath("extensions")));
136 return;
137 }
138
139 RDTreeWidgetItem *item = ui->extensions->currentItem();
140 if(!item)
141 return;
142
143 int idx = ui->extensions->indexOfTopLevelItem(item);
144
145 if(idx >= 0 && idx < m_Extensions.count())
146 {
147 const ExtensionMetadata &e = m_Extensions[idx];
148 if(!e.name.isEmpty())
149 {
150 QDesktopServices::openUrl(QFileInfo(e.filePath).absoluteFilePath());
151 }
152 }
153}
154
155void ExtensionManager::on_alwaysLoad_toggled(bool checked)
156{

Callers

nothing calls this directly

Calls 8

currentItemMethod · 0.80
indexOfTopLevelItemMethod · 0.80
QStringFunction · 0.50
ConfigFilePathFunction · 0.50
QFileInfoClass · 0.50
emptyMethod · 0.45
countMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected