\see selectEvent, deselectEvent, QCustomPlot::setInteractions
*/
-double QCPLayerable::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPLayerable::selectTest(const QPointF & , bool , QVariant * ) const
{
- Q_UNUSED(pos)
- Q_UNUSED(onlySelectable)
- Q_UNUSED(details)
return -1.0;
}
\see initializeParentPlot
*/
-void QCPLayerable::parentPlotInitialized(QCustomPlot *parentPlot)
+void QCPLayerable::parentPlotInitialized(QCustomPlot * )
{
- Q_UNUSED(parentPlot)
}
/*! \internal
\see selectTest, deselectEvent
*/
-void QCPLayerable::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
+void QCPLayerable::selectEvent(QMouseEvent * , bool , const QVariant & , bool * )
{
- Q_UNUSED(event)
- Q_UNUSED(additive)
- Q_UNUSED(details)
- Q_UNUSED(selectionStateChanged)
}
/*! \internal
\see selectTest, selectEvent
*/
-void QCPLayerable::deselectEvent(bool *selectionStateChanged)
+void QCPLayerable::deselectEvent(bool * )
{
- Q_UNUSED(selectionStateChanged)
}
\warning There may be entries with value 0 in the returned list. (For example, QCPLayoutGrid may have
empty cells which yield 0 at the respective index.)
*/
-QList<QCPLayoutElement*> QCPLayoutElement::elements(bool recursive) const
+QList<QCPLayoutElement*> QCPLayoutElement::elements(bool ) const
{
- Q_UNUSED(recursive)
return QList<QCPLayoutElement*>();
}
QCPLayoutElement subclasses may reimplement this method to provide more specific selection test
behaviour.
*/
-double QCPLayoutElement::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPLayoutElement::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
-
if (onlySelectable)
return -1;
See \ref QCPLayerable::selectTest for a general explanation of this virtual method.
*/
-double QCPLayoutInset::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPLayoutInset::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable)
return -1;
}
/* inherits documentation from base class */
-void QCPAxis::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
+void QCPAxis::selectEvent(QMouseEvent * , bool additive, const QVariant &details, bool *selectionStateChanged)
{
- Q_UNUSED(event)
SelectablePart part = details.value<SelectablePart>();
if (mSelectableParts.testFlag(part))
{
}
/* inherits documentation from base class */
-void QCPAbstractPlottable::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
+void QCPAbstractPlottable::selectEvent(QMouseEvent * , bool additive, const QVariant & , bool *selectionStateChanged)
{
- Q_UNUSED(event)
- Q_UNUSED(details)
if (mSelectable)
{
bool selBefore = mSelected;
}
/* inherits documentation from base class */
-void QCPAbstractItem::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
+void QCPAbstractItem::selectEvent(QMouseEvent * , bool additive, const QVariant & , bool *selectionStateChanged)
{
- Q_UNUSED(event)
- Q_UNUSED(details)
if (mSelectable)
{
bool selBefore = mSelected;
Event handler for when the QCustomPlot widget needs repainting. This does not cause a \ref replot, but
draws the internal buffer on the widget surface.
*/
-void QCustomPlot::paintEvent(QPaintEvent *event)
+void QCustomPlot::paintEvent(QPaintEvent * )
{
- Q_UNUSED(event);
QPainter painter(this);
painter.drawPixmap(0, 0, mPaintBuffer);
}
}
/* inherits documentation from base class */
-void QCPAxisRect::mouseReleaseEvent(QMouseEvent *event)
+void QCPAxisRect::mouseReleaseEvent(QMouseEvent * )
{
- Q_UNUSED(event)
mDragging = false;
if (mParentPlot->noAntialiasingOnDrag())
{
}
/* inherits documentation from base class */
-double QCPAbstractLegendItem::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPAbstractLegendItem::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (!mParentPlot) return -1;
if (onlySelectable && (!mSelectable || !mParentLegend->selectableParts().testFlag(QCPLegend::spItems)))
return -1;
}
/* inherits documentation from base class */
-void QCPAbstractLegendItem::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
+void QCPAbstractLegendItem::selectEvent(QMouseEvent * , bool additive, const QVariant & , bool *selectionStateChanged)
{
- Q_UNUSED(event)
- Q_UNUSED(details)
if (mSelectable && mParentLegend->selectableParts().testFlag(QCPLegend::spItems))
{
bool selBefore = mSelected;
}
/* inherits documentation from base class */
-void QCPLegend::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
+void QCPLegend::selectEvent(QMouseEvent * , bool additive, const QVariant &details, bool *selectionStateChanged)
{
- Q_UNUSED(event)
mSelectedParts = selectedParts(); // in case item selection has changed
if (details.value<SelectablePart>() == spLegendBox && mSelectableParts.testFlag(spLegendBox))
{
}
/* inherits documentation from base class */
-void QCPLegend::parentPlotInitialized(QCustomPlot *parentPlot)
+void QCPLegend::parentPlotInitialized(QCustomPlot * )
{
- Q_UNUSED(parentPlot)
}
}
/* inherits documentation from base class */
-void QCPPlotTitle::selectEvent(QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
+void QCPPlotTitle::selectEvent(QMouseEvent * , bool additive, const QVariant & , bool *selectionStateChanged)
{
- Q_UNUSED(event)
- Q_UNUSED(details)
if (mSelectable)
{
bool selBefore = mSelected;
}
/* inherits documentation from base class */
-double QCPPlotTitle::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPPlotTitle::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPGraph::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPGraph::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if ((onlySelectable && !mSelectable) || mData->isEmpty())
return -1;
if (!mKeyAxis || !mValueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; return -1; }
}
/* inherits documentation from base class */
-double QCPCurve::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPCurve::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if ((onlySelectable && !mSelectable) || mData->isEmpty())
return -1;
if (!mKeyAxis || !mValueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; return -1; }
}
/* inherits documentation from base class */
-double QCPBars::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPBars::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
if (!mKeyAxis || !mValueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; return -1; }
}
/* inherits documentation from base class */
-double QCPStatisticalBox::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPStatisticalBox::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
if (!mKeyAxis || !mValueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; return -1; }
}
/* inherits documentation from base class */
-double QCPColorMap::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPColorMap::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
if (!mKeyAxis || !mValueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; return -1; }
}
/* inherits documentation from base class */
-double QCPFinancial::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPFinancial::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
if (!mKeyAxis || !mValueAxis) { qDebug() << Q_FUNC_INFO << "invalid key or value axis"; return -1; }
}
/* inherits documentation from base class */
-double QCPItemStraightLine::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemStraightLine::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemLine::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemLine::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemCurve::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemCurve::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemRect::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemRect::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemText::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemText::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemEllipse::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemEllipse::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemPixmap::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemPixmap::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemTracer::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemTracer::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;
}
/* inherits documentation from base class */
-double QCPItemBracket::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
+double QCPItemBracket::selectTest(const QPointF &pos, bool onlySelectable, QVariant * ) const
{
- Q_UNUSED(details)
if (onlySelectable && !mSelectable)
return -1;