Exemplo n.º 1
0
void Graphic_Vertex::mouseMoveEvent(QGraphicsSceneMouseEvent* event)
{
    being_moved=true;
    event->accept();
    QGraphicsItem::mouseMoveEvent(event);
    redraw_lines();
    emit riquadroMosso();
}
Exemplo n.º 2
0
// init
void init_page_presets(void) {
  u8 i, n;
  print_dbg("\r\n alloc PRESETS page");
  // allocate regions
  region_alloc(&scrollRegion);
  // init scroll
  scroll_init(&centerScroll, &scrollRegion);
  // fill regions
  region_fill(&scrollRegion, 0x0);
  // fill the scroll with actual line values...
  n = 3;
  i = 0;
  //// need to actually set the scroll region at least temporarily
  render_set_scroll(&centerScroll);
  redraw_lines();
}