1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

MixerCurve, bugfix: min and max nodes no longer clipped.

This commit is contained in:
Mike LaBranche 2012-07-06 11:44:16 -07:00
parent de590dfdd7
commit 06eb23abe6

View File

@ -236,15 +236,19 @@ void MixerCurveWidget::showEvent(QShowEvent *event)
// Thit fitInView method should only be called now, once the
// widget is shown, otherwise it cannot compute its values and
// the result is usually a ahrsbargraph that is way too small.
fitInView(plot, Qt::KeepAspectRatio);
QRectF rect = plot->boundingRect();
fitInView(rect.adjusted(-12,-12,12,12), Qt::KeepAspectRatio);
}
void MixerCurveWidget::resizeEvent(QResizeEvent* event)
{
Q_UNUSED(event);
fitInView(plot, Qt::KeepAspectRatio);
QRectF rect = plot->boundingRect();
fitInView(rect.adjusted(-12,-12,12,12), Qt::KeepAspectRatio);
}
void MixerCurveWidget::itemMoved(double itemValue)