- glEnable(GL_SCISSOR_TEST);
- glScissor(View::LabelMarginWidth, 0, width(), height());
- offset = View::RulerHeight - _view.v_offset();
- BOOST_FOREACH(const shared_ptr<Signal> s, sigs)
- {
- assert(s);
-
- const QRect signal_rect(View::LabelMarginWidth, offset,
- width() - View::LabelMarginWidth, SignalHeight);
-
- s->paint(*this, signal_rect, _view.scale(), _view.offset());
-
- offset += SignalHeight;
- }
-
- glDisable(GL_SCISSOR_TEST);
-
- // Prepare for QPainter rendering
- glMatrixMode(GL_MODELVIEW);
- glPopMatrix();
-
- QPainter painter(this);
- painter.setRenderHint(QPainter::Antialiasing);
-
- // Paint the labels
- offset = View::RulerHeight - _view.v_offset();