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

This commit is contained in:
2017-08-09 08:21:43 +00:00
parent 28420cccc5
commit 24c04aa44a
4 changed files with 29 additions and 16 deletions

View File

@@ -193,7 +193,7 @@ void Graphic::procGesture(QGesture * g) {
void Graphic::canvasPaintEvent(QPaintEvent * ) {
if (is_lines_update) return;
QMutexLocker ml(&mutex_);
//QMutexLocker ml(&mutex_);
//static int pwid = 0, phei = 0;
int wid = canvas->width(), hei = canvas->height();
lastw = wid;
@@ -1267,7 +1267,7 @@ void Graphic::checkLines() {
void Graphic::tick(int index, bool slide, bool update_) {
if (slide) {
mutex.lock();
///mutex.lock();
GraphicType & t(graphics[index]);
if (history > 0.)
while (t.polyline.size() > 1) {
@@ -1277,7 +1277,7 @@ void Graphic::tick(int index, bool slide, bool update_) {
}
if (!update_) {
if (isFit) findGraphicsRect();
mutex.unlock();
///mutex.unlock();
return;
}
//polyline.push_back(QPointF(brick->time_, brick->output(port)));
@@ -1287,7 +1287,7 @@ void Graphic::tick(int index, bool slide, bool update_) {
if (aupdate) update();
return;
}
mutex.unlock();
///mutex.unlock();
if (aupdate) update();
}