MCPcopy Create free account
hub / github.com/KDE/labplot / absolutePath

Method absolutePath

src/frontend/datasources/ImportFileWidget.cpp:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77QString ImportFileWidget::absolutePath(const QString& fileName) {
78 if (fileName.isEmpty())
79 return fileName;
80
81#ifdef HAVE_WINDOWS
82 if (fileName.size() == 1 || (fileName.at(0) != QLatin1Char('/') && fileName.at(1) != QLatin1Char(':')))
83#else
84 if (fileName.at(0) != QLatin1Char('/'))
85#endif
86 return QDir::homePath() + QLatin1Char('/') + fileName;
87
88 return fileName;
89}
90
91/*!
92 \class ImportFileWidget

Callers 2

setUpdateTypeMethod · 0.80
readOnUpdateMethod · 0.80

Calls 2

isEmptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected