Fix Apply button getting disabled when changing tabs

BUG: 163817

svn path=/trunk/KDE/kdebase/workspace/; revision=1062180
This commit is contained in:
Christoph Feck 2009-12-14 03:18:43 +00:00
parent c5c464226d
commit 12bba19ee1
4 changed files with 61 additions and 0 deletions

View file

@ -567,6 +567,16 @@ const char* KTitleBarActionsConfig::functionMax( int i )
return tbl_num_lookup( tbl_Max, i );
}
void KTitleBarActionsConfig::showEvent( QShowEvent *ev )
{
if ( !standAlone ) {
// Workaround KCModule::showEvent() calling load(), see bug 163817
QWidget::showEvent( ev );
return;
}
KCModule::showEvent( ev );
}
void KTitleBarActionsConfig::load()
{
KConfigGroup windowsConfig(config, "Windows");
@ -915,6 +925,15 @@ const char* KWindowActionsConfig::functionAllW(int i)
return tbl_num_lookup( tbl_AllW, i );
}
void KWindowActionsConfig::showEvent( QShowEvent *ev )
{
if ( !standAlone ) {
QWidget::showEvent( ev );
return;
}
KCModule::showEvent( ev );
}
void KWindowActionsConfig::load()
{
KConfigGroup cg(config, "MouseBindings");

View file

@ -60,6 +60,9 @@ public:
void save();
void defaults();
protected:
void showEvent( QShowEvent *ev );
public slots:
void changed() { emit KCModule::changed(true); }
@ -106,6 +109,9 @@ public:
void save();
void defaults();
protected:
void showEvent( QShowEvent *ev );
public slots:
void changed() { emit KCModule::changed(true); }

View file

@ -381,6 +381,15 @@ void KFocusConfig::updateActiveMouseScreen()
setActiveMouseScreen( focusCombo->currentIndex() != 0 );
}
void KFocusConfig::showEvent( QShowEvent *ev )
{
if ( !standAlone ) {
QWidget::showEvent( ev );
return;
}
KCModule::showEvent( ev );
}
void KFocusConfig::load( void )
{
QString key;
@ -653,6 +662,15 @@ void KAdvancedConfig::shadeHoverChanged(bool a) {
}
void KAdvancedConfig::showEvent( QShowEvent *ev )
{
if ( !standAlone ) {
QWidget::showEvent( ev );
return;
}
KCModule::showEvent( ev );
}
void KAdvancedConfig::load( void )
{
KConfigGroup cg(config, "Windows");
@ -982,6 +1000,15 @@ void KMovingConfig::slotCntrSnapChanged(int value) {
CntrSnap->setSuffix(i18np(" pixel", " pixels", value));
}
void KMovingConfig::showEvent( QShowEvent *ev )
{
if ( !standAlone ) {
QWidget::showEvent( ev );
return;
}
KCModule::showEvent( ev );
}
void KMovingConfig::load( void )
{
QString key;

View file

@ -76,6 +76,9 @@ public:
void save();
void defaults();
protected:
void showEvent( QShowEvent *ev );
private slots:
void setDelayFocusEnabled();
void focusPolicyChanged();
@ -132,6 +135,9 @@ public:
void save();
void defaults();
protected:
void showEvent( QShowEvent *ev );
private slots:
void changed() { emit KCModule::changed(true); }
void slotBrdrSnapChanged( int );
@ -182,6 +188,9 @@ public:
void save();
void defaults();
protected:
void showEvent( QShowEvent *ev );
private slots:
void shadeHoverChanged(bool);