Fix 2 more tr()-contexts of messages in QPlaylistFileParserPrivate.
Use QPlaylistFileParser instead of QObject. Change-Id: I5dd4b56f7f580ca4089db67bbfabdd58ef7e2778 Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
committed by
Yoann Lopes
parent
aad6e64352
commit
31fce88b3f
@@ -351,7 +351,7 @@ void QPlaylistFileParserPrivate::_q_handleData()
|
||||
|
||||
if (m_buffer.length() - processedBytes >= LINE_LIMIT) {
|
||||
qWarning() << "error parsing playlist["<< m_root << "] with line content >= 4096 bytes.";
|
||||
emit q->error(QPlaylistFileParser::FormatError, QObject::tr("invalid line in playlist file"));
|
||||
emit q->error(QPlaylistFileParser::FormatError, QPlaylistFileParser::tr("invalid line in playlist file"));
|
||||
q->stop();
|
||||
return;
|
||||
}
|
||||
@@ -399,7 +399,7 @@ void QPlaylistFileParserPrivate::_q_handleParserFinished()
|
||||
Q_Q(QPlaylistFileParser);
|
||||
bool isParserValid = (m_currentParser != 0);
|
||||
if (!isParserValid)
|
||||
emit q->error(QPlaylistFileParser::FormatNotSupportedError, QObject::tr("Empty file provided"));
|
||||
emit q->error(QPlaylistFileParser::FormatNotSupportedError, QPlaylistFileParser::tr("Empty file provided"));
|
||||
|
||||
q->stop();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user