QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
d5c074f80d
commit
cd2db00f22
@@ -80,7 +80,7 @@ openBrowserHTML(PyObject *self, PyObject *args)
|
||||
WebGui::BrowserView* pcBrowserView = 0;
|
||||
pcBrowserView = new WebGui::BrowserView(Gui::getMainWindow());
|
||||
pcBrowserView->resize(400, 300);
|
||||
pcBrowserView->setHtml(QString::fromUtf8(HtmlCode),QUrl(QString::fromAscii(BaseUrl)),QString::fromUtf8(TabName));
|
||||
pcBrowserView->setHtml(QString::fromUtf8(HtmlCode),QUrl(QString::fromLatin1(BaseUrl)),QString::fromUtf8(TabName));
|
||||
Gui::getMainWindow()->addWindow(pcBrowserView);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
|
||||
void load(const char* URL);
|
||||
void load(const QUrl & url);
|
||||
void setHtml(const QString& HtmlCode,const QUrl & BaseUrl,const QString& TabName=QString::fromAscii("Browser"));
|
||||
void setHtml(const QString& HtmlCode,const QUrl & BaseUrl,const QString& TabName=QString::fromLatin1("Browser"));
|
||||
void stop(void);
|
||||
|
||||
void OnChange(Base::Subject<const char*> &rCaller,const char* rcReason);
|
||||
|
||||
Reference in New Issue
Block a user