mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Correct the method signature of MenuTranslator::translate for Qt5
This commit is contained in:
parent
c2d9a22639
commit
6cbaad9398
@ -632,9 +632,15 @@ public:
|
||||
: QTranslator(parent)
|
||||
{}
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
virtual QString translate(const char * /* context */,
|
||||
const char *sourceText,
|
||||
const char * /* disambiguation */ = 0, int /* n */ = -1) const
|
||||
#else
|
||||
QString translate(const char * /*context*/,
|
||||
const char * sourceText,
|
||||
const char * /*comment*/ = 0) const
|
||||
#endif
|
||||
{
|
||||
string const s = sourceText;
|
||||
if (s == N_("About %1") || s == N_("Preferences")
|
||||
|
Loading…
Reference in New Issue
Block a user