summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2017-07-04 12:19:32 +0300
committerJasem Mutlaq <[email protected]>2017-07-04 12:19:32 +0300
commit6960b217fe1d5063961e5040e0e53d7c2b29010a (patch)
tree4c6959676d11484669180195cfec13f91eace9eb
parent17941a7de92178c0ba87ccf3175a70ce7643611d (diff)
Use updated signal and slot
-rw-r--r--kstars/tools/altvstime.cpp9
-rw-r--r--kstars/tools/altvstime.h2
2 files changed, 7 insertions, 4 deletions
diff --git a/kstars/tools/altvstime.cpp b/kstars/tools/altvstime.cpp
index 617872a..ba8116a 100644
--- a/kstars/tools/altvstime.cpp
+++ b/kstars/tools/altvstime.cpp
@@ -191,8 +191,8 @@ AltVsTime::AltVsTime(QWidget *parent) : QDialog(parent)
connect(avtUI->View->yAxis, SIGNAL(rangeChanged(QCPRange)), this, SLOT(onYRangeChanged(QCPRange)));
connect(avtUI->View->xAxis2, SIGNAL(rangeChanged(QCPRange)), this, SLOT(onXRangeChanged(QCPRange)));
- connect(avtUI->View, SIGNAL(plottableClick(QCPAbstractPlottable *, QMouseEvent *)), this,
- SLOT(plotMousePress(QCPAbstractPlottable *, QMouseEvent *)));
+ connect(avtUI->View, SIGNAL(plottableClick(QCPAbstractPlottable *plottable, int dataIndex, QMouseEvent *event)), this,
+ SLOT(plotMousePress(QCPAbstractPlottable *, int, QMouseEvent *)));
connect(avtUI->View, SIGNAL(mouseMove(QMouseEvent *)), this, SLOT(mouseOverLine(QMouseEvent *)));
connect(avtUI->browseButton, SIGNAL(clicked()), this, SLOT(slotBrowseObject()));
@@ -555,8 +555,11 @@ void AltVsTime::onYRangeChanged(const QCPRange &range)
avtUI->View->yAxis->setRange(range.bounded(minAlt - offset, maxAlt + offset));
}
-void AltVsTime::plotMousePress(QCPAbstractPlottable *abstractPlottable, QMouseEvent *event)
+void AltVsTime::plotMousePress(QCPAbstractPlottable *abstractPlottable, int dataIndex, QMouseEvent *event)
{
+ //Do we need this?
+ Q_UNUSED(dataIndex);
+
if (event->button() == Qt::RightButton)
{
QCPAbstractPlottable *plottable = abstractPlottable;
diff --git a/kstars/tools/altvstime.h b/kstars/tools/altvstime.h
index 84138f5..1537016 100644
--- a/kstars/tools/altvstime.h
+++ b/kstars/tools/altvstime.h
@@ -120,7 +120,7 @@ class AltVsTime : public QDialog
void slotClear();
/** @short Show information from the curve as a tooltip. */
- void plotMousePress(QCPAbstractPlottable *abstractPlottable, QMouseEvent *event);
+ void plotMousePress(QCPAbstractPlottable *abstractPlottable, int dataIndex, QMouseEvent *event);
/** @short Update the X axis on Zoom and Drag. */
void onXRangeChanged(const QCPRange &range);