Commit 6960b217 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Use updated signal and slot

parent 17941a7d
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment