mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
remove another QRC hack in QDeclarativeTypeLoader::absoluteFilePath()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e4fe76e90d
commit
bbd58c97cc
1 changed files with 1 additions and 5 deletions
|
@ -747,12 +747,8 @@ Returns a empty string if the path does not exist.
|
|||
*/
|
||||
QString QDeclarativeTypeLoader::absoluteFilePath(const QString &path)
|
||||
{
|
||||
if (path.isEmpty())
|
||||
if (path.isEmpty()) {
|
||||
return QString();
|
||||
if (path.at(0) == QLatin1Char(':')) {
|
||||
// qrc resource
|
||||
QFileInfo fileInfo(path);
|
||||
return fileInfo.isFile() ? fileInfo.absoluteFilePath() : QString();
|
||||
}
|
||||
|
||||
int lastSlash = path.lastIndexOf(QLatin1Char('/'));
|
||||
|
|
Loading…
Add table
Reference in a new issue