浏览代码

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

Donald Carr 5 年之前
父节点
当前提交
757112b563
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)