fromAscii is deprecated in qt5
authorkoda
Tue, 16 Jul 2013 11:14:27 +0200
changeset 9357 a501f5ec7b34
parent 9353 3694d354289e
child 9431 0f5961910e27
fromAscii is deprecated in qt5
QTfrontend/ui/dialog/upload_video.cpp
QTfrontend/ui/page/pagevideos.cpp
--- a/QTfrontend/ui/dialog/upload_video.cpp	Tue Jul 16 11:14:03 2013 +0200
+++ b/QTfrontend/ui/dialog/upload_video.cpp	Tue Jul 16 11:14:27 2013 +0200
@@ -291,7 +291,7 @@
     QNetworkReply *reply = (QNetworkReply*)sender();
     reply->deleteLater();
 
-    location = QString::fromAscii(reply->rawHeader("Location"));
+    location = QString::fromLatin1(reply->rawHeader("Location"));
     if (location.isEmpty())
     {
         QString errorStr = QMessageBox::tr("Error while sending metadata to youtube.com:\n");
--- a/QTfrontend/ui/page/pagevideos.cpp	Tue Jul 16 11:14:03 2013 +0200
+++ b/QTfrontend/ui/page/pagevideos.cpp	Tue Jul 16 11:14:27 2013 +0200
@@ -845,7 +845,7 @@
     for (int i = 0; i < array.size(); i++)
         array[i] = array[i] ^ 0xC4 ^ i;
     array = array.toBase64();
-    return QString::fromAscii(array.data());
+    return QString::fromLatin1(array.data());
 }
 
 static QString unprotectPass(QString str)