check keepAboveChanged() and keepBelowChanged() signals (#84841)

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=332079
This commit is contained in:
Sandro Giessl 2004-07-23 16:50:02 +00:00
parent 92949ab569
commit 8b5755fb4c
2 changed files with 17 additions and 6 deletions

View file

@ -79,6 +79,9 @@ PlastikClient::~PlastikClient()
void PlastikClient::init()
{
connect(this, SIGNAL(keepAboveChanged(bool) ), SLOT(keepAboveChange(bool) ) );
connect(this, SIGNAL(keepBelowChanged(bool) ), SLOT(keepBelowChange(bool) ) );
s_titleHeight = isTool() ?
PlastikHandler::titleHeightTool()
: PlastikHandler::titleHeight();
@ -816,8 +819,16 @@ void PlastikClient::slotShade()
void PlastikClient::slotKeepAbove()
{
bool above = !keepAbove();
setKeepAbove( above );
setKeepAbove(!keepAbove() );
}
void PlastikClient::slotKeepBelow()
{
setKeepBelow(!keepBelow() );
}
void PlastikClient::keepAboveChange(bool above)
{
if (m_button[AboveButton])
{
m_button[AboveButton]->setOn(above);
@ -831,10 +842,8 @@ void PlastikClient::slotKeepAbove()
}
}
void PlastikClient::slotKeepBelow()
void PlastikClient::keepBelowChange(bool below)
{
bool below = !keepBelow();
setKeepBelow( below );
if (m_button[BelowButton])
{
m_button[BelowButton]->setOn(below);

View file

@ -73,6 +73,8 @@ protected:
virtual Position mousePosition(const QPoint &point) const;
private slots:
void keepAboveChange(bool above);
void keepBelowChange(bool below);
void slotMaximize();
void slotShade();
void slotKeepAbove();