kDebug -> qDebug in kwin

icc-effect-5.14.5
Bhushan Shah 2013-11-01 16:59:05 +05:30
parent 0796a306c9
commit 935851a2b5
14 changed files with 26 additions and 26 deletions

View File

@ -715,7 +715,7 @@ xcb_timestamp_t Client::readUserTimeMapTimestamp(const KStartupInfoId *asn_id, c
bool session) const
{
xcb_timestamp_t time = info->userTime();
//kDebug( 1212 ) << "User timestamp, initial:" << time;
//qDebug() << "User timestamp, initial:" << time;
//^^ this deadlocks kwin --replace sometimes.
// newer ASN timestamp always replaces user timestamp, unless user timestamp is 0

View File

@ -171,7 +171,7 @@ void Activities::reallyStop(const QString &id)
continue; //TODO support old wm_command apps too?
}
//kDebug() << sessionId;
//qDebug() << sessionId;
//if it's on the activity that's closing, it needs saving
//but if a process is on some other open activity, I don't wanna close it yet

View File

@ -1635,8 +1635,8 @@ void Client::takeActivity(int flags, bool handled)
//if ( previous_activity_timestamp == xTime() && previous_client != this )
// {
// kDebug( 1212 ) << "Repeated use of the same X timestamp for activity";
// kDebug( 1212 ) << kBacktrace();
// qDebug() << "Repeated use of the same X timestamp for activity";
// qDebug() << kBacktrace();
// }
previous_activity_timestamp = xTime();
@ -1657,8 +1657,8 @@ void Client::takeFocus()
//if ( previous_focus_timestamp == xTime() && previous_client != this )
// {
// kDebug( 1212 ) << "Repeated use of the same X timestamp for focus";
// kDebug( 1212 ) << kBacktrace();
// qDebug() << "Repeated use of the same X timestamp for focus";
// qDebug() << kBacktrace();
// }
previous_focus_timestamp = xTime();
@ -2376,13 +2376,13 @@ void Client::checkActivities()
//otherwise, somebody else changed it. we need to validate before reacting
QStringList allActivities = Activities::self()->all();
if (allActivities.isEmpty()) {
kDebug() << "no activities!?!?";
qDebug() << "no activities!?!?";
//don't touch anything, there's probably something bad going on and we don't wanna make it worse
return;
}
for (int i = 0; i < newActivitiesList.size(); ++i) {
if (! allActivities.contains(newActivitiesList.at(i))) {
kDebug() << "invalid:" << newActivitiesList.at(i);
qDebug() << "invalid:" << newActivitiesList.at(i);
newActivitiesList.removeAt(i--);
}
}

View File

@ -57,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QX11Info>
#include <KUrl>
#include <KConfigGroup>
#include <KDebug>
#include <QDebug>
namespace B2 {

View File

@ -202,7 +202,7 @@ bool Workspace::workspaceEvent(xcb_generic_event_t *e)
was_user_interaction = true;
int keyQt;
KKeyServer::xcbKeyPressEventToQt(reinterpret_cast<xcb_key_press_event_t*>(e), &keyQt);
// kDebug(125) << "Workspace::keyPress( " << keyQt << " )";
// qDebug() << "Workspace::keyPress( " << keyQt << " )";
if (movingClient) {
movingClient->keyPressEvent(keyQt);
return true;

View File

@ -180,7 +180,7 @@ void Workspace::updateClientArea(bool force)
for (int iS = 0;
iS < nscreens;
iS ++) {
// kDebug (1212) << "adjusting new_sarea: " << screens[ iS ];
// qDebug() << "adjusting new_sarea: " << screens[ iS ];
new_sareas[(*it)->desktop()][ iS ]
= new_sareas[(*it)->desktop()][ iS ].intersected(
(*it)->adjustedClientArea(desktopArea, screens[ iS ]));
@ -917,19 +917,19 @@ QRect Client::adjustedClientArea(const QRect &desktopArea, const QRect& area) co
stareaB.setBottom(qMin(stareaB.bottom(), screenarea.bottom()));
if (stareaL . intersects(area)) {
// kDebug (1212) << "Moving left of: " << r << " to " << stareaL.right() + 1;
// qDebug() << "Moving left of: " << r << " to " << stareaL.right() + 1;
r . setLeft(stareaL . right() + 1);
}
if (stareaR . intersects(area)) {
// kDebug (1212) << "Moving right of: " << r << " to " << stareaR.left() - 1;
// qDebug() << "Moving right of: " << r << " to " << stareaR.left() - 1;
r . setRight(stareaR . left() - 1);
}
if (stareaT . intersects(area)) {
// kDebug (1212) << "Moving top of: " << r << " to " << stareaT.bottom() + 1;
// qDebug() << "Moving top of: " << r << " to " << stareaT.bottom() + 1;
r . setTop(stareaT . bottom() + 1);
}
if (stareaB . intersects(area)) {
// kDebug (1212) << "Moving bottom of: " << r << " to " << stareaB.top() - 1;
// qDebug() << "Moving bottom of: " << r << " to " << stareaB.top() - 1;
r . setBottom(stareaB . top() - 1);
}
return r;
@ -2443,7 +2443,7 @@ void Client::updateFullscreenMonitors(NETFullscreenMonitors topology)
{
int nscreens = screens()->count();
// kDebug( 1212 ) << "incoming request with top: " << topology.top << " bottom: " << topology.bottom
// qDebug() << "incoming request with top: " << topology.top << " bottom: " << topology.bottom
// << " left: " << topology.left << " right: " << topology.right
// << ", we have: " << nscreens << " screens.";
@ -2475,9 +2475,9 @@ QRect Client::fullscreenMonitorsArea(NETFullscreenMonitors requestedTopology) co
right = screens()->geometry(requestedTopology.right);
total = top.united(bottom.united(left.united(right)));
// kDebug( 1212 ) << "top: " << top << " bottom: " << bottom
// qDebug() << "top: " << top << " bottom: " << bottom
// << " left: " << left << " right: " << right;
// kDebug( 1212 ) << "returning rect: " << total;
// qDebug() << "returning rect: " << total;
return total;
}

View File

@ -32,7 +32,7 @@
#include <kiconloader.h>
#include <KDE/KLocalizedString>
#include <kdebug.h>
#include <QDebug>
#include <kvbox.h>
#include "ktimerdialog.moc"

View File

@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kactioncollection.h>
#include <kconfig.h>
#include <kconfiggroup.h>
#include <kdebug.h>
#include <QDebug>
#include <kmessagebox.h>
#include <ksettings/dispatcher.h>
#include <kpluginselector.h>

View File

@ -34,7 +34,7 @@
#include <kconfig.h>
#include <kdialog.h>
#include <kdebug.h>
#include <QDebug>
#include <kglobalsettings.h>
#include <kcolorscheme.h>
#include <kseparator.h>

View File

@ -22,7 +22,7 @@
#include <kapplication.h>
#include <KDE/KLocalizedString>
#include <kdebug.h>
#include <QDebug>
#include <kwindowsystem.h>
#include <QLabel>
#include <QRadioButton>

View File

@ -21,7 +21,7 @@
#include <klistwidget.h>
#include <kpushbutton.h>
#include <assert.h>
#include <kdebug.h>
#include <QDebug>
#include <kconfig.h>
#include <QFileDialog>

View File

@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "monitor.h"
#include <kdebug.h>
#include <QDebug>
#include <KDE/KLocalizedString>
#include <qgraphicsitem.h>
#include <qgraphicsview.h>

View File

@ -24,7 +24,7 @@
#include <QPaintEvent>
#include <QPainter>
#include <KDebug>
#include <QDebug>
#include <KUrl>
#include <Plasma/FrameSvg>

View File

@ -450,7 +450,7 @@ void UserActionsMenu::showHideActivityMenu()
{
#ifdef KWIN_BUILD_ACTIVITIES
const QStringList &openActivities_ = Activities::self()->running();
kDebug() << "activities:" << openActivities_.size();
qDebug() << "activities:" << openActivities_.size();
if (openActivities_.size() < 2) {
delete m_activityMenu;
m_activityMenu = 0;