summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:49:58 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-07-19 20:49:58 (GMT)
commit046ede826d764a9a2b936932334de7944a8e9d5f (patch)
treea2e6cc5a03f667275ed6f663517d602ab985572a
parent5898796c69a0067d078ad464a053739e2d2c8bd0 (diff)
Use trackingbox RECT instead of center and size variables
-rw-r--r--kstars/fitsviewer/fitsview.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/kstars/fitsviewer/fitsview.h b/kstars/fitsviewer/fitsview.h
index 1726cda..19ce830 100644
--- a/kstars/fitsviewer/fitsview.h
+++ b/kstars/fitsviewer/fitsview.h
@@ -103,9 +103,10 @@ public:
// Tracking square
void setTrackingBoxEnabled(bool enable);
+ bool isTrackingBoxEnabled() { return trackingBoxEnabled; }
QPixmap & getTrackingBoxPixmap();
- void setTrackingBoxSize(const QSize size);
- void setTrackingBoxCenter(const QPointF &center);
+ void setTrackingBox(const QRect & rect);
+ const QRect & getTrackingBox() { return trackingBox; }
// Overlay
void drawOverlay(QPainter *);
@@ -172,8 +173,8 @@ private:
// Tracking box
bool trackingBoxEnabled;
- QSize trackingBoxSize;
- QPointF trackingBoxCenter;
+ bool trackingBoxUpdated;
+ QRect trackingBox;
QPixmap trackingBoxPixmap;
signals: