MCPcopy Create free account
hub / github.com/KDE/kdevelop / pathFromIndex

Method pathFromIndex

kdevplatform/project/projectitemlineedit.cpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81QString ProjectItemCompleter::pathFromIndex(const QModelIndex& index) const
82{
83 QString postfix;
84 if(mModel->itemFromIndex(index)->folder())
85 postfix=sep;
86 return KDevelop::joinWithEscaping(removeProjectBasePath( mModel->pathFromIndex(index), mBase ), sep, escape)+postfix;
87}
88
89
90ProjectItemValidator::ProjectItemValidator(QObject* parent): QValidator(parent)

Callers 1

selectItemDialogMethod · 0.45

Calls 4

joinWithEscapingFunction · 0.85
removeProjectBasePathFunction · 0.85
folderMethod · 0.80
itemFromIndexMethod · 0.45

Tested by

no test coverage detected