summaryrefslogtreecommitdiff
path: root/kdecore
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore')
-rw-r--r--kdecore/CMakeLists.txt4
-rw-r--r--kdecore/io/kdebug.cpp8
-rw-r--r--kdecore/io/kdebug.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/kdecore/CMakeLists.txt b/kdecore/CMakeLists.txt
index af6b408..b75fe3f 100644
--- a/kdecore/CMakeLists.txt
+++ b/kdecore/CMakeLists.txt
@@ -408,7 +408,7 @@ set(kdecore_LIB_SRCS ${kdecore_LIB_SRCS}
# util/kpluginfactory.cpp
# util/kpluginloader.cpp
# util/kshell.cpp
-# util/krandom.cpp
+ util/krandom.cpp
# util/krandomsequence.cpp
# util/qtest_kde.cpp
${kdecore_OPTIONAL_SRCS}
@@ -689,7 +689,7 @@ install(FILES
# util/kpluginfactory.h
# util/kpluginloader.h
# util/kshell.h
-# util/krandom.h
+ util/krandom.h
# util/krandomsequence.h
# util/kshareddatacache.h
# util/ksharedptr.h
diff --git a/kdecore/io/kdebug.cpp b/kdecore/io/kdebug.cpp
index d72da01..7526904 100644
--- a/kdecore/io/kdebug.cpp
+++ b/kdecore/io/kdebug.cpp
@@ -886,7 +886,7 @@ KDebug::Block::Block(const char* label, int area)
} else {
d = new Private;
d->m_label = label;
- m_startTime.start();
+ //m_startTime.start();
kDebug(area) << "BEGIN:" << label;
// The indent string is per thread
@@ -901,12 +901,12 @@ KDebug::Block::Block(const char* label, int area)
KDebug::Block::~Block()
{
if (d) {
- const double duration = m_startTime.elapsed() / 1000.0;
+ //const double duration = m_startTime.elapsed() / 1000.0;
QThreadStorage<QString*> & indentString = kDebug_data->m_indentString;
indentString.localData()->chop(2);
// Print timing information, and a special message (DELAY) if the method took longer than 5s
- if (duration < 5.0) {
+ /*if (duration < 5.0) {
kDebug(m_area)
<< "END__:"
<< d->m_label.constData()
@@ -916,7 +916,7 @@ KDebug::Block::~Block()
<< "END__:"
<< d->m_label.constData()
<< qPrintable(QString::fromLatin1("[DELAY Took (quite long) %3s]").arg(QString::number(duration, 'g', 2)));
- }
+ }*/
delete d;
}
}
diff --git a/kdecore/io/kdebug.h b/kdecore/io/kdebug.h
index ccb3a2a..02d5d03 100644
--- a/kdecore/io/kdebug.h
+++ b/kdecore/io/kdebug.h
@@ -25,7 +25,7 @@
#include <kdecore_export.h>
#include <QtCore/QDebug>
-#include <QtCore/QElapsedTimer>
+//#include <QtCore/QElapsedTimer>
/**
* \addtogroup kdebug Debug message generators
@@ -358,7 +358,7 @@ public:
~Block();
private:
- QElapsedTimer m_startTime;
+ //QElapsedTimer m_startTime;
const char *m_label; // KDE5 TODO: REMOVE
int m_area;
int m_color;