mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +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:
@@ -29,30 +29,16 @@
|
||||
#include "conductorautonumerotation.h"
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
/**
|
||||
* Specialized template function
|
||||
*/
|
||||
template<>
|
||||
QString itemText <DiagramImageItem *> (DiagramImageItem *item) {
|
||||
Q_UNUSED(item);
|
||||
return QObject::tr("une image");
|
||||
QString itemText(const QetGraphicsItem *item) {
|
||||
return item->name();
|
||||
}
|
||||
template<>
|
||||
QString itemText <IndependentTextItem *> (IndependentTextItem *item) {
|
||||
|
||||
QString itemText(const IndependentTextItem *item) {
|
||||
Q_UNUSED(item);
|
||||
return QObject::tr("un champ texte");
|
||||
}
|
||||
template<>
|
||||
QString itemText <Element *> (Element *item) {
|
||||
return QObject::tr("un \351l\351ment : %1").arg(item->name());
|
||||
}
|
||||
template<>
|
||||
QString itemText <QetShapeItem *> (QetShapeItem *item) {
|
||||
Q_UNUSED(item);
|
||||
return QObject::tr("une shape");
|
||||
}
|
||||
template<>
|
||||
QString itemText <Conductor *> (Conductor *item) {
|
||||
|
||||
QString itemText(const Conductor *item) {
|
||||
Q_UNUSED(item);
|
||||
return QObject::tr("un conducteur");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user