use setBackgroundMode( NoBackground ) - reduces flickering and doesn't

seem to cause repaint problems

svn path=/trunk/kdebase/kwin/; revision=92918
icc-effect-5.14.5
Luboš Luňák 2001-04-19 19:31:30 +00:00
parent 95ff482ac7
commit 08e9327f24
3 changed files with 4 additions and 0 deletions

View File

@ -184,6 +184,7 @@ NextButton::NextButton(Client *parent, const char *name,
const unsigned char *bitmap, int bw, int bh)
: QButton(parent, name)
{
setBackgroundMode( NoBackground );
client = parent;
resize(18, 18);
@ -218,6 +219,7 @@ NextClient::NextClient( Workspace *ws, WId w, QWidget *parent,
const char *name )
: Client( ws, w, parent, name, WResizeNoErase )
{
setBackgroundMode( NoBackground );
create_pixmaps();
connect(options, SIGNAL(resetClients()), this, SLOT(slotReset()));

View File

@ -161,6 +161,7 @@ ModernButton::ModernButton(Client *parent, const char *name,
const unsigned char *bitmap)
: QButton(parent, name)
{
setBackgroundMode( NoBackground );
QBitmap mask(14, 15, QPixmap::defaultDepth() > 8 ?
btnhighcolor_mask_bits : lowcolor_mask_bits, true);
resize(14, 15);

View File

@ -179,6 +179,7 @@ SystemButton::SystemButton(Client *parent, const char *name,
const unsigned char *bitmap)
: QToolButton(parent, name)
{
setBackgroundMode( NoBackground );
resize(14, 14);
connect( this, SIGNAL( clicked() ), this, SLOT( handleClicked() ) );
if(bitmap)