Implement iconChange().
svn path=/trunk/kdebase/kwin/; revision=83036
This commit is contained in:
parent
e0a5931d84
commit
09595efd93
2 changed files with 13 additions and 6 deletions
|
@ -362,12 +362,8 @@ GalliumClient::GalliumClient( Workspace *ws, WId w, QWidget *parent,
|
|||
g->addColSpacing(2, 4);
|
||||
|
||||
button[BtnMenu] = new GalliumButton(this, "menu", NULL, true);
|
||||
|
||||
if(!miniIcon().isNull())
|
||||
button[BtnMenu]->setPixmap(miniIcon());
|
||||
else
|
||||
button[BtnMenu]->setPixmap(*defaultMenuPix);
|
||||
|
||||
iconChange();
|
||||
|
||||
connect(button[BtnMenu], SIGNAL(pressed()), this,
|
||||
SLOT(menuButtonPressed()));
|
||||
|
||||
|
@ -417,6 +413,16 @@ GalliumClient::GalliumClient( Workspace *ws, WId w, QWidget *parent,
|
|||
hiddenItems = false;
|
||||
}
|
||||
|
||||
void GalliumClient::iconChange()
|
||||
{
|
||||
if(!miniIcon().isNull())
|
||||
button[BtnMenu]->setPixmap(miniIcon());
|
||||
else
|
||||
button[BtnMenu]->setPixmap(*defaultMenuPix);
|
||||
|
||||
if (button[BtnMenu]->isVisible())
|
||||
button[BtnMenu]->repaint(false);
|
||||
}
|
||||
|
||||
void GalliumClient::slotMaximize()
|
||||
{
|
||||
|
|
|
@ -75,6 +75,7 @@ protected:
|
|||
void captionChange( const QString& name );
|
||||
void maximizeChange(bool m);
|
||||
void activeChange(bool);
|
||||
void iconChange();
|
||||
|
||||
void calcHiddenButtons();
|
||||
|
||||
|
|
Loading…
Reference in a new issue