int Plot::yCoordOf(int v, QRect r, int maxVal)
{
int z = (r.bottom() - r.top())/2;
+ if ( maxVal == 0 ) maxVal++;
return -(z * v) / maxVal + z;
}
CursorBPos = 0;
setWindowTitle(tr("Sliders"));
+
+ master = parent;
}
void Plot::closeEvent(QCloseEvent *event)
break;
case Qt::Key_Q:
- this->hide();
+ master->hide();
break;
default: