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:
Davide Bettio 2008-06-17 16:42:48 +00:00
parent fa1cd976ad
commit 289941dece
2 changed files with 2 additions and 2 deletions

View File

@ -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;
if (d->page) {

View File

@ -55,7 +55,7 @@ class PLASMA_EXPORT WebContent : public QGraphicsWidget
* @param html the html to display in the content area
* @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