plasma: prepare for Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-05-30 04:14:59 +03:00
parent 2c730832c1
commit 963e5e8735
3 changed files with 5 additions and 7 deletions

View file

@ -36,7 +36,6 @@
#include <QtGui/QGraphicsWidget>
#include <QApplication>
#include <QDesktopWidget>
#include <QVarLengthArray>
#include <QGraphicsLayout>
#include <kdebug.h>

View file

@ -21,7 +21,6 @@
#include "windowpreview_p.h"
#include <QPainter>
#include <QVarLengthArray>
#include <QtGui/qevent.h>
#include <kwindowsystem.h>

View file

@ -91,7 +91,7 @@ void slideWindow(WId id, Plasma::Location location, int offset)
#ifdef Q_WS_X11
Display *dpy = QX11Info::display();
Atom atom = XInternAtom(dpy, "_KDE_SLIDE", False);
QVarLengthArray<long, 2> data(2);
QVarLengthArray<long> data(2);
data[0] = offset;
@ -159,7 +159,7 @@ void showWindowThumbnails(WId parent, const QList<WId> &windows, const QList<QRe
int numWindows = windows.size();
// 64 is enough for 10 windows and is a nice base 2 number
QVarLengthArray<long, 64> data(1 + (6 * numWindows));
QVarLengthArray<long> data(1 + (6 * numWindows));
data[0] = numWindows;
QList<QRect>::const_iterator rectsIt = rects.constBegin();
@ -188,7 +188,7 @@ void presentWindows(WId controller, const QList<WId> &ids)
{
#ifdef Q_WS_X11
const int numWindows = ids.count();
QVarLengthArray<long, 32> data(numWindows);
QVarLengthArray<long> data(numWindows);
for (int i = 0; i < numWindows; ++i) {
data[i] = ids.at(i);
}
@ -204,7 +204,7 @@ void presentWindows(WId controller, const QList<WId> &ids)
void presentWindows(WId controller, int desktop)
{
#ifdef Q_WS_X11
QVarLengthArray<long, 1> data(1);
QVarLengthArray<long> data(1);
data[0] = desktop;
Display *dpy = QX11Info::display();
Atom atom = XInternAtom(dpy, "_KDE_PRESENT_WINDOWS_DESKTOP", False);
@ -225,7 +225,7 @@ void highlightWindows(WId controller, const QList<WId> &ids)
return;
}
QVarLengthArray<long, 32> data(numWindows);
QVarLengthArray<long> data(numWindows);
for (int i = 0; i < numWindows; ++i) {
data[i] = ids.at(i);