Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.10.0-beta2, Qt Creator 4.11.0-beta1
-
None
-
64d2965e29b0583030848bf8c82f76e1dc7e0ec8 (qt-creator/qt-creator/4.10)
Description
src/libs/utils/mimetypes/mimeprovider.cpp
// const QStringList packageDirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QLatin1String("mime/packages"), QStandardPaths::LocateDirectory); // //qDebug() << "packageDirs=" << packageDirs; // for (const QString &packageDir : packageDirs) { // QDir dir(packageDir); // const QStringList files = dir.entryList(QDir::Files | QDir::NoDotAndDotDot); // //qDebug() << static_cast<const void *>(this) << packageDir << files; // if (!fdoXmlFound) // fdoXmlFound = files.contains(QLatin1String("freedesktop.org.xml")); // QStringList::const_iterator endIt(files.constEnd()); // for (QStringList::const_iterator it(files.constBegin()); it != endIt; ++it) { // allFiles.append(packageDir + QLatin1Char('/') + *it); // } // } // if (!fdoXmlFound) { // // We could instead install the file as part of installing Qt? const char freedesktopOrgXml[] = ":/qt-project.org/qmime/packages/freedesktop.org.xml"; allFiles.prepend(QLatin1String(freedesktopOrgXml));
This is referring to private content that I am removing from Qt. Please find another way of getting the database.
Why don't you use QMimeDatabase?
Attachments
For Gerrit Dashboard: QTCREATORBUG-22636 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
266569,6 | Cope with Qt 5.14's dropping of the MIME type DB as a resource | 4.10 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
266704,3 | Re-fix QtCore resource path changing and prepare for Qt 5.13 | 4.9 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |