More tests

This commit is contained in:
Joey Yakimowich-Payne 2026-02-06 11:07:01 -07:00
commit 69d9a9e3f1
5 changed files with 742 additions and 27 deletions

View file

@ -9,8 +9,6 @@
#include <QScrollBar>
#include <QWheelEvent>
#include <QtNodes/internal/ConnectionGraphicsObject.hpp>
#include <cmath>
class ZoomGraphicsView : public QtNodes::GraphicsView {
@ -41,8 +39,7 @@ public:
auto cacheMode = highZoom ? QGraphicsItem::DeviceCoordinateCache
: QGraphicsItem::NoCache;
for (QGraphicsItem *item : scene()->items()) {
if (item->type() == QGraphicsProxyWidget::Type ||
item->type() == QtNodes::ConnectionGraphicsObject::Type)
if (item->type() == QGraphicsProxyWidget::Type)
item->setCacheMode(cacheMode);
}
}