forked from qt-creator/qt-creator
Core: Don't offer QDS themes in QtC and vice versa
Change-Id: I62d44e6fbff1d9dbbe27d36172d29d9576e1df62 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -176,9 +176,7 @@ static void addThemesFromPath(const QString &path, QList<ThemeEntry> *themes)
|
|||||||
const QStringList themeList = themeDir.entryList();
|
const QStringList themeList = themeDir.entryList();
|
||||||
for (const QString &fileName : std::as_const(themeList)) {
|
for (const QString &fileName : std::as_const(themeList)) {
|
||||||
QString id = QFileInfo(fileName).completeBaseName();
|
QString id = QFileInfo(fileName).completeBaseName();
|
||||||
bool addTheme = true;
|
const bool addTheme = Core::ICore::isQtDesignStudio() == id.startsWith("design");
|
||||||
if (Core::ICore::isQtDesignStudio())
|
|
||||||
addTheme = id.startsWith("design");
|
|
||||||
if (addTheme)
|
if (addTheme)
|
||||||
themes->append(ThemeEntry(Id::fromString(id), themeDir.absoluteFilePath(fileName)));
|
themes->append(ThemeEntry(Id::fromString(id), themeDir.absoluteFilePath(fileName)));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user