back to polygonf

git-svn-id: svn://db.shs.com.ru/libs@7 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2015-04-17 07:19:24 +00:00
parent fd4ffc3677
commit 3abd654291
4 changed files with 20 additions and 14 deletions

View File

@@ -198,6 +198,8 @@ public:
QWidget * viewport() const {return canvas;}
QByteArray save();
void load(QByteArray ba);
void lock() {mutex_.lock();}
void unlock() {mutex_.unlock();}
void reset() {mutex.lock(); clear(); mutex.unlock();}
@@ -336,7 +338,7 @@ protected:
QString pointCoords(QPointF point) {return "(" + QString::number(point.x(), 'f', 3) + " ; " + QString::number(point.y(), 'f', 3) + ")";}
Ui::Graphic * ui;
QMutex mutex;
QMutex mutex, mutex_;
QWidget * canvas;
QImage * buffer;
QPainter * painter;