[qet] qet/qet: [5864] Diagram editor : when user add a polygon, a message in stausBar show how |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5864
Author: scorpio810
Date: 2019-05-17 23:22:10 +0200 (Fri, 17 May 2019)
Log Message:
-----------
Diagram editor : when user add a polygon, a message in stausBar show how
to finish this shape
Modified Paths:
--------------
trunk/sources/qetdiagrameditor.cpp
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2019-05-16 17:38:13 UTC (rev 5863)
+++ trunk/sources/qetdiagrameditor.cpp 2019-05-17 21:22:10 UTC (rev 5864)
@@ -1301,7 +1301,13 @@
else if (value == "ellipse")
diagram_event = new DiagramEventAddShape (d, QetShapeItem::Ellipse);
else if (value == "polyline")
+ {
diagram_event = new DiagramEventAddShape (d, QetShapeItem::Polygon);
+ statusBar()-> showMessage(tr("Double-click pour terminer la forme"));
+ connect(diagram_event, &DiagramEventInterface::destroyed, [this]() {
+ statusBar()->clearMessage();
+ });
+ }
else if (value == "image")
{
DiagramEventAddImage *deai = new DiagramEventAddImage(d);