From 6b2440e2c25069335b025da7d4eaae111b82f57c Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 10 Jul 2010 17:22:28 +0000 Subject: [PATCH] comment out kDebugs - change some to kWarnings svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1148447 --- src/BlockArray.cpp | 2 +- src/ColorScheme.cpp | 4 ++-- src/EditProfileDialog.cpp | 2 +- src/History.cpp | 2 +- src/ProcessInfo.cpp | 6 +++--- src/Profile.cpp | 4 ++-- src/ProfileListWidget.cpp | 2 +- src/Screen.cpp | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/BlockArray.cpp b/src/BlockArray.cpp index 2f4aff216..b70fd2307 100644 --- a/src/BlockArray.cpp +++ b/src/BlockArray.cpp @@ -114,7 +114,7 @@ const Block* BlockArray::at(size_t i) return lastmap; if (i > index) { - kDebug(1211) << "BlockArray::at() i > index\n"; + //kDebug(1211) << "BlockArray::at() i > index\n"; return 0; } diff --git a/src/ColorScheme.cpp b/src/ColorScheme.cpp index 80fb8bb06..40896a307 100644 --- a/src/ColorScheme.cpp +++ b/src/ColorScheme.cpp @@ -577,7 +577,7 @@ bool ColorSchemeManager::loadKDE3ColorScheme(const QString& filePath) _colorSchemes.insert(scheme->name(),scheme); else { - kDebug() << "color scheme with name" << scheme->name() << "has already been" << + kWarning() << "color scheme with name" << scheme->name() << "has already been" << "found, ignoring."; delete scheme; } @@ -619,7 +619,7 @@ bool ColorSchemeManager::loadColorScheme(const QString& filePath) } else { - kDebug() << "color scheme with name" << scheme->name() << "has already been" << + kWarning() << "color scheme with name" << scheme->name() << "has already been" << "found, ignoring."; delete scheme; diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp index a3e778b70..073ccc4a1 100644 --- a/src/EditProfileDialog.cpp +++ b/src/EditProfileDialog.cpp @@ -772,7 +772,7 @@ void EditProfileDialog::colorSchemeSelected() QAbstractItemModel* model = _ui->colorSchemeList->model(); const ColorScheme* colors = model->data(selected.first(),Qt::UserRole+1).value(); - kDebug() << "Setting temp profile color to" << colors->name(); + //kDebug() << "Setting temp profile color to" << colors->name(); previewColorScheme(selected.first()); _tempProfile->setProperty(Profile::ColorScheme,colors->name()); diff --git a/src/History.cpp b/src/History.cpp index 3db747c73..9f2bd1c2b 100644 --- a/src/History.cpp +++ b/src/History.cpp @@ -116,7 +116,7 @@ void HistoryFile::map() { readWriteBalance = 0; fileMap = 0; - kDebug() << k_funcinfo << ": mmap'ing history failed. errno = " << errno; + kWarning() << k_funcinfo << ": mmap'ing history failed. errno = " << errno; } } diff --git a/src/ProcessInfo.cpp b/src/ProcessInfo.cpp index 3aff7b857..ab0c8945a 100644 --- a/src/ProcessInfo.cpp +++ b/src/ProcessInfo.cpp @@ -908,9 +908,9 @@ SSHProcessInfo::SSHProcessInfo(const ProcessInfo& process) if ( !ok || name != "ssh" ) { if ( !ok ) - kDebug() << "Could not read process info"; + kWarning() << "Could not read process info"; else - kDebug() << "Process is not a SSH process"; + kWarning() << "Process is not a SSH process"; return; } @@ -988,7 +988,7 @@ SSHProcessInfo::SSHProcessInfo(const ProcessInfo& process) } else { - kDebug() << "Could not read arguments"; + kWarning() << "Could not read arguments"; return; } diff --git a/src/Profile.cpp b/src/Profile.cpp index eab73ca25..aa67d28e7 100644 --- a/src/Profile.cpp +++ b/src/Profile.cpp @@ -306,7 +306,7 @@ QString KDE4ProfileWriter::getPath(const Profile::Ptr info) newPath = KGlobal::dirs()->saveLocation("data","konsole/") + info->name() + ".profile"; } - kDebug(1211) << "Saving profile under name: " << newPath; + //kDebug(1211) << "Saving profile under name: " << newPath; return newPath; } @@ -433,7 +433,7 @@ bool KDE3ProfileReader::readProfile(const QString& path , Profile::Ptr profile , if ( config->hasKey("Name") ) profile->setProperty(Profile::Name,config->readEntry("Name")); - kDebug() << "reading KDE 3 profile " << profile->name(); + //kDebug() << "reading KDE 3 profile " << profile->name(); if ( config->hasKey("Icon") ) profile->setProperty(Profile::Icon,config->readEntry("Icon")); diff --git a/src/ProfileListWidget.cpp b/src/ProfileListWidget.cpp index 5015eff1d..acf1d8960 100644 --- a/src/ProfileListWidget.cpp +++ b/src/ProfileListWidget.cpp @@ -45,7 +45,7 @@ ProfileListWidget::ProfileListWidget(QWidget* parent) void ProfileListWidget::startDrag(Qt::DropActions /*supportedActions*/) { - kDebug() << "drag and drop started in session list widget"; + //kDebug() << "drag and drop started in session list widget"; QMimeData* mimeData = new QMimeData(); diff --git a/src/Screen.cpp b/src/Screen.cpp index 83434bfa4..41df71679 100644 --- a/src/Screen.cpp +++ b/src/Screen.cpp @@ -143,7 +143,7 @@ void Screen::setMargins(int top, int bot) top = top - 1; // Adjust to internal lineno bot = bot - 1; // Adjust to internal lineno if ( !( 0 <= top && top < bot && bot < lines ) ) - { kDebug()<<" setRegion("<