mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-05 22:09:58 +01:00
Diagram command: additem, minor improvement
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3370 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -371,3 +371,27 @@ void QetShapeItem::editProperty()
|
||||
//...or not
|
||||
setScale(scale_);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QetShapeItem::name
|
||||
* @return the name of the curent shape.
|
||||
*/
|
||||
QString QetShapeItem::name() const {
|
||||
switch (m_shapeType) {
|
||||
case Line:
|
||||
return tr("une ligne");
|
||||
break;
|
||||
case Rectangle:
|
||||
return tr("un rectangle");
|
||||
break;
|
||||
case Ellipse:
|
||||
return tr("une \351llipse");
|
||||
break;
|
||||
case Polyline:
|
||||
return tr("une polyligne");
|
||||
break;
|
||||
default:
|
||||
return tr("une shape");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user