[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kicker/applets/lockout
From: James Ots <kde () jamesots ! com>
Date: 2004-06-15 9:32:14
Message-ID: 20040615093214.4127716AF4 () office ! kde ! org
[Download RAW message or body]
CVS commit by jamesots:
Transparency option greyed out if disabled by Kiosk
M +7 -0 lockout.cpp 1.23
--- kdebase/kicker/applets/lockout/lockout.cpp #1.22:1.23
@@ -198,4 +198,7 @@ bool Lockout::eventFilter( QObject *o, Q
if( e->type() == QEvent::MouseButtonPress )
{
+ KConfig *conf = config();
+ conf->setGroup("lockout");
+
QMouseEvent *me = static_cast<QMouseEvent *>( e );
if( me->button() == QMouseEvent::RightButton )
@@ -215,4 +218,6 @@ bool Lockout::eventFilter( QObject *o, Q
popup->setItemChecked( 100, bTransparent );
popup->connectItem(100, this, SLOT( slotTransparent() ) );
+ if (conf->entryIsImmutable( "Transparent" ))
+ popup->setItemEnabled( 100, false );
popup->exec( me->globalPos() );
delete popup;
@@ -234,4 +239,6 @@ bool Lockout::eventFilter( QObject *o, Q
popup->setItemChecked( 100, bTransparent );
popup->connectItem(100, this, SLOT( slotTransparent() ) );
+ if (conf->entryIsImmutable( "Transparent" ))
+ popup->setItemEnabled( 100, false );
popup->exec( me->globalPos() );
delete popup;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic