mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +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:
@@ -33,6 +33,7 @@ class Element;
|
||||
class ElementTextItem;
|
||||
class IndependentTextItem;
|
||||
class DiagramImageItem;
|
||||
class QetGraphicsItem;
|
||||
|
||||
/**
|
||||
* @brief The AddItemCommand class
|
||||
@@ -73,14 +74,10 @@ class AddItemCommand : public QUndoCommand {
|
||||
QPointF m_pos;
|
||||
};
|
||||
|
||||
/**
|
||||
*Template function: return generique name of a QGraphicsItem.
|
||||
*/
|
||||
template <typename T>
|
||||
QString itemText(T item) {
|
||||
Q_UNUSED (item);
|
||||
return QObject::tr("un item");
|
||||
}
|
||||
//Return a string to describe a QGraphicsItem
|
||||
QString itemText(const QetGraphicsItem *item);
|
||||
QString itemText(const IndependentTextItem *item);
|
||||
QString itemText(const Conductor *item);
|
||||
|
||||
/**
|
||||
This command removes content from a particular diagram.
|
||||
|
||||
Reference in New Issue
Block a user