at least some parts are compilable on windows

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792579
This commit is contained in:
Christian Ehrlicher 2008-04-01 16:24:15 +00:00
parent df41a3b228
commit e880dc1c96

View File

@ -816,13 +816,14 @@ void Containment::setScreen(int screen)
{ {
// screen of -1 means no associated screen. // screen of -1 means no associated screen.
if (containmentType() == DesktopContainment || containmentType() == CustomContainment) { if (containmentType() == DesktopContainment || containmentType() == CustomContainment) {
#ifndef Q_OS_WIN
// we want to listen to changes in work area if our screen changes // we want to listen to changes in work area if our screen changes
if (d->screen < 0 && screen > -1) { if (d->screen < 0 && screen > -1) {
connect(KWindowSystem::self(), SIGNAL(workAreaChanged()), this, SLOT(repositionToolbox())); connect(KWindowSystem::self(), SIGNAL(workAreaChanged()), this, SLOT(repositionToolbox()));
} else if (screen < 0) { } else if (screen < 0) {
disconnect(KWindowSystem::self(), SIGNAL(workAreaChanged()), this, SLOT(repositionToolbox())); disconnect(KWindowSystem::self(), SIGNAL(workAreaChanged()), this, SLOT(repositionToolbox()));
} }
#endif
if (screen > -1 && corona()) { if (screen > -1 && corona()) {
// sanity check to make sure someone else doesn't have this screen already! // sanity check to make sure someone else doesn't have this screen already!
Containment* currently = corona()->containmentForScreen(screen); Containment* currently = corona()->containmentForScreen(screen);