diff --git a/effects/blur/blurshader.cpp b/effects/blur/blurshader.cpp index ad108f7323..0cd14e1440 100644 --- a/effects/blur/blurshader.cpp +++ b/effects/blur/blurshader.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include @@ -495,7 +495,7 @@ void ARBBlurShader::init() if (glGetError()) { const char *error = (const char*)glGetString(GL_PROGRAM_ERROR_STRING_ARB); - kError() << "Failed to compile fragment program:" << error; + qCritical() << "Failed to compile fragment program:" << error; setIsValid(false); } else setIsValid(true); diff --git a/effects/coverswitch/coverswitch.cpp b/effects/coverswitch/coverswitch.cpp index 6170a4a639..1e8251fbd1 100644 --- a/effects/coverswitch/coverswitch.cpp +++ b/effects/coverswitch/coverswitch.cpp @@ -36,7 +36,7 @@ along with this program. If not, see . #include -#include +#include namespace KWin { diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index a4fc665bf2..c6604d33e3 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -28,11 +28,12 @@ along with this program. If not, see . #include #include #include -#include #include #include #include +#include +#include #include #include #include @@ -298,13 +299,13 @@ bool CubeEffect::loadShader() QString cylinderVertexshader = QStandardPaths::locate(QStandardPaths::GenericDataLocation, m_shadersDir + QStringLiteral("cylinder.vert")); QString sphereVertexshader = QStandardPaths::locate(QStandardPaths::GenericDataLocation, m_shadersDir + QStringLiteral("sphere.vert")); if (cylinderVertexshader.isEmpty() || sphereVertexshader.isEmpty()) { - kError(1212) << "Couldn't locate shader files" << endl; + qCritical() << "Couldn't locate shader files" << endl; return false; } cylinderShader = ShaderManager::instance()->loadVertexShader(ShaderManager::GenericShader, cylinderVertexshader); if (!cylinderShader->isValid()) { - kError(1212) << "The cylinder shader failed to load!" << endl; + qCritical() << "The cylinder shader failed to load!" << endl; return false; } else { ShaderBinder binder(cylinderShader); @@ -333,7 +334,7 @@ bool CubeEffect::loadShader() } sphereShader = ShaderManager::instance()->loadVertexShader(ShaderManager::GenericShader, sphereVertexshader); if (!sphereShader->isValid()) { - kError(1212) << "The sphere shader failed to load!" << endl; + qCritical() << "The sphere shader failed to load!" << endl; return false; } else { ShaderBinder binder(sphereShader); @@ -1315,7 +1316,7 @@ void CubeEffect::paintWindow(EffectWindow* w, int mask, QRegion region, WindowPa QMatrix4x4 origMatrix; if (activated && cube_painting) { shader = shaderManager->pushShader(ShaderManager::GenericShader); - //kDebug(1212) << w->caption(); + //qDebug() << w->caption(); float opacity = cubeOpacity; if (start) { opacity = 1.0 - (1.0 - opacity) * timeLine.currentValue(); @@ -1612,30 +1613,30 @@ bool CubeEffect::borderActivated(ElectricBorder border) void CubeEffect::toggleCube() { - kDebug(1212) << "toggle cube"; + qDebug() << "toggle cube"; toggle(Cube); } void CubeEffect::toggleCylinder() { - kDebug(1212) << "toggle cylinder"; + qDebug() << "toggle cylinder"; if (!useShaders) useShaders = loadShader(); if (useShaders) toggle(Cylinder); else - kError(1212) << "Sorry shaders are not available - cannot activate Cylinder"; + qCritical() << "Sorry shaders are not available - cannot activate Cylinder"; } void CubeEffect::toggleSphere() { - kDebug(1212) << "toggle sphere"; + qDebug() << "toggle sphere"; if (!useShaders) useShaders = loadShader(); if (useShaders) toggle(Sphere); else - kError(1212) << "Sorry shaders are not available - cannot activate Sphere"; + qCritical() << "Sorry shaders are not available - cannot activate Sphere"; } void CubeEffect::toggle(CubeMode newMode) @@ -1691,7 +1692,7 @@ void CubeEffect::grabbedKeyboardEvent(QKeyEvent* e) // wrap only on autorepeat case Qt::Key_Left: // rotate to previous desktop - kDebug(1212) << "left"; + qDebug() << "left"; if (!rotating && !start) { rotating = true; if (invertKeys) @@ -1709,7 +1710,7 @@ void CubeEffect::grabbedKeyboardEvent(QKeyEvent* e) break; case Qt::Key_Right: // rotate to next desktop - kDebug(1212) << "right"; + qDebug() << "right"; if (!rotating && !start) { rotating = true; if (invertKeys) @@ -1726,7 +1727,7 @@ void CubeEffect::grabbedKeyboardEvent(QKeyEvent* e) } break; case Qt::Key_Up: - kDebug(1212) << "up"; + qDebug() << "up"; if (invertKeys) { if (verticalPosition != Down) { if (!verticalRotating) { @@ -1768,7 +1769,7 @@ void CubeEffect::grabbedKeyboardEvent(QKeyEvent* e) } break; case Qt::Key_Down: - kDebug(1212) << "down"; + qDebug() << "down"; if (invertKeys) { if (verticalPosition != Up) { if (!verticalRotating) { @@ -1907,7 +1908,7 @@ void CubeEffect::setActive(bool active) zOrderingFactor = zPosition / (effects->stackingOrder().count() - 1); start = true; effects->setActiveFullScreenEffect(this); - kDebug(1212) << "Cube is activated"; + qDebug() << "Cube is activated"; verticalPosition = Normal; verticalRotating = false; manualAngle = 0.0; diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index f7f67f50d2..76a8aebcba 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -30,7 +30,7 @@ along with this program. If not, see . #include #include -#include +#include #include #include #include diff --git a/effects/diminactive/diminactive_config.cpp b/effects/diminactive/diminactive_config.cpp index 5ea6e8cb11..823cee2909 100644 --- a/effects/diminactive/diminactive_config.cpp +++ b/effects/diminactive/diminactive_config.cpp @@ -25,7 +25,6 @@ along with this program. If not, see . #include #include -#include #include #include diff --git a/effects/fallapart/fallapart.cpp b/effects/fallapart/fallapart.cpp index 7637ea3461..73483cb8cd 100644 --- a/effects/fallapart/fallapart.cpp +++ b/effects/fallapart/fallapart.cpp @@ -19,7 +19,7 @@ along with this program. If not, see . *********************************************************************/ #include "fallapart.h" -#include +#include #include #include #include @@ -135,15 +135,15 @@ bool FallApartEffect::isRealWindow(EffectWindow* w) { // TODO: isSpecialWindow is rather generic, maybe tell windowtypes separately? /* - kDebug(1212) << "--" << w->caption() << "--------------------------------"; - kDebug(1212) << "Tooltip:" << w->isTooltip(); - kDebug(1212) << "Toolbar:" << w->isToolbar(); - kDebug(1212) << "Desktop:" << w->isDesktop(); - kDebug(1212) << "Special:" << w->isSpecialWindow(); - kDebug(1212) << "TopMenu:" << w->isTopMenu(); - kDebug(1212) << "Notific:" << w->isNotification(); - kDebug(1212) << "Splash:" << w->isSplash(); - kDebug(1212) << "Normal:" << w->isNormalWindow(); + qDebug() << "--" << w->caption() << "--------------------------------"; + qDebug() << "Tooltip:" << w->isTooltip(); + qDebug() << "Toolbar:" << w->isToolbar(); + qDebug() << "Desktop:" << w->isDesktop(); + qDebug() << "Special:" << w->isSpecialWindow(); + qDebug() << "TopMenu:" << w->isTopMenu(); + qDebug() << "Notific:" << w->isNotification(); + qDebug() << "Splash:" << w->isSplash(); + qDebug() << "Normal:" << w->isNormalWindow(); */ if (!w->isNormalWindow()) return false; diff --git a/effects/flipswitch/flipswitch.cpp b/effects/flipswitch/flipswitch.cpp index 9786ab519b..0c67678048 100644 --- a/effects/flipswitch/flipswitch.cpp +++ b/effects/flipswitch/flipswitch.cpp @@ -27,7 +27,7 @@ along with this program. If not, see . #include #include -#include +#include #include #include #include diff --git a/effects/highlightwindow/highlightwindow.cpp b/effects/highlightwindow/highlightwindow.cpp index 2452b072c4..d21135add9 100644 --- a/effects/highlightwindow/highlightwindow.cpp +++ b/effects/highlightwindow/highlightwindow.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . #include "highlightwindow.h" -#include +#include namespace KWin { @@ -157,7 +157,7 @@ void HighlightWindowEffect::slotPropertyNotify(EffectWindow* w, long a) for (int i = 0; i < length; i++) { EffectWindow* foundWin = effects->findWindow(data[i]); if (!foundWin) { - kDebug(1212) << "Invalid window targetted for highlight. Requested:" << data[i]; + qDebug() << "Invalid window targetted for highlight. Requested:" << data[i]; continue; } m_highlightedWindows.append(foundWin); diff --git a/effects/invert/invert.cpp b/effects/invert/invert.cpp index dd5d9ecffd..d02253ded2 100644 --- a/effects/invert/invert.cpp +++ b/effects/invert/invert.cpp @@ -28,7 +28,7 @@ along with this program. If not, see . #include #include #include -#include +#include #include #include @@ -88,7 +88,7 @@ bool InvertEffect::loadData() m_shader = ShaderManager::instance()->loadFragmentShader(ShaderManager::GenericShader, fragmentshader); if (!m_shader->isValid()) { - kError(1212) << "The shader failed to load!" << endl; + qCritical() << "The shader failed to load!" << endl; return false; } diff --git a/effects/invert/invert_config.cpp b/effects/invert/invert_config.cpp index e9fba41f70..f84b3b944e 100644 --- a/effects/invert/invert_config.cpp +++ b/effects/invert/invert_config.cpp @@ -25,7 +25,6 @@ along with this program. If not, see . #include #include -#include #include #include #include diff --git a/effects/kscreen/kscreen.cpp b/effects/kscreen/kscreen.cpp index 3a5cd42e81..b4599bfaea 100644 --- a/effects/kscreen/kscreen.cpp +++ b/effects/kscreen/kscreen.cpp @@ -165,7 +165,7 @@ void KscreenEffect::propertyNotify(EffectWindow *window, long int atom) effects->addRepaintFull(); return; } - kDebug(1212) << "Incorrect Property state, immediate stop: " << data[0]; + qDebug() << "Incorrect Property state, immediate stop: " << data[0]; m_state = StateNormal; effects->addRepaintFull(); } diff --git a/effects/logout/logout.cpp b/effects/logout/logout.cpp index 57e951965c..1d6d4a40c1 100644 --- a/effects/logout/logout.cpp +++ b/effects/logout/logout.cpp @@ -28,7 +28,7 @@ along with this program. If not, see . #include "kwinglplatform.h" #include -#include +#include #include #include @@ -309,7 +309,7 @@ void LogoutEffect::renderVignetting() QStandardPaths::locate(QStandardPaths::GenericDataLocation, m_shadersDir + QStringLiteral("vignetting.frag"))); if (!m_vignettingShader->isValid()) { - kDebug(1212) << "Vignetting Shader failed to load"; + qDebug() << "Vignetting Shader failed to load"; return; } } else if (!m_vignettingShader->isValid()) { @@ -390,7 +390,7 @@ void LogoutEffect::renderBlurTexture() QStandardPaths::locate(QStandardPaths::GenericDataLocation, m_shadersDir + QStringLiteral("logout-blur.frag"))); if (!m_blurShader->isValid()) { - kDebug(1212) << "Logout blur shader failed to load"; + qDebug() << "Logout blur shader failed to load"; } } else if (!m_blurShader->isValid()) { // shader is broken - no need to continue here diff --git a/effects/lookingglass/lookingglass.cpp b/effects/lookingglass/lookingglass.cpp index c5fc23a648..64b4f6aca9 100644 --- a/effects/lookingglass/lookingglass.cpp +++ b/effects/lookingglass/lookingglass.cpp @@ -31,7 +31,7 @@ along with this program. If not, see . #include #include #include -#include +#include #include #include @@ -95,7 +95,7 @@ void LookingGlassEffect::reconfigure(ReconfigureFlags) LookingGlassConfig::self()->readConfig(); initialradius = LookingGlassConfig::radius(); radius = initialradius; - kDebug(1212) << QStringLiteral("Radius from config: %1").arg(radius) << endl; + qDebug() << QStringLiteral("Radius from config: %1").arg(radius) << endl; actionCollection->readSettings(); m_valid = loadData(); } @@ -108,7 +108,7 @@ bool LookingGlassEffect::loadData() int texw = displayWidth(); int texh = displayHeight(); if (!GLTexture::NPOTTextureSupported()) { - kWarning(1212) << "NPOT textures not supported, wasting some memory" ; + qWarning() << "NPOT textures not supported, wasting some memory" ; texw = nearestPowerOfTwo(texw); texh = nearestPowerOfTwo(texh); } @@ -136,7 +136,7 @@ bool LookingGlassEffect::loadData() ShaderBinder binder(m_shader); m_shader->setUniform("u_textureSize", QVector2D(displayWidth(), displayHeight())); } else { - kError(1212) << "The shader failed to load!" << endl; + qCritical() << "The shader failed to load!" << endl; return false; } @@ -216,7 +216,7 @@ void LookingGlassEffect::prePaintScreen(ScreenPrePaintData& data, int time) zoom = qMin(zoom * qMax(1.0 + diff, 1.2), target_zoom); else zoom = qMax(zoom * qMin(1.0 - diff, 0.8), target_zoom); - kDebug(1212) << "zoom is now " << zoom; + qDebug() << "zoom is now " << zoom; radius = qBound((double)initialradius, initialradius * zoom, 3.5 * initialradius); if (zoom <= 1.0f) { diff --git a/effects/lookingglass/lookingglass_config.cpp b/effects/lookingglass/lookingglass_config.cpp index 8c9c487eba..f5f7ca5e77 100644 --- a/effects/lookingglass/lookingglass_config.cpp +++ b/effects/lookingglass/lookingglass_config.cpp @@ -28,11 +28,11 @@ along with this program. If not, see . #include #include -#include #include #include #include +#include #include #include @@ -91,7 +91,7 @@ LookingGlassEffectConfig::~LookingGlassEffectConfig() void LookingGlassEffectConfig::save() { - kDebug(1212) << "Saving config of LookingGlass" ; + qDebug() << "Saving config of LookingGlass" ; KCModule::save(); m_ui->editor->save(); // undo() will restore to this state from now on diff --git a/effects/magnifier/magnifier_config.cpp b/effects/magnifier/magnifier_config.cpp index ff5ff51e15..8ac816b889 100644 --- a/effects/magnifier/magnifier_config.cpp +++ b/effects/magnifier/magnifier_config.cpp @@ -27,11 +27,11 @@ along with this program. If not, see . #include #include -#include #include #include #include +#include #include #include @@ -93,7 +93,7 @@ MagnifierEffectConfig::~MagnifierEffectConfig() void MagnifierEffectConfig::save() { - kDebug(1212) << "Saving config of Magnifier" ; + qDebug() << "Saving config of Magnifier" ; m_ui->editor->save(); // undo() will restore to this state from now on KCModule::save(); diff --git a/effects/mousemark/mousemark.cpp b/effects/mousemark/mousemark.cpp index 5a86a1631a..628d1b2f63 100644 --- a/effects/mousemark/mousemark.cpp +++ b/effects/mousemark/mousemark.cpp @@ -33,7 +33,7 @@ along with this program. If not, see . #include -#include +#include #ifdef KWIN_HAVE_XRENDER_COMPOSITING #include diff --git a/effects/mousemark/mousemark_config.cpp b/effects/mousemark/mousemark_config.cpp index bbea6cd7ac..e686fd2ff7 100644 --- a/effects/mousemark/mousemark_config.cpp +++ b/effects/mousemark/mousemark_config.cpp @@ -27,11 +27,11 @@ along with this program. If not, see . #include #include -#include #include #include #include +#include #include namespace KWin @@ -85,7 +85,7 @@ MouseMarkEffectConfig::~MouseMarkEffectConfig() void MouseMarkEffectConfig::save() { - kDebug(1212) << "Saving config of MouseMark" ; + qDebug() << "Saving config of MouseMark" ; KCModule::save(); m_actionCollection->writeSettings(); diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 37966d91c4..7dcb25e95d 100755 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -28,7 +28,7 @@ along with this program. If not, see . #include #include #include -#include +#include #include #include @@ -863,7 +863,7 @@ void PresentWindowsEffect::slotPropertyNotify(EffectWindow* w, long a) for (int i = 0; i < length; i++) { EffectWindow* foundWin = effects->findWindow(data[i]); if (!foundWin) { - kDebug(1212) << "Invalid window targetted for present windows. Requested:" << data[i]; + qDebug() << "Invalid window targetted for present windows. Requested:" << data[i]; continue; } m_selectedWindows.append(foundWin); @@ -1111,7 +1111,7 @@ void PresentWindowsEffect::calculateWindowTransformationsKompose(EffectWindowLis rows = (int)ceil(sqrt((double)windowlist.count())); columns = (int)ceil((double)windowlist.count() / (double)rows); } - //kDebug(1212) << "Using " << rows << " rows & " << columns << " columns for " << windowlist.count() << " clients"; + //qDebug() << "Using " << rows << " rows & " << columns << " columns for " << windowlist.count() << " clients"; // Calculate width & height int w = (availRect.width() - (columns + 1) * spacing) / columns; @@ -1214,7 +1214,7 @@ void PresentWindowsEffect::calculateWindowTransformationsKompose(EffectWindowLis // winData->slot = pos; motionManager.moveWindow(window, target); - //kDebug(1212) << "Window '" << window->caption() << "' gets moved to (" << + //qDebug() << "Window '" << window->caption() << "' gets moved to (" << // mWindowData[window].area.left() << "; " << mWindowData[window].area.right() << // "), scale: " << mWindowData[window].scale << endl; } diff --git a/effects/screenshot/screenshot.cpp b/effects/screenshot/screenshot.cpp index 1ea6cd0632..651f56ba07 100644 --- a/effects/screenshot/screenshot.cpp +++ b/effects/screenshot/screenshot.cpp @@ -274,14 +274,14 @@ QString ScreenShotEffect::blitScreenshot(const QRect &geometry) { #ifdef KWIN_HAVE_OPENGLES Q_UNUSED(geometry) - kDebug(1212) << "Framebuffer Blit not supported"; + qDebug() << "Framebuffer Blit not supported"; return QString(); #else QImage img; if (effects->isOpenGLCompositing()) { if (!GLRenderTarget::blitSupported()) { - kDebug(1212) << "Framebuffer Blit not supported"; + qDebug() << "Framebuffer Blit not supported"; return QString(); } GLTexture tex(geometry.width(), geometry.height()); diff --git a/effects/showfps/showfps_config.cpp b/effects/showfps/showfps_config.cpp index 52d78d6081..5fb75ca206 100644 --- a/effects/showfps/showfps_config.cpp +++ b/effects/showfps/showfps_config.cpp @@ -28,7 +28,6 @@ along with this program. If not, see . #include #include -#include #include namespace KWin diff --git a/effects/slidingpopups/slidingpopups.cpp b/effects/slidingpopups/slidingpopups.cpp index b9c51749a5..3d67558234 100644 --- a/effects/slidingpopups/slidingpopups.cpp +++ b/effects/slidingpopups/slidingpopups.cpp @@ -20,7 +20,7 @@ along with this program. If not, see . #include "slidingpopups.h" -#include +#include #include #include diff --git a/effects/startupfeedback/startupfeedback.cpp b/effects/startupfeedback/startupfeedback.cpp index d0c180c5a7..c168d5e472 100644 --- a/effects/startupfeedback/startupfeedback.cpp +++ b/effects/startupfeedback/startupfeedback.cpp @@ -135,9 +135,9 @@ void StartupFeedbackEffect::reconfigure(Effect::ReconfigureFlags flags) const QString shader = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kwin/blinking-startup-fragment.glsl")); m_blinkingShader = ShaderManager::instance()->loadFragmentShader(ShaderManager::SimpleShader, shader); if (m_blinkingShader->isValid()) { - kDebug(1212) << "Blinking Shader is valid"; + qDebug() << "Blinking Shader is valid"; } else { - kDebug(1212) << "Blinking Shader is not valid"; + qDebug() << "Blinking Shader is not valid"; } } } else diff --git a/effects/taskbarthumbnail/taskbarthumbnail.cpp b/effects/taskbarthumbnail/taskbarthumbnail.cpp index 7319a93644..22443d3ea1 100644 --- a/effects/taskbarthumbnail/taskbarthumbnail.cpp +++ b/effects/taskbarthumbnail/taskbarthumbnail.cpp @@ -21,7 +21,7 @@ along with this program. If not, see . #include "taskbarthumbnail.h" -#include +#include #include diff --git a/effects/thumbnailaside/thumbnailaside_config.cpp b/effects/thumbnailaside/thumbnailaside_config.cpp index c1495d06fb..7c5dc0fb49 100644 --- a/effects/thumbnailaside/thumbnailaside_config.cpp +++ b/effects/thumbnailaside/thumbnailaside_config.cpp @@ -26,7 +26,6 @@ along with this program. If not, see . #include #include -#include #include #include #include diff --git a/effects/trackmouse/trackmouse.cpp b/effects/trackmouse/trackmouse.cpp index 0b257abaf5..58ff0be15b 100644 --- a/effects/trackmouse/trackmouse.cpp +++ b/effects/trackmouse/trackmouse.cpp @@ -40,7 +40,7 @@ along with this program. If not, see . #include -#include +#include namespace KWin { diff --git a/effects/trackmouse/trackmouse_config.cpp b/effects/trackmouse/trackmouse_config.cpp index 8cda7e64f7..f54bafbffa 100644 --- a/effects/trackmouse/trackmouse_config.cpp +++ b/effects/trackmouse/trackmouse_config.cpp @@ -23,7 +23,6 @@ along with this program. If not, see . #include #include -#include #include #include #include diff --git a/effects/wobblywindows/wobblywindows.cpp b/effects/wobblywindows/wobblywindows.cpp index 0deba19dc2..8878693b65 100644 --- a/effects/wobblywindows/wobblywindows.cpp +++ b/effects/wobblywindows/wobblywindows.cpp @@ -12,7 +12,7 @@ License. See the file "COPYING" for the exact licensing terms. #include "wobblywindows.h" #include "wobblywindowsconfig.h" -#include +#include #include #define USE_ASSERT @@ -164,7 +164,7 @@ WobblyWindowsEffect::~WobblyWindowsEffect() if (!windows.empty()) { // we should be empty at this point... // emit a warning and clean the list. - kDebug(1212) << "Windows list not empty. Left items : " << windows.count(); + qDebug() << "Windows list not empty. Left items : " << windows.count(); QHash< const EffectWindow*, WindowWobblyInfos >::iterator i; for (i = windows.begin(); i != windows.end(); ++i) { freeWobblyInfo(i.value()); @@ -180,7 +180,7 @@ void WobblyWindowsEffect::reconfigure(ReconfigureFlags) if (settingsMode != QStringLiteral("Custom")) { unsigned int wobblynessLevel = WobblyWindowsConfig::wobblynessLevel(); if (wobblynessLevel > 4) { - kDebug(1212) << "Wrong value for \"WobblynessLevel\" : " << wobblynessLevel; + qDebug() << "Wrong value for \"WobblynessLevel\" : " << wobblynessLevel; wobblynessLevel = 4; } setParameterSet(pset[wobblynessLevel]); @@ -215,7 +215,7 @@ void WobblyWindowsEffect::reconfigure(ReconfigureFlags) m_resizeWobble = WobblyWindowsConfig::resizeWobble(); #if defined VERBOSE_MODE - kDebug(1212) << "Parameters :\n" << + qDebug() << "Parameters :\n" << "move : " << m_moveEffectEnabled << ", open : " << m_openEffectEnabled << ", close : " << m_closeEffectEnabled << "\n" "grid(" << m_stiffness << ", " << m_drag << ", " << m_move_factor << ")\n" << "velocity(" << m_minVelocity << ", " << m_maxVelocity << ", " << m_stopVelocity << ")\n" << @@ -292,7 +292,7 @@ void WobblyWindowsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& da while (!stop && (updateTime > maxTime)) { #if defined VERBOSE_MODE - kDebug(1212) << "loop time " << updateTime << " / " << time; + qDebug() << "loop time " << updateTime << " / " << time; #endif stop = !updateWindowWobblyDatas(w, maxTime); updateTime -= maxTime; @@ -422,14 +422,14 @@ void WobblyWindowsEffect::startMovedResized(EffectWindow* w) int indy = (picked.y - rect.y()) / y_increment + 0.5; int pickedPointIndex = indy * wwi.width + indx; if (pickedPointIndex < 0) { - kDebug(1212) << "Picked index == " << pickedPointIndex << " with (" << cursorPos().x() << "," << cursorPos().y() << ")"; + qDebug() << "Picked index == " << pickedPointIndex << " with (" << cursorPos().x() << "," << cursorPos().y() << ")"; pickedPointIndex = 0; } else if (static_cast(pickedPointIndex) > wwi.count - 1) { - kDebug(1212) << "Picked index == " << pickedPointIndex << " with (" << cursorPos().x() << "," << cursorPos().y() << ")"; + qDebug() << "Picked index == " << pickedPointIndex << " with (" << cursorPos().x() << "," << cursorPos().y() << ")"; pickedPointIndex = wwi.count - 1; } #if defined VERBOSE_MODE - kDebug(1212) << "Original Picked point -- x : " << picked.x << " - y : " << picked.y; + qDebug() << "Original Picked point -- x : " << picked.x << " - y : " << picked.y; #endif wwi.constraint[pickedPointIndex] = true; @@ -716,8 +716,8 @@ bool WobblyWindowsEffect::updateWindowWobblyDatas(EffectWindow* w, qreal time) qreal y_length = rect.height() / (wwi.height - 1.0); #if defined VERBOSE_MODE - kDebug(1212) << "time " << time; - kDebug(1212) << "increment x " << x_length << " // y" << y_length; + qDebug() << "time " << time; + qDebug() << "increment x " << x_length << " // y" << y_length; #endif Pair origine = {rect.x(), rect.y()}; @@ -1013,7 +1013,7 @@ bool WobblyWindowsEffect::updateWindowWobblyDatas(EffectWindow* w, qreal time) #if defined VERBOSE_MODE if (wwi.constraint[i]) { - kDebug(1212) << "Constraint point ** vel : " << vel.x << "," << vel.y << " ** move : " << vel.x*time << "," << vel.y*time; + qDebug() << "Constraint point ** vel : " << vel.x << "," << vel.y << " ** move : " << vel.x*time << "," << vel.y*time; } #endif } @@ -1041,10 +1041,10 @@ bool WobblyWindowsEffect::updateWindowWobblyDatas(EffectWindow* w, qreal time) #if defined VERBOSE_MODE # if defined COMPUTE_STATS - kDebug(1212) << "Acceleration bounds (" << accBound.x << ", " << accBound.y << ")"; - kDebug(1212) << "Velocity bounds (" << velBound.x << ", " << velBound.y << ")"; + qDebug() << "Acceleration bounds (" << accBound.x << ", " << accBound.y << ")"; + qDebug() << "Velocity bounds (" << velBound.x << ", " << velBound.y << ")"; # endif - kDebug(1212) << "sum_acc : " << acc_sum << " *** sum_vel :" << vel_sum; + qDebug() << "sum_acc : " << acc_sum << " *** sum_vel :" << vel_sum; #endif if (wwi.status != Moving && acc_sum < m_stopAcceleration && vel_sum < m_stopVelocity) { diff --git a/effects/wobblywindows/wobblywindows_config.cpp b/effects/wobblywindows/wobblywindows_config.cpp index cfba7d9ff2..827d8681ac 100644 --- a/effects/wobblywindows/wobblywindows_config.cpp +++ b/effects/wobblywindows/wobblywindows_config.cpp @@ -26,7 +26,6 @@ along with this program. If not, see . #include #include -#include #include #include diff --git a/effects/zoom/zoom.cpp b/effects/zoom/zoom.cpp index 167134386c..a5cefab8ea 100644 --- a/effects/zoom/zoom.cpp +++ b/effects/zoom/zoom.cpp @@ -204,7 +204,7 @@ void ZoomEffect::recreateTexture() XcursorImageDestroy(ximg); } else { - kDebug(1212) << "Loading cursor image (" << theme << ") FAILED -> falling back to proportional mouse tracking!"; + qDebug() << "Loading cursor image (" << theme << ") FAILED -> falling back to proportional mouse tracking!"; mouseTracking = MouseTrackingProportional; } } diff --git a/effects/zoom/zoom_config.cpp b/effects/zoom/zoom_config.cpp index fad20481e5..66c1726e59 100644 --- a/effects/zoom/zoom_config.cpp +++ b/effects/zoom/zoom_config.cpp @@ -28,7 +28,6 @@ along with this program. If not, see . #include #include -#include #include #include #include