forked from qt-creator/qt-creator
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -316,7 +316,7 @@ bool FontSettings::loadColorScheme(const QString &fileName,
|
||||
|
||||
bool FontSettings::saveColorScheme(const QString &fileName)
|
||||
{
|
||||
const bool saved = m_scheme.save(fileName, Core::ICore::instance()->mainWindow());
|
||||
const bool saved = m_scheme.save(fileName, Core::ICore::mainWindow());
|
||||
if (saved)
|
||||
m_schemeFileName = fileName;
|
||||
return saved;
|
||||
@@ -357,7 +357,7 @@ int FontSettings::defaultFontSize()
|
||||
*/
|
||||
QString FontSettings::defaultSchemeFileName(const QString &fileName)
|
||||
{
|
||||
QString defaultScheme = Core::ICore::instance()->resourcePath();
|
||||
QString defaultScheme = Core::ICore::resourcePath();
|
||||
defaultScheme += QLatin1String("/styles/");
|
||||
|
||||
if (!fileName.isEmpty() && QFile::exists(defaultScheme + fileName))
|
||||
|
||||
Reference in New Issue
Block a user