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