Port endl to \n Not necessary to flush as QTextStream uses QFile which flush when it's deleted
Summary: Port endl to \n Reviewers: dfaure, apol Reviewed By: apol Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D26465
This commit is contained in:
parent
8232ed1b78
commit
3f30f91fb0
@ -168,38 +168,38 @@ void DataEngineManager::timerEvent(QTimerEvent *)
|
|||||||
QTextStream out(&f);
|
QTextStream out(&f);
|
||||||
|
|
||||||
QHashIterator<QString, DataEngine *> it(d->engines);
|
QHashIterator<QString, DataEngine *> it(d->engines);
|
||||||
out << "================================== " << QLocale().toString(QDateTime::currentDateTime()) << endl;
|
out << "================================== " << QLocale().toString(QDateTime::currentDateTime()) << '\n';
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
it.next();
|
it.next();
|
||||||
DataEngine *engine = it.value();
|
DataEngine *engine = it.value();
|
||||||
out << "DataEngine: " << it.key() << ' ' << engine << endl;
|
out << "DataEngine: " << it.key() << ' ' << engine << '\n';
|
||||||
out << " Claimed # of sources: " << engine->sources().count() << endl;
|
out << " Claimed # of sources: " << engine->sources().count() << '\n';
|
||||||
out << " Actual # of sources: " << engine->containerDict().count() << endl;
|
out << " Actual # of sources: " << engine->containerDict().count() << '\n';
|
||||||
out << endl << " Source Details" << endl;
|
out << "\n Source Details" << '\n';
|
||||||
|
|
||||||
foreach (DataContainer *dc, engine->containerDict()) {
|
foreach (DataContainer *dc, engine->containerDict()) {
|
||||||
out << " * " << dc->objectName() << endl;
|
out << " * " << dc->objectName() << '\n';
|
||||||
out << " Data count: " << dc->d->data.count() << endl;
|
out << " Data count: " << dc->d->data.count() << '\n';
|
||||||
out << " Stored: " << dc->isStorageEnabled() << ' ' << endl;
|
out << " Stored: " << dc->isStorageEnabled() << " \n";
|
||||||
const int directs = dc->receivers(SIGNAL(dataUpdated(QString,Plasma::DataEngine::Data)));
|
const int directs = dc->receivers(SIGNAL(dataUpdated(QString,Plasma::DataEngine::Data)));
|
||||||
if (directs > 0) {
|
if (directs > 0) {
|
||||||
out << " Direction Connections: " << directs << ' ' << endl;
|
out << " Direction Connections: " << directs << " \n";
|
||||||
}
|
}
|
||||||
|
|
||||||
const int relays = dc->d->relays.count();
|
const int relays = dc->d->relays.count();
|
||||||
if (relays > 0) {
|
if (relays > 0) {
|
||||||
out << " Relays: " << dc->d->relays.count() << endl;
|
out << " Relays: " << dc->d->relays.count() << '\n';
|
||||||
QString times;
|
QString times;
|
||||||
foreach (SignalRelay *relay, dc->d->relays) {
|
foreach (SignalRelay *relay, dc->d->relays) {
|
||||||
times.append(QLatin1Char(' ') + QString::number(relay->m_interval));
|
times.append(QLatin1Char(' ') + QString::number(relay->m_interval));
|
||||||
}
|
}
|
||||||
out << " Relay Timeouts: " << times << ' ' << endl;
|
out << " Relay Timeouts: " << times << " \n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
out << endl << "-----" << endl;
|
out << "\n-----\n";
|
||||||
}
|
}
|
||||||
out << endl << endl;
|
out << "\n\n";
|
||||||
#endif
|
#endif
|
||||||
// killTimer(event->timerId());
|
// killTimer(event->timerId());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user