diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 4d60aba14..495a14e2e 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -1777,134 +1777,6 @@ void QETProject::addDiagram(Diagram *diagram, int pos) updateDiagramsFolioData(); } -/** - @return La liste des noms a utiliser pour la categorie dediee aux elements - integres automatiquement dans le projet. -*/ -NamesList QETProject::namesListForIntegrationCategory() -{ -#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove - NamesList names; - const QChar russian_data[24] = { - 0x0418, 0x043C, 0x043F, 0x043E, 0x0440, 0x0442, 0x0438, 0x0440, - 0x043E, 0x0432, 0x0430, 0x043D, 0x043D, 0x044B, 0x0435, 0x0020, - 0x044D, 0x043B, 0x0435, 0x043C, 0x0435, 0x043D, 0x0442, 0x044B}; - const QChar greek_data[18] = { - 0x0395, - 0x03b9, - 0x03c3, - 0x03b7, - 0x03b3, - 0x03bc, - 0x03ad, - 0x03bd, - 0x03b1, - 0x0020, - 0x03c3, - 0x03c4, - 0x03bf, - 0x03b9, - 0x03c7, - 0x03b5, - 0x03af, - 0x03b1}; - const QChar turkish_data[12] = { - 0x0130, - 0x0074, - 0x0068, - 0x0061, - 0x006C, - 0x0020, - 0x00F6, - 0x011F, - 0x0065, - 0x006C, - 0x0065, - 0x0072}; - const QChar ukrainian_data[20] = { - 0x0406, - 0x043c, - 0x043f, - 0x043e, - 0x0440, - 0x0442, - 0x043e, - 0x0432, - 0x0430, - 0x043d, - 0x0456, - 0x0020, - 0x0435, - 0x043b, - 0x0435, - 0x043c, - 0x0435, - 0x043d, - 0x0442, - 0x0438}; - const QChar japanese_data[10] = { - 0x30A4, - 0x30F3, - 0x30D0, - 0x30FC, - 0x30C8, - 0x3055, - 0x308C, - 0x305F, - 0x8981, - 0x7D20}; - const QChar chinese_data[4] ={ - 0x5BFC, - 0x5165, - 0x5143, - 0x4EF6}; - names.addName("fr", "Éléments importés"); - names.addName("en", "Imported elements"); - names.addName("de", "Importierte elemente"); - names.addName("es", "Elementos importados"); - names.addName("ru", QString(russian_data, 24)); - names.addName("cs", "Zavedené prvky"); - names.addName("pl", "Elementy importowane"); - names.addName("pt", "elementos importados"); - names.addName("it", "Elementi importati"); - names.addName("el", QString(greek_data, 18)); - names.addName("nl", "Elementen geïmporteerd"); - names.addName("hr", "Uvezeni elementi"); - names.addName("ca", "Elements importats"); - names.addName("ro", "Elemente importate"); - names.addName("tr", QString(turkish_data, 12)); - names.addName("da", "Importerede elementer"); - names.addName("sl", "Uvoženi elementi"); - names.addName("sv", "Importerade element"); - names.addName("ja", QString(japanese_data, 10)); - names.addName("uk", QString(ukrainian_data, 20)); - names.addName("zh", QString(chinese_data, 4)); - return (names); -#else -# if TODO_LIST -# pragma message("@TODO remove code for QT 6 or later") -# endif - qDebug() << "Help code for QT 6 or later"; - NamesList names; - names.addName("fr", "Éléments importés"); - names.addName("en", "Imported elements"); - names.addName("de", "Importierte elemente"); - names.addName("es", "Elementos importados"); - names.addName("cs", "Zavedené prvky"); - names.addName("pl", "Elementy importowane"); - names.addName("pt", "elementos importados"); - names.addName("it", "Elementi importati"); - names.addName("nl", "Elementen geïmporteerd"); - names.addName("hr", "Uvezeni elementi"); - names.addName("ca", "Elements importats"); - names.addName("ro", "Elemente importate"); - names.addName("da", "Importerede elementer"); - names.addName("sl", "Uvoženi elementi"); - names.addName("uk", "Імпортовані елементи"); - return (names); -#endif -} - /** @brief QETProject::writeBackup Write a backup file of this project, in the case that QET crash @@ -2110,7 +1982,7 @@ void QETProject::removeDiagramsTitleBlockTemplate(TitleBlockTemplatesCollection } /** - Handles the fact a digram changed the title block template it used + Handles the fact that a diagram changed the title block template it uses @param template_name Name of the template */ void QETProject::usedTitleBlockTemplateChanged(const QString &template_name) { diff --git a/sources/qetproject.h b/sources/qetproject.h index 696a28a44..bfb12148e 100644 --- a/sources/qetproject.h +++ b/sources/qetproject.h @@ -234,7 +234,6 @@ class QETProject : public QObject void writeProjectPropertiesXml(QDomElement &); void writeDefaultPropertiesXml(QDomElement &); void addDiagram(Diagram *diagram, int pos = -1); - NamesList namesListForIntegrationCategory(); void writeBackup(); void init(); ProjectState openFile(QFile *file);