[qet] qet/qet: [5862] Add ToolTip for QetShapeItem |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5862
Author: scorpio810
Date: 2019-05-16 18:06:42 +0200 (Thu, 16 May 2019)
Log Message:
-----------
Add ToolTip for QetShapeItem
Modified Paths:
--------------
trunk/sources/qetdiagrameditor.cpp
Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp 2019-05-12 23:28:02 UTC (rev 5861)
+++ trunk/sources/qetdiagrameditor.cpp 2019-05-16 16:06:42 UTC (rev 5862)
@@ -601,7 +601,7 @@
add_rectangle->setData("rectangle");
add_ellipse ->setData("ellipse");
add_polyline ->setData("polyline");
-
+
for(QAction *action : m_add_item_actions_group.actions()) {
action->setCheckable(true);
}
@@ -1300,8 +1300,11 @@
diagram_event = new DiagramEventAddShape (d, QetShapeItem::Rectangle);
else if (value == "ellipse")
diagram_event = new DiagramEventAddShape (d, QetShapeItem::Ellipse);
- else if (value == "polyline")
+ else if (value == "polyline") {
diagram_event = new DiagramEventAddShape (d, QetShapeItem::Polygon);
+ setToolTip(tr("Double-click pour terminer la forme"));
+ setToolTipDuration(2000);
+ }
else if (value == "image")
{
DiagramEventAddImage *deai = new DiagramEventAddImage(d);