Changeset View
Changeset View
Standalone View
Standalone View
templateparser/src/templateparserjob.cpp
Show First 20 Lines • Show All 1487 Lines • ▼ Show 20 Line(s) | 1452 | { | |||
---|---|---|---|---|---|
1488 | if (!success && d->mDebug) { | 1488 | if (!success && d->mDebug) { | ||
1489 | KMessageBox::error( | 1489 | KMessageBox::error( | ||
1490 | nullptr, | 1490 | nullptr, | ||
1491 | xi18nc("@info", | 1491 | xi18nc("@info", | ||
1492 | "Pipe command <command>%1</command> failed.", cmd)); | 1492 | "Pipe command <command>%1</command> failed.", cmd)); | ||
1493 | } | 1493 | } | ||
1494 | 1494 | | |||
1495 | if (success) { | 1495 | if (success) { | ||
1496 | return QString::fromLatin1(process.readAllStandardOutput()); | 1496 | return QTextCodec::codecForLocale()->toUnicode(process.readAllStandardOutput()); | ||
1497 | } else { | 1497 | } else { | ||
1498 | return QString(); | 1498 | return QString(); | ||
1499 | } | 1499 | } | ||
1500 | } | 1500 | } | ||
1501 | 1501 | | |||
1502 | void TemplateParserJob::setWordWrap(bool wrap, int wrapColWidth) | 1502 | void TemplateParserJob::setWordWrap(bool wrap, int wrapColWidth) | ||
1503 | { | 1503 | { | ||
1504 | d->mWrap = wrap; | 1504 | d->mWrap = wrap; | ||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |