diff --git a/libkwineffects/CMakeLists.txt b/libkwineffects/CMakeLists.txt
index bec609dc56..9693824c5e 100644
--- a/libkwineffects/CMakeLists.txt
+++ b/libkwineffects/CMakeLists.txt
@@ -17,7 +17,6 @@ set(kwineffects_QT_LIBS
set(kwineffects_KDE_LIBS
KF5::XmlGui # needed for KShortcutEditor
- ${KDE4Support_LIBRARIES} # needed for KDebug
)
set(kwineffects_XLIB_LIBS
diff --git a/libkwineffects/anidata.cpp b/libkwineffects/anidata.cpp
index 0792735636..4fd26b012e 100644
--- a/libkwineffects/anidata.cpp
+++ b/libkwineffects/anidata.cpp
@@ -20,7 +20,7 @@ along with this program. If not, see .
#include "anidata_p.h"
-#include
+#include
QDebug operator<<(QDebug dbg, const KWin::AniData &a)
{
@@ -80,7 +80,7 @@ static FPx2 fpx2(const QString &s, AnimationEffect::Attribute a)
a == AnimationEffect::Size ||
a == AnimationEffect::Rotation)) ) {
if (ok)
- kDebug(1212) << "Invalid value (must not be negative)" << s;
+ qDebug() << "Invalid value (must not be negative)" << s;
return FPx2();
}
@@ -96,7 +96,7 @@ static FPx2 fpx2(const QString &s, AnimationEffect::Attribute a)
f2 = f1;
}
if ( forced_align && a >= AnimationEffect::NonFloatBase )
- kDebug(1212) << "Generic Animations, WARNING: had to align second dimension of non-onedimensional attribute" << a;
+ qDebug() << "Generic Animations, WARNING: had to align second dimension of non-onedimensional attribute" << a;
return FPx2(f1, f2);
}
@@ -122,7 +122,7 @@ AniData::AniData(const QString &str) // format: WindowMask:Attribute:Meta:Durati
else if (animation.at(1) == QStringLiteral("Size")) attribute = AnimationEffect::Size;
else if (animation.at(1) == QStringLiteral("Clip")) attribute = AnimationEffect::Clip;
else {
- kDebug(1212) << "Invalid attribute" << animation.at(1);
+ qDebug() << "Invalid attribute" << animation.at(1);
return;
}
@@ -131,7 +131,7 @@ AniData::AniData(const QString &str) // format: WindowMask:Attribute:Meta:Durati
bool ok;
duration = animation.at(3).toInt(&ok);
if (!ok || duration < 0) {
- kDebug(1212) << "Invalid duration" << animation.at(3);
+ qDebug() << "Invalid duration" << animation.at(3);
duration = 0;
return;
}
@@ -145,12 +145,12 @@ AniData::AniData(const QString &str) // format: WindowMask:Attribute:Meta:Durati
else if (customCurve == Gaussian)
curve.setCustomType(AnimationEffect::qecGaussian);
else
- kDebug(1212) << "Unknown curve type" << customCurve; // remains default, ie. linear
+ qDebug() << "Unknown curve type" << customCurve; // remains default, ie. linear
if (animation.count() > 6) {
int t = animation.at(6).toInt();
if (t < 0)
- kDebug(1212) << "Delay can not be negative" << animation.at(6);
+ qDebug() << "Delay can not be negative" << animation.at(6);
else
time = t;
diff --git a/libkwineffects/kwineffects.cpp b/libkwineffects/kwineffects.cpp
index 6cb46efb57..3113d1122e 100644
--- a/libkwineffects/kwineffects.cpp
+++ b/libkwineffects/kwineffects.cpp
@@ -35,7 +35,6 @@ along with this program. If not, see .
#include
#include
-#include
#include
#include
diff --git a/libkwineffects/kwinglobals.cpp b/libkwineffects/kwinglobals.cpp
index 7d09084c5d..bd7d2d23db 100644
--- a/libkwineffects/kwinglobals.cpp
+++ b/libkwineffects/kwinglobals.cpp
@@ -24,8 +24,6 @@ along with this program. If not, see .
#include
-#include
-
#include
#include
diff --git a/libkwineffects/kwinxrenderutils.cpp b/libkwineffects/kwinxrenderutils.cpp
index 41d3f1e3f1..cba2d4c30b 100644
--- a/libkwineffects/kwinxrenderutils.cpp
+++ b/libkwineffects/kwinxrenderutils.cpp
@@ -21,9 +21,9 @@ along with this program. If not, see .
#include "kwinxrenderutils.h"
#include "kwinglobals.h"
+#include
#include
#include
-#include
namespace KWin
{
@@ -99,7 +99,7 @@ static xcb_render_picture_t createPicture(xcb_pixmap_t pix, int depth)
}
QHash::const_iterator it = s_renderFormats.constFind(depth);
if (it == s_renderFormats.constEnd()) {
- kWarning(1212) << "Could not find XRender format for depth" << depth;
+ qWarning() << "Could not find XRender format for depth" << depth;
return XCB_RENDER_PICTURE_NONE;
}
xcb_render_picture_t pic = xcb_generate_id(connection());