#include "controllerwindow.h"
#include <QApplication>
+#include <QDesktopWidget>
#include <QBoxLayout>
#include <QPainter>
#include "widgetsexplorer/widgetexplorer.h"
#include "panelshadows.h"
-#include <kephal/screens.h>
-
ControllerWindow::ControllerWindow(QWidget* parent)
: QWidget(parent),
m_location(Plasma::Floating),
connect(KWindowSystem::self(), SIGNAL(activeWindowChanged(WId)), this, SLOT(closeIfNotFocussed()));
connect(m_background, SIGNAL(repaintNeeded()), SLOT(backgroundChanged()));
- Kephal::Screens *screens = Kephal::Screens::self();
- connect(screens, SIGNAL(screenResized(Kephal::Screen*,QSize,QSize)),
- this, SLOT(adjustAndSetMaxSize()));
+ connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(adjustAndSetMaxSize()));
m_adjustViewTimer = new QTimer(this);
m_adjustViewTimer->setSingleShot(true);
connect(m_adjustViewTimer, SIGNAL(timeout()), this, SLOT(syncToGraphicsWidget()));
#include "desktopscriptengine.h"
+#include <QApplication>
+#include <QDesktopWidget>
#include <QCursor>
-#include <kephal/screens.h>
-
#include <plasmagenericshell/scripting/containment.h>
#include <plasmagenericshell/scripting/appinterface.h>
{
if (m_startup) {
return ScriptEngine::defaultPanelScreen();
- } else {
- return Kephal::ScreenUtils::screenId(QCursor::pos());
}
+ return QApplication::desktop()->screenNumber(QCursor::pos());
}
}