Correct the method signature of MenuTranslator::translate for Qt5

This commit is contained in:
Stephan Witt 2014-08-23 16:01:03 +02:00
parent c2d9a22639
commit 6cbaad9398

View File

@ -632,9 +632,15 @@ public:
: QTranslator(parent) : 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*/, QString translate(const char * /*context*/,
const char * sourceText, const char * sourceText,
const char * /*comment*/ = 0) const const char * /*comment*/ = 0) const
#endif
{ {
string const s = sourceText; string const s = sourceText;
if (s == N_("About %1") || s == N_("Preferences") if (s == N_("About %1") || s == N_("Preferences")