
Originally Posted by
drkbkr
The one I'd really like to get to work is the "No" string where the QString and tr call are in the strings class.
Would such class (or namespace) be acceptable to you?
class strings
{
public:
enum StringConstant
{
Yes = 0,
No = 1,
AndSoOn = 2
};
static QString get
( StringConstant str
);
...
};
...
label->setText( strings::get( strings::No ) );
class strings
{
public:
enum StringConstant
{
Yes = 0,
No = 1,
AndSoOn = 2
};
static QString get( StringConstant str );
...
};
...
label->setText( strings::get( strings::No ) );
To copy to clipboard, switch view to plain text mode
Bookmarks