A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
graphlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.
[graphlib.git]
/
DrawingArea.cpp
diff --git
a/DrawingArea.cpp
b/DrawingArea.cpp
index
f0b2316
..
cd957da
100644
(file)
--- a/
DrawingArea.cpp
+++ b/
DrawingArea.cpp
@@
-40,10
+40,17
@@
void DrawingArea::setColor(float red, float green, float blue)
void DrawingArea::drawPoint(int x, int y)
{
painter->drawPoint(x, y);
void DrawingArea::drawPoint(int x, int y)
{
painter->drawPoint(x, y);
+ emit update();
}
void DrawingArea::drawLine(int x1, int y1, int x2, int y2)
{
painter->drawLine(x1, y1, x2, y2);
}
void DrawingArea::drawLine(int x1, int y1, int x2, int y2)
{
painter->drawLine(x1, y1, x2, y2);
+ emit update();
+}
+
+const QImage &DrawingArea::getImage() const
+{
+ return *image;
}
}