Constructs a full unicode path from a FSRef. */
| 274 | Constructs a full unicode path from a FSRef. |
| 275 | */ |
| 276 | static QString |
| 277 | getFullPath(const FSRef &ref) |
| 278 | { |
| 279 | QByteArray ba(2048, 0); |
| 280 | |
| 281 | if (FSRefMakePath( &ref, reinterpret_cast<UInt8 *>( ba.data() ), ba.size() ) == noErr) { |
| 282 | return QString::fromUtf8( ba.constData() ).normalized(QString::NormalizationForm_C); |
| 283 | } |
| 284 | |
| 285 | return QString(); |
| 286 | } |
| 287 | |
| 288 | |
| 289 | static QString |
no test coverage detected