Ticket #287: capitalize-drive-letter.diff

File capitalize-drive-letter.diff, 658 bytes (added by KO Myung-Hun, 7 years ago)

Capitalize a drive letter

  • src/gui/dialogs/qfilesystemmodel.cpp

     
    363363    else
    364364        absolutePath = QDir(longPath).absolutePath();
    365365
     366#ifdef Q_OS_OS2
     367    absolutePath[0] = absolutePath.at(0).toUpper(); // capital drive letters
     368#endif
     369
    366370    QStringList pathElements = absolutePath.split(QLatin1Char('/'), QString::SkipEmptyParts);
    367371    if ((pathElements.isEmpty())
    368372#if (!defined(Q_OS_WIN) || defined(Q_OS_WINCE)) && !defined(Q_OS_SYMBIAN) && !defined(Q_OS_OS2)