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

Method lastPathSegment

kdevplatform/util/path.cpp:303–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303QString Path::lastPathSegment() const
304{
305 // remote Paths are offset by one, thus never return the first item of them as file name
306 if (m_data.isEmpty() || (!isLocalFile() && m_data.size() == 1)) {
307 return QString();
308 }
309 return m_data.last();
310}
311
312void Path::setLastPathSegment(const QString& name)
313{

Callers 15

initProjectFilesMethod · 0.80
projectNameUsedMethod · 0.80
renameMethod · 0.80
setPathMethod · 0.80
ProjectFolderItemMethod · 0.80
ProjectFileItemMethod · 0.80
iconNameForPathMethod · 0.80
projectFileMethod · 0.80
testPathMethod · 0.80
dropEventMethod · 0.80
mapSourceToDestinationFunction · 0.80
highlightingMethod · 0.80

Calls 4

QStringClass · 0.70
isEmptyMethod · 0.45
sizeMethod · 0.45
lastMethod · 0.45

Tested by 5

projectFileMethod · 0.64
testPathMethod · 0.64
defaultConfigureFunction · 0.64
testQt6AppMethod · 0.64
testKF6AppMethod · 0.64