diff --git a/src/widgets/graphicsview/qgraph_p.h b/src/widgets/graphicsview/qgraph_p.h index 1314f6ab36..53701764de 100644 --- a/src/widgets/graphicsview/qgraph_p.h +++ b/src/widgets/graphicsview/qgraph_p.h @@ -56,6 +56,8 @@ #include #include +#include // for std::less + #include QT_BEGIN_NAMESPACE @@ -213,9 +215,8 @@ public: Vertex *from = it.from(); Vertex *to = it.to(); // do not return (from,to) *and* (to,from) - if (from < to) { + if (std::less()(from, to)) conns.append(qMakePair(from, to)); - } } return conns; }