replaced QByteArray with a QString, using a QByteArray could be dangerous and also Qt uses a QString.
If we use a QByteArray we do something like this: QString -> QByteArray -> QString. CCMAIL: aseigo@kde.org svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821509
This commit is contained in:
parent
fa1cd976ad
commit
289941dece
@ -62,7 +62,7 @@ void WebContent::setUrl(const QUrl &url)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContent::setHtml(const QByteArray &html, const QUrl &baseUrl)
|
void WebContent::setHtml(const QString &html, const QUrl &baseUrl)
|
||||||
{
|
{
|
||||||
d->loaded = false;
|
d->loaded = false;
|
||||||
if (d->page) {
|
if (d->page) {
|
||||||
|
@ -55,7 +55,7 @@ class PLASMA_EXPORT WebContent : public QGraphicsWidget
|
|||||||
* @param html the html to display in the content area
|
* @param html the html to display in the content area
|
||||||
* @param baseUrl the base url for relative references
|
* @param baseUrl the base url for relative references
|
||||||
*/
|
*/
|
||||||
void setHtml(const QByteArray &html, const QUrl &baseUrl = QUrl());
|
void setHtml(const QString &html, const QUrl &baseUrl = QUrl());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reimplementation
|
* Reimplementation
|
||||||
|
Loading…
Reference in New Issue
Block a user