And one more case of flickering ... how comes nobody complained?
svn path=/trunk/kdebase/kwin/; revision=263250
This commit is contained in:
parent
323806acbe
commit
abdfd596b2
8 changed files with 18 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -737,8 +737,7 @@ void KDEDefaultClient::init()
|
|||
if( isPreview())
|
||||
g->addWidget( new QLabel( i18n( "<b><center>KDE2 preview</center></b>" ), 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,
|
||||
|
|
|
@ -872,7 +872,10 @@ void KeramikClient::createLayout()
|
|||
titleLayout->addSpacing( buttonMargin - 1 ); // Right button margin
|
||||
|
||||
windowLayout->addSpacing( leftBorderWidth ); // Left border
|
||||
windowLayout->addWidget( new QLabel( i18n( "<center><b>Keramik</b></center>" ), widget())); // Window wrapper FRAME
|
||||
if( isPreview())
|
||||
windowLayout->addWidget( new QLabel( i18n( "<center><b>Keramik</b></center>" ), widget()));
|
||||
else
|
||||
windowLayout->addItem( new QSpacerItem( 0, 0 )); //no widget in the middle
|
||||
windowLayout->addSpacing( rightBorderWidth ); // Right border
|
||||
}
|
||||
|
||||
|
|
|
@ -353,7 +353,7 @@ void LaptopClient::init()
|
|||
g->addWidget(new QLabel(i18n("<center><b></b>Laptop preview</center>"),
|
||||
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,
|
||||
|
|
|
@ -368,7 +368,7 @@ void ModernSys::init()
|
|||
if( isPreview())
|
||||
g->addWidget( new QLabel( i18n( "<center><b>ModernSys preview</b></center>" ), 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 ) );
|
||||
|
||||
|
|
|
@ -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( "<center><b>Quartz</b></center>" ), widget()), 3, 1); // fake window
|
||||
if( isPreview())
|
||||
g->addWidget(new QLabel( i18n( "<center><b>Quartz</b></center>" ), 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 ) );
|
||||
|
|
|
@ -390,7 +390,7 @@ void RedmondDeco::init()
|
|||
if (isPreview()) {
|
||||
g->addWidget(new QLabel(i18n("<center><b>Redmond preview</b></center>"), 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
|
||||
|
|
|
@ -519,7 +519,10 @@ WebClient::_resetLayout()
|
|||
QHBoxLayout * midLayout = new QHBoxLayout(mainLayout_, 0, 0);
|
||||
|
||||
midLayout->addSpacing(sideMargin);
|
||||
midLayout->addWidget(new QLabel( i18n( "<center><b>Web</b></center>" ), widget())); // fake window
|
||||
if( isPreview())
|
||||
midLayout->addWidget(new QLabel( i18n( "<center><b>Web</b></center>" ), widget()));
|
||||
else
|
||||
midLayout->addItem( new QSpacerItem( 0, 0 )); // no widget in the middle
|
||||
midLayout->addSpacing(sideMargin);
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue