git-svn-id: svn://db.shs.com.ru/libs@23 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-06-03 09:17:24 +00:00
parent 16dae8325e
commit d524235ab8
2 changed files with 2 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ void Graphic::canvasPaintEvent(QPaintEvent * ) {
drawGuides(); drawGuides();
return; return;
} }
if (!aupdate && !mupdate && pwid == wid && phei == hei) return; //if (!aupdate && !mupdate && pwid == wid && phei == hei) return;
/*if (pwid != wid || phei != hei) { /*if (pwid != wid || phei != hei) {
line_x_min.move(0, hei - 35); line_x_min.move(0, hei - 35);
line_x_max.move(0, 0); line_x_max.move(0, 0);

View File

@@ -320,7 +320,7 @@ protected:
void setCurrentAction(GraphicAction action); void setCurrentAction(GraphicAction action);
void findGraphicsRect(double start_x = 0., double end_x = 0., double start_y = 0., double end_y = 0.); void findGraphicsRect(double start_x = 0., double end_x = 0., double start_y = 0., double end_y = 0.);
void tick(int index, bool slide = true, bool update = true); void tick(int index, bool slide = true, bool update = true);
void repaintCanvas(bool force = false) {if (tm.elapsed() < min_repaint_int && !force) return; tm.restart(); canvas->repaint();} void repaintCanvas(bool force = false) {if (tm.elapsed() < min_repaint_int && !force) return; tm.restart(); canvas->update();}
void drawGraphics(); void drawGraphics();
void drawGrid(); void drawGrid();
void drawGuides(); void drawGuides();