Replace KUrl with QUrl in theme.h/cpp

Reviewed by: Aaron Seigo
This commit is contained in:
Giorgos Tsiapaliwkas 2012-02-18 12:13:54 +02:00
parent c14e1649ee
commit 729988ffb1
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"