mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-24 23:53:54 -07:00
* Fix #3488 ; extracted new translations * Make operators translatable, too
This commit is contained in:
parent
463ef13fe0
commit
4eda7cda9e
7 changed files with 1216 additions and 1019 deletions
|
|
@ -54,18 +54,14 @@ public:
|
|||
{
|
||||
return (parent() != NULL) ? parent()->childIndex(this) : -1;
|
||||
}
|
||||
virtual QString text() const
|
||||
virtual const QString text() const
|
||||
{
|
||||
return QString(textCStr());
|
||||
return QString("");
|
||||
}
|
||||
virtual bool isLeaf() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
virtual const char *textCStr() const
|
||||
{
|
||||
return "";
|
||||
}
|
||||
virtual void nodeChanged() const
|
||||
{
|
||||
if (parent() != NULL)
|
||||
|
|
@ -126,7 +122,7 @@ public:
|
|||
const FilterItemList *findTypeList(CardFilter::Type type) const;
|
||||
FilterItemList *typeList(CardFilter::Type type);
|
||||
FilterTreeNode *parent() const;
|
||||
const char *textCStr() const
|
||||
const QString text() const
|
||||
{
|
||||
return CardFilter::attrName(attr);
|
||||
}
|
||||
|
|
@ -154,7 +150,7 @@ public:
|
|||
}
|
||||
int termIndex(const QString &term) const;
|
||||
FilterTreeNode *termNode(const QString &term);
|
||||
const char *textCStr() const
|
||||
const QString text() const
|
||||
{
|
||||
return CardFilter::typeName(type);
|
||||
}
|
||||
|
|
@ -190,14 +186,10 @@ public:
|
|||
{
|
||||
return p;
|
||||
}
|
||||
QString text() const
|
||||
const QString text() const
|
||||
{
|
||||
return term;
|
||||
}
|
||||
const char *textCStr() const
|
||||
{
|
||||
return term.toStdString().c_str();
|
||||
}
|
||||
bool isLeaf() const
|
||||
{
|
||||
return true;
|
||||
|
|
@ -263,9 +255,9 @@ public:
|
|||
FilterTreeNode *termNode(CardFilter::Attr attr, CardFilter::Type type, const QString &term);
|
||||
FilterTreeNode *termNode(const CardFilter *f);
|
||||
FilterTreeNode *attrTypeNode(CardFilter::Attr attr, CardFilter::Type type);
|
||||
const char *textCStr() const
|
||||
const QString text() const
|
||||
{
|
||||
return "root";
|
||||
return QString("root");
|
||||
}
|
||||
int index() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue