use setBackgroundMode( NoBackground ) - reduces flickering and doesn't
seem to cause repaint problems svn path=/trunk/kdebase/kwin/; revision=92918icc-effect-5.14.5
parent
95ff482ac7
commit
08e9327f24
|
@ -184,6 +184,7 @@ NextButton::NextButton(Client *parent, const char *name,
|
||||||
const unsigned char *bitmap, int bw, int bh)
|
const unsigned char *bitmap, int bw, int bh)
|
||||||
: QButton(parent, name)
|
: QButton(parent, name)
|
||||||
{
|
{
|
||||||
|
setBackgroundMode( NoBackground );
|
||||||
client = parent;
|
client = parent;
|
||||||
resize(18, 18);
|
resize(18, 18);
|
||||||
|
|
||||||
|
@ -218,6 +219,7 @@ NextClient::NextClient( Workspace *ws, WId w, QWidget *parent,
|
||||||
const char *name )
|
const char *name )
|
||||||
: Client( ws, w, parent, name, WResizeNoErase )
|
: Client( ws, w, parent, name, WResizeNoErase )
|
||||||
{
|
{
|
||||||
|
setBackgroundMode( NoBackground );
|
||||||
create_pixmaps();
|
create_pixmaps();
|
||||||
connect(options, SIGNAL(resetClients()), this, SLOT(slotReset()));
|
connect(options, SIGNAL(resetClients()), this, SLOT(slotReset()));
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,7 @@ ModernButton::ModernButton(Client *parent, const char *name,
|
||||||
const unsigned char *bitmap)
|
const unsigned char *bitmap)
|
||||||
: QButton(parent, name)
|
: QButton(parent, name)
|
||||||
{
|
{
|
||||||
|
setBackgroundMode( NoBackground );
|
||||||
QBitmap mask(14, 15, QPixmap::defaultDepth() > 8 ?
|
QBitmap mask(14, 15, QPixmap::defaultDepth() > 8 ?
|
||||||
btnhighcolor_mask_bits : lowcolor_mask_bits, true);
|
btnhighcolor_mask_bits : lowcolor_mask_bits, true);
|
||||||
resize(14, 15);
|
resize(14, 15);
|
||||||
|
|
|
@ -179,6 +179,7 @@ SystemButton::SystemButton(Client *parent, const char *name,
|
||||||
const unsigned char *bitmap)
|
const unsigned char *bitmap)
|
||||||
: QToolButton(parent, name)
|
: QToolButton(parent, name)
|
||||||
{
|
{
|
||||||
|
setBackgroundMode( NoBackground );
|
||||||
resize(14, 14);
|
resize(14, 14);
|
||||||
connect( this, SIGNAL( clicked() ), this, SLOT( handleClicked() ) );
|
connect( this, SIGNAL( clicked() ), this, SLOT( handleClicked() ) );
|
||||||
if(bitmap)
|
if(bitmap)
|
||||||
|
|
Loading…
Reference in New Issue