Changeset View
Changeset View
Standalone View
Standalone View
kcms/kfontinst/kcmfontinst/FontsPackage.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 64 | { | |||
---|---|---|---|---|---|
72 | 72 | | |||
73 | QString name(entry->name()); | 73 | QString name(entry->name()); | ||
74 | 74 | | |||
75 | // | 75 | // | ||
76 | // Cant install hidden fonts, therefore need to | 76 | // Cant install hidden fonts, therefore need to | ||
77 | // unhide 1st! | 77 | // unhide 1st! | ||
78 | if(Misc::isHidden(name)) | 78 | if(Misc::isHidden(name)) | ||
79 | { | 79 | { | ||
80 | ::rename(QFile::encodeName((*tempDir)->path()+QLatin1Char('/')+name).data(), | 80 | ::rename(QFile::encodeName((*tempDir)->filePath(name)).data(), | ||
81 | QFile::encodeName((*tempDir)->path()+QLatin1Char('/')+name.mid(1)).data()); | 81 | QFile::encodeName((*tempDir)->filePath(name.mid(1))).data()); | ||
82 | name=name.mid(1); | 82 | name=name.mid(1); | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | urls.insert(QUrl((*tempDir)->path()+QLatin1Char('/')+name)); | 85 | urls.insert(QUrl((*tempDir)->filePath(name))); | ||
86 | } | 86 | } | ||
87 | } | 87 | } | ||
88 | } | 88 | } | ||
89 | } | 89 | } | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | return urls; | 92 | return urls; | ||
93 | } | 93 | } | ||
94 | 94 | | |||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | } | 97 | } |