diff options
Diffstat (limited to 'src/gui/settingsdlg.cpp')
-rw-r--r-- | src/gui/settingsdlg.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/settingsdlg.cpp b/src/gui/settingsdlg.cpp index 3fd5a28..c267fc4 100644 --- a/src/gui/settingsdlg.cpp +++ b/src/gui/settingsdlg.cpp @@ -40,8 +40,8 @@ // Make sure that this value is the same as that in ktechlab.kcfg const int defaultRefreshRate = 50; -SettingsDlg::SettingsDlg( TQWidget *parent, const char *name, KConfigSkeleton *config ) - : KConfigDialog( parent, name, config ) +SettingsDlg::SettingsDlg( TQWidget *parent, const char *name, TDEConfigSkeleton *config ) + : TDEConfigDialog( parent, name, config ) { m_generalOptionsWidget = new GeneralOptionsWidget( this, "generalOptionsWidget" ); m_gpasmSettingsWidget = new GpasmSettingsWidget( this, "gpasmSettingsWidget" ); @@ -93,7 +93,7 @@ void SettingsDlg::show() { KComboBox * combo = m_picProgrammerConfigWidget->kcfg_PicProgrammerProgram; combo->setEditable( true ); - KConfigDialog::show(); + TDEConfigDialog::show(); combo->setEditable( false ); } @@ -280,9 +280,9 @@ int SettingsDlg::sliderValueToRefreshRate( int sliderValue ) void SettingsDlg::updateSettings() { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); - KConfigSkeleton::ItemInt *item = dynamic_cast<KConfigSkeleton::ItemInt*>(KTLConfig::self()->findItem( "RefreshRate" )); + TDEConfigSkeleton::ItemInt *item = dynamic_cast<TDEConfigSkeleton::ItemInt*>(KTLConfig::self()->findItem( "RefreshRate" )); if ( !item ) return; @@ -306,9 +306,9 @@ void SettingsDlg::updateSettings() void SettingsDlg::slotUpdateSettings() { - KConfig * config = kapp->config(); + TDEConfig * config = kapp->config(); - KConfigSkeleton::ItemString * item = dynamic_cast<KConfigSkeleton::ItemString*>(KTLConfig::self()->findItem( "PicProgrammerProgram" )); + TDEConfigSkeleton::ItemString * item = dynamic_cast<TDEConfigSkeleton::ItemString*>(KTLConfig::self()->findItem( "PicProgrammerProgram" )); if ( !item ) return; @@ -369,7 +369,7 @@ void SettingsDlg::updateWidgetsDefault() bool SettingsDlg::hasChanged() { if ( sliderValueToRefreshRate( m_generalOptionsWidget->refreshRateSlider->value() ) == KTLConfig::refreshRate() ) - return KConfigDialog::hasChanged(); + return TDEConfigDialog::hasChanged(); return true; } @@ -377,7 +377,7 @@ bool SettingsDlg::hasChanged() bool SettingsDlg::isDefault() { if ( sliderValueToRefreshRate( m_generalOptionsWidget->refreshRateSlider->value() ) == defaultRefreshRate ) - return KConfigDialog::isDefault(); + return TDEConfigDialog::isDefault(); return false; } |