forked from qt-creator/qt-creator
Theme: Remove unused ThemeSettings
Change-Id: I5f3ee8f5afa2ef8618d9a43a10e37a30f771d0af Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
64c552f555
commit
111a230659
@@ -120,7 +120,7 @@ void CorePlugin::parseArguments(const QStringList &arguments)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
const QList<ThemeEntry> availableThemes = ThemeSettings::availableThemes();
|
||||
const QList<ThemeEntry> availableThemes = ThemeEntry::availableThemes();
|
||||
int themeIndex = Utils::indexOf(availableThemes, Utils::equal(&ThemeEntry::id, themeId));
|
||||
if (themeIndex < 0) {
|
||||
themeIndex = Utils::indexOf(availableThemes,
|
||||
@@ -151,7 +151,7 @@ void CorePlugin::parseArguments(const QStringList &arguments)
|
||||
|
||||
bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
{
|
||||
if (ThemeSettings::availableThemes().isEmpty()) {
|
||||
if (ThemeEntry::availableThemes().isEmpty()) {
|
||||
*errorMessage = tr("No themes found in installation.");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user