From 96dc82b9ade4a4bcba2cd6f29a90ce98ae39f7d7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 23 Apr 2009 22:33:20 -0400 Subject: Add rectangles as QRectF and change the internal queue to use them as well --- sigmodr/widgets/mapeditor/WorldMapPlacement.cpp | 4 ++-- sigmodr/widgets/mapeditor/WorldMapPlacement.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp index f6b8a881..964dfa7b 100644 --- a/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp +++ b/sigmodr/widgets/mapeditor/WorldMapPlacement.cpp @@ -187,11 +187,11 @@ WorldMapPlacement::WorldMapPlacement(const QSize& size) } } -void WorldMapPlacement::addRect(const QRect& rect) +void WorldMapPlacement::addRect(const QRectF& rect) { if (m_cacheGood) return; - QQueue queue; + QQueue queue; queue.enqueue(rect); while (queue.size()) { diff --git a/sigmodr/widgets/mapeditor/WorldMapPlacement.h b/sigmodr/widgets/mapeditor/WorldMapPlacement.h index d81cc731..697ac134 100644 --- a/sigmodr/widgets/mapeditor/WorldMapPlacement.h +++ b/sigmodr/widgets/mapeditor/WorldMapPlacement.h @@ -35,7 +35,7 @@ class SIGMODRWIDGETS_NO_EXPORT WorldMapPlacement public: WorldMapPlacement(const QSize& size); - void addRect(const QRect& rect); + void addRect(const QRectF& rect); QPoint find(const QPoint& point); -- cgit