[Kst] branches/work/kst/portto4/kst/src
Peter Kümmel
syntheticpp at gmx.net
Thu Apr 28 21:42:14 CEST 2011
SVN commit 1229655 by kuemmel:
don't pollute debug output with timing
M +1 -1 libkst/measuretime.cpp
M +2 -1 libkstapp/logwidget.cpp
--- branches/work/kst/portto4/kst/src/libkst/measuretime.cpp #1229654:1229655
@@ -113,7 +113,7 @@
{
measure();
//std::cout << qPrintable(name) << ": " << interval << " seconds\n";
- Kst::Debug::self()->log(QString("Timing: %2 sec, Scope: %1").arg(name).arg(interval), Kst::Debug::DebugLog);
+ //Kst::Debug::self()->log(QString("Timing: %2 sec, Scope: %1").arg(name).arg(interval), Kst::Debug::DebugLog);
}
--- branches/work/kst/portto4/kst/src/libkstapp/logwidget.cpp #1229654:1229655
@@ -112,7 +112,8 @@
void LogWidget::regenerate() {
clear();
- foreach(Debug::LogMessage message, Debug::self()->messages()) {
+ const QList<Debug::LogMessage> messages = Debug::self()->messages();
+ foreach(const Debug::LogMessage& message, messages) {
logAdded(message);
}
}
More information about the Kst
mailing list