mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Replace function by another one
Replace QETApp::diagramInfoKeys() by QETInformation::diagramInfoKeys() and QETApp::diagramTranslatedInfoKey(str) by QETInformation::translatedInfoKey(str)
This commit is contained in:
@@ -427,46 +427,6 @@ QString QETApp::elementInfoToVar(const QString &info)
|
||||
return (QString ("%{void}"));
|
||||
}
|
||||
|
||||
/**
|
||||
@brief QETApp::diagramInfoKeys
|
||||
@return the diagram default default information keys
|
||||
*/
|
||||
QStringList QETApp::diagramInfoKeys()
|
||||
{
|
||||
QStringList list;
|
||||
list.append("title");
|
||||
list.append("author");
|
||||
list.append("filename");
|
||||
list.append("folio");
|
||||
list.append("plant");
|
||||
list.append("locmach");
|
||||
list.append("indexrev");
|
||||
list.append("date");
|
||||
list.append("display_folio");
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief QETApp::diagramTranslatedInfoKey
|
||||
@param key
|
||||
@return the translated information key given by key
|
||||
If key don't match, return an empty string
|
||||
*/
|
||||
QString QETApp::diagramTranslatedInfoKey(const QString &key)
|
||||
{
|
||||
if (key == "title") return tr("Titre");
|
||||
else if (key == "author") return tr("Auteur");
|
||||
else if (key == "filename") return tr("Fichier");
|
||||
else if (key == "folio") return tr("Folio");
|
||||
else if (key == "plant") return tr("Installation");
|
||||
else if (key == "locmach") return tr("Localisation");
|
||||
else if (key == "indexrev") return tr("Indice de révision");
|
||||
else if (key == "date") return tr("Date");
|
||||
else if (key == "pos") return tr("Position");
|
||||
else return QString();
|
||||
}
|
||||
|
||||
/**
|
||||
@brief QETApp::commonTitleBlockTemplatesCollection
|
||||
@return the common title block templates collection,
|
||||
|
||||
Reference in New Issue
Block a user