MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / openContainingFolder

Method openContainingFolder

gui/resultstree.cpp:1038–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038void ResultsTree::openContainingFolder()
1039{
1040 if (!mContextItem)
1041 return;
1042 QString filePath = mContextItem->getErrorPathItem().file;
1043 if (!filePath.isEmpty()) {
1044 filePath = QFileInfo(filePath).absolutePath();
1045 QDesktopServices::openUrl(QUrl::fromLocalFile(filePath));
1046 }
1047}
1048
1049void ResultsTree::tagSelectedItems(const QString &tag)
1050{

Callers

nothing calls this directly

Calls 2

getErrorPathItemMethod · 0.80
isEmptyMethod · 0.80

Tested by

no test coverage detected