OSDN Git Service

adjust to QVariantComparisonHelper removal
authorIvailo Monev <xakepa10@laimg.moc>
Thu, 23 May 2019 01:15:17 +0000 (01:15 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Thu, 23 May 2019 01:15:17 +0000 (01:15 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
scripts/namefsck.py
src/core/CMakeLists.txt
src/declarative/util/qdeclarativeanimation.cpp
src/network/access/qnetworkreplyimpl.cpp

index 2c9e519..ced7c46 100755 (executable)
@@ -809,7 +809,6 @@ classlist = {
     "QValidator",
     "QVariant",
     "QVariantAnimation",
-    "QVariantComparisonHelper",
     "QVariantHash",
     "QVariantList",
     "QVariantMap",
index 357c041..d4c97fd 100644 (file)
@@ -137,7 +137,6 @@ set(CORE_PUBLIC_HEADERS
     QFileInfoList
     QCoreApplication
     QRegExp
-    QVariantComparisonHelper
     QMetaObject
     QMapData
     QByteRef
index a6ad1fe..7eb8e8e 100644 (file)
@@ -1015,8 +1015,8 @@ QVariant QDeclarativePropertyAction::value() const
 void QDeclarativePropertyAction::setValue(const QVariant &v)
 {
     Q_D(QDeclarativePropertyAction);
-    if (d->value.isNull || d->value != v) {
-        d->value = v;
+    if (d->value.isNull || d->value.value != v) {
+        d->value.value = v;
         emit valueChanged(v);
     }
 }
index 73f24e2..3841a7e 100644 (file)
@@ -756,7 +756,7 @@ void QNetworkReplyImplPrivate::finished()
             state == Working && errorCode != QNetworkReply::OperationCanceledError) {
             // only content with a known size will fail with a temporary network failure error
             if (!totalSize.isNull()) {
-                if (bytesDownloaded != totalSize) {
+                if (QVariant(bytesDownloaded) != totalSize) {
                     if (migrateBackend()) {
                         // either we are migrating or the request is finished/aborted
                         if (state == Reconnecting || state == WaitingForSession) {
@@ -789,7 +789,7 @@ void QNetworkReplyImplPrivate::finished()
     resumeNotificationHandling();
 
     // if we don't know the total size of or we received everything save the cache
-    if (totalSize.isNull() || totalSize == -1 || bytesDownloaded == totalSize)
+    if (totalSize.isNull() || totalSize == -1 || QVariant(bytesDownloaded) == totalSize)
         completeCacheSave();
 
     // note: might not be a good idea, since users could decide to delete us