mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-05-18 10:29:57 +02:00
NamesList: Use ‘Qmap’ instead of ‘Qhash’
to automatically sort the names of an element by language code before saving the element-file. Added English comment in header-file.
This commit is contained in:
@@ -21,6 +21,12 @@
|
||||
|
||||
#include <QtXml>
|
||||
/**
|
||||
This class represents a list of names, used by elements and categories
|
||||
to embed the same name in several languages.
|
||||
Languages are represented by two or five letters (typically the first
|
||||
two of the system locale); examples: en for English, fr for French,
|
||||
pt_BR for Brazilian Portuguese.
|
||||
French:
|
||||
Cette classe represente une liste de noms, utilisee
|
||||
par les elements et categories pour embarquer un meme nom en plusieurs
|
||||
langues.
|
||||
@@ -36,7 +42,7 @@ class NamesList {
|
||||
|
||||
// attributes
|
||||
private:
|
||||
QHash<QString, QString> hash_names;
|
||||
QMap<QString, QString> map_names;
|
||||
|
||||
public:
|
||||
static int MetaTypeId;
|
||||
|
||||
Reference in New Issue
Block a user