Kaynağa Gözat

QList<T> QSet<T>::toList() const [with T = const FSNode*]’ is deprecated: Use values() instead

Donald Carr 5 yıl önce
ebeveyn
işleme
757112b563
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/picturemodel.cpp

+ 1 - 1
src/picturemodel.cpp

@@ -141,7 +141,7 @@ FSNodeTree::~FSNodeTree()
             node = node->parent;
         }
     }
-    qDeleteAll(nodes.toList());
+    qDeleteAll(nodes.values());
 }
 
 void FSNodeTree::addModelNode(const FSNode* parentNode)