Replace KUrl with QUrl in theme.h/cpp
Reviewed by: Aaron Seigo
This commit is contained in:
parent
c14e1649ee
commit
729988ffb1
@ -1051,12 +1051,12 @@ void Theme::setCacheLimit(int kbytes)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KUrl Theme::homepage() const
|
QUrl Theme::homepage() const
|
||||||
{
|
{
|
||||||
const QString metadataPath(KStandardDirs::locate("data", QLatin1Literal("desktoptheme/") % d->themeName % QLatin1Literal("/metadata.desktop")));
|
const QString metadataPath(KStandardDirs::locate("data", QLatin1Literal("desktoptheme/") % d->themeName % QLatin1Literal("/metadata.desktop")));
|
||||||
KConfig metadata(metadataPath);
|
KConfig metadata(metadataPath);
|
||||||
KConfigGroup brandConfig(&metadata, "Branding");
|
KConfigGroup brandConfig(&metadata, "Branding");
|
||||||
return brandConfig.readEntry("homepage", KUrl("http://www.kde.org"));
|
return brandConfig.readEntry("homepage", QUrl("http://www.kde.org"));
|
||||||
}
|
}
|
||||||
|
|
||||||
int Theme::toolTipDelay() const
|
int Theme::toolTipDelay() const
|
||||||
|
2
theme.h
2
theme.h
@ -352,7 +352,7 @@ class PLASMA_EXPORT Theme : public QObject
|
|||||||
* @return the default homepage to use in conjunction with the branding svg content
|
* @return the default homepage to use in conjunction with the branding svg content
|
||||||
* @since 4.7
|
* @since 4.7
|
||||||
*/
|
*/
|
||||||
KUrl homepage() const;
|
QUrl homepage() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the default tool tip delay; -1 means "no tooltips"
|
* @return the default tool tip delay; -1 means "no tooltips"
|
||||||
|
Loading…
Reference in New Issue
Block a user