diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp
index f44e680a9a..4857a8a4cb 100644
--- a/clients/b2/b2client.cpp
+++ b/clients/b2/b2client.cpp
@@ -290,7 +290,7 @@ void B2Client::init()
widget()),
1, 1, 1, 2);
} else {
- g->addMultiCellWidget(new QWidget(widget()), 1, 1, 1, 2);
+ g->addMultiCell( new QSpacerItem( 0, 0 ), 1, 1, 1, 2);
}
// Left and right border width
diff --git a/clients/default/kdedefault.cpp b/clients/default/kdedefault.cpp
index 224f8c9f7f..9ef7416e1b 100644
--- a/clients/default/kdedefault.cpp
+++ b/clients/default/kdedefault.cpp
@@ -737,8 +737,7 @@ void KDEDefaultClient::init()
if( isPreview())
g->addWidget( new QLabel( i18n( "
KDE2 preview" ), widget()), 3, 1);
else
- g->addWidget( new QWidget( widget()), 3, 1);
-
+ g->addItem( new QSpacerItem( 0, 0 ), 3, 1); // no widget in the middle
// without the next line, unshade flickers
g->addItem( new QSpacerItem( 0, 0, QSizePolicy::Fixed,
diff --git a/clients/keramik/keramik.cpp b/clients/keramik/keramik.cpp
index 0faf299074..96ed6a01bd 100644
--- a/clients/keramik/keramik.cpp
+++ b/clients/keramik/keramik.cpp
@@ -872,7 +872,10 @@ void KeramikClient::createLayout()
titleLayout->addSpacing( buttonMargin - 1 ); // Right button margin
windowLayout->addSpacing( leftBorderWidth ); // Left border
- windowLayout->addWidget( new QLabel( i18n( "Keramik" ), widget())); // Window wrapper FRAME
+ if( isPreview())
+ windowLayout->addWidget( new QLabel( i18n( "Keramik" ), widget()));
+ else
+ windowLayout->addItem( new QSpacerItem( 0, 0 )); //no widget in the middle
windowLayout->addSpacing( rightBorderWidth ); // Right border
}
diff --git a/clients/laptop/laptopclient.cpp b/clients/laptop/laptopclient.cpp
index ece28c413a..65f3f5573d 100644
--- a/clients/laptop/laptopclient.cpp
+++ b/clients/laptop/laptopclient.cpp
@@ -353,7 +353,7 @@ void LaptopClient::init()
g->addWidget(new QLabel(i18n("Laptop preview"),
widget()), 3, 1);
else
- g->addWidget(new QWidget(widget()), 3, 1 );
+ g->addItem( new QSpacerItem( 0, 0 ), 3, 1); // no widget in the middle
g->setRowStretch(3, 10);
spacer = new QSpacerItem(10, isResizable() ? handleSize : 4,
diff --git a/clients/modernsystem/modernsys.cpp b/clients/modernsystem/modernsys.cpp
index b4246c1a36..14d3cfcfa0 100644
--- a/clients/modernsystem/modernsys.cpp
+++ b/clients/modernsystem/modernsys.cpp
@@ -368,7 +368,7 @@ void ModernSys::init()
if( isPreview())
g->addWidget( new QLabel( i18n( "ModernSys preview" ), widget()), 1, 1 );
else
- g->addWidget( new QWidget( widget()), 1, 1 );
+ g->addItem( new QSpacerItem( 0, 0 ), 1, 1 ); // no widget in the middle
g->setRowStretch(1, 10);
g->addItem( new QSpacerItem( 0, 0, QSizePolicy::Fixed, QSizePolicy::Expanding ) );
diff --git a/clients/quartz/quartz.cpp b/clients/quartz/quartz.cpp
index ec7bc4f96a..b23a39d8a5 100644
--- a/clients/quartz/quartz.cpp
+++ b/clients/quartz/quartz.cpp
@@ -520,7 +520,11 @@ void QuartzClient::init()
QGridLayout* g = new QGridLayout(widget(), 0, 0, 0);
g->setResizeMode(QLayout::FreeResize);
g->addRowSpacing(0, borderSize-1); // Top grab bar
- g->addWidget(new QLabel( i18n( "Quartz" ), widget()), 3, 1); // fake window
+ if( isPreview())
+ g->addWidget(new QLabel( i18n( "Quartz" ), widget()), 3, 1);
+ else
+ g->addItem(new QSpacerItem( 0, 0 ), 3, 1); // no widget in the middle
+
// without the next line, unshade flickers
g->addItem( new QSpacerItem( 0, 0, QSizePolicy::Fixed,
QSizePolicy::Expanding ) );
diff --git a/clients/redmond/redmond.cpp b/clients/redmond/redmond.cpp
index 863ec815dc..416c025c9c 100644
--- a/clients/redmond/redmond.cpp
+++ b/clients/redmond/redmond.cpp
@@ -390,7 +390,7 @@ void RedmondDeco::init()
if (isPreview()) {
g->addWidget(new QLabel(i18n("Redmond preview"), widget()), 3, 1);
} else {
- g->addWidget(new QWidget(widget()), 3, 1);
+ g->addItem(new QSpacerItem( 0, 0 ), 3, 1); // no widget in the middle
}
g->addRowSpacing(0, borderWidth); // Top grab bar
diff --git a/clients/web/Web.cpp b/clients/web/Web.cpp
index 856a9f1098..022a8852ba 100644
--- a/clients/web/Web.cpp
+++ b/clients/web/Web.cpp
@@ -519,7 +519,10 @@ WebClient::_resetLayout()
QHBoxLayout * midLayout = new QHBoxLayout(mainLayout_, 0, 0);
midLayout->addSpacing(sideMargin);
- midLayout->addWidget(new QLabel( i18n( "Web" ), widget())); // fake window
+ if( isPreview())
+ midLayout->addWidget(new QLabel( i18n( "Web" ), widget()));
+ else
+ midLayout->addItem( new QSpacerItem( 0, 0 )); // no widget in the middle
midLayout->addSpacing(sideMargin);
// -------------------------------------------------------------------