_scale(1e-6),
_offset(0)
{
- connect(&_session, SIGNAL(dataUpdated()),
- this, SLOT(dataUpdated()));
+ connect(&_session, SIGNAL(data_updated()),
+ this, SLOT(data_updated()));
setMouseTracking(true);
setAutoFillBackground(false);
void SigView::resizeGL(int width, int height)
{
- setupViewport(width, height);
+ setup_viewport(width, height);
}
void SigView::paintEvent(QPaintEvent *event)
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
- setupViewport(width(), height());
+ setup_viewport(width(), height());
qglClearColor(Qt::white);
glClear(GL_COLOR_BUFFER_BIT);
}
// Paint the ruler
- paintRuler(painter);
+ paint_ruler(painter);
painter.end();
}
-void SigView::dataUpdated()
+void SigView::data_updated()
{
update();
}
update();
}
-void SigView::setupViewport(int width, int height)
+void SigView::setup_viewport(int width, int height)
{
glViewport(0, 0, (GLint)width, (GLint)height);
glMatrixMode(GL_PROJECTION);
glMatrixMode(GL_MODELVIEW);
}
-void SigView::paintRuler(QPainter &p)
+void SigView::paint_ruler(QPainter &p)
{
const double MinSpacing = 80;