summaryrefslogtreecommitdiffstats
path: root/krec/krecconfig_fileswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krec/krecconfig_fileswidget.cpp')
-rw-r--r--krec/krecconfig_fileswidget.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/krec/krecconfig_fileswidget.cpp b/krec/krecconfig_fileswidget.cpp
index 42fcd11d..56e6a7c7 100644
--- a/krec/krecconfig_fileswidget.cpp
+++ b/krec/krecconfig_fileswidget.cpp
@@ -36,8 +36,8 @@ KRecConfigFilesWidget::KRecConfigFilesWidget( TQWidget* p, const char* n )
, _bits16( 0 ), _bits8( 0 )
, _samplingRate( 44100 ), _channels( 2 ), _bits( 16 )
{
- _ratebox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Sampling Rate" ), _hbox );
- connect( _ratebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( ratechanged( int ) ) );
+ _ratebox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Sampling Rate" ), _hbox );
+ connect( _ratebox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( ratechanged( int ) ) );
_rate48 = new TQRadioButton( i18n( "48000 Hz" ), _ratebox );
_rate44 = new TQRadioButton( i18n( "44100 Hz" ), _ratebox );
_rate22 = new TQRadioButton( i18n( "22050 Hz" ), _ratebox );
@@ -50,18 +50,18 @@ KRecConfigFilesWidget::KRecConfigFilesWidget( TQWidget* p, const char* n )
_rateotherline->setMaxLength( 10 );
_rateotherline->setFrame( true );
_rateotherbox->setEnabled( false );
- connect( _rateotherline, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( rateotherchanged( const TQString& ) ) );
- _channelsbox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Channels" ), _hbox );
- connect( _channelsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( channelschanged( int ) ) );
+ connect( _rateotherline, TQ_SIGNAL( textChanged( const TQString& ) ), this, TQ_SLOT( rateotherchanged( const TQString& ) ) );
+ _channelsbox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Channels" ), _hbox );
+ connect( _channelsbox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( channelschanged( int ) ) );
_channels2 = new TQRadioButton( i18n( "Stereo (2 channels)" ), _channelsbox );
_channels1 = new TQRadioButton( i18n( "Mono (1 channel)" ), _channelsbox );
- _bitsbox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Bits" ), _hbox );
- connect( _bitsbox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( bitschanged( int ) ) );
+ _bitsbox = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Bits" ), _hbox );
+ connect( _bitsbox, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( bitschanged( int ) ) );
_bits16 = new TQRadioButton( i18n( "16 bit" ), _bitsbox );
_bits8 = new TQRadioButton( i18n( "8 bit" ), _bitsbox );
_usedefaults = new TQCheckBox( i18n( "Use defaults for creating new files" ), this );
- connect( _usedefaults, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( usedefaultschanged( bool ) ) );
+ connect( _usedefaults, TQ_SIGNAL( toggled( bool ) ), this, TQ_SLOT( usedefaultschanged( bool ) ) );
setSpacing( 5 );
@@ -74,8 +74,8 @@ KRecConfigFilesWidget::~KRecConfigFilesWidget() {
void KRecConfigFilesWidget::load() {
kdDebug( 60005 ) << k_funcinfo << endl;
defaults();
- kapp->config()->setGroup( "FileDefaults" );
- _samplingRate = kapp->config()->readNumEntry( "SamplingRate", 44100 );
+ tdeApp->config()->setGroup( "FileDefaults" );
+ _samplingRate = tdeApp->config()->readNumEntry( "SamplingRate", 44100 );
switch ( _samplingRate ) {
case 48000: _rate48->setChecked( true ); break;
case 44100: _rate44->setChecked( true ); break;
@@ -87,29 +87,29 @@ kdDebug( 60005 ) << k_funcinfo << endl;
_rateotherline->setText( TQString::number( _samplingRate ) );
break;
};
- _channels = kapp->config()->readNumEntry( "Channels", 2 );
+ _channels = tdeApp->config()->readNumEntry( "Channels", 2 );
switch ( _channels ) {
default:
case 2: _channels2->setChecked( true ); break;
case 1: _channels1->setChecked( true ); break;
};
- _bits = kapp->config()->readNumEntry( "Bits", 16 );
+ _bits = tdeApp->config()->readNumEntry( "Bits", 16 );
switch ( _bits ) {
default:
case 16: _bits16->setChecked( true ); break;
case 8: _bits8->setChecked( true ); break;
};
- _usedefaults->setChecked( kapp->config()->readBoolEntry( "UseDefaults", false ) );
+ _usedefaults->setChecked( tdeApp->config()->readBoolEntry( "UseDefaults", false ) );
}
void KRecConfigFilesWidget::save() {
- kapp->config()->setGroup( "FileDefaults" );
- kapp->config()->writeEntry( "SamplingRate", _samplingRate );
- kapp->config()->writeEntry( "Channels", _channels );
- kapp->config()->writeEntry( "Bits", _bits );
- kapp->config()->writeEntry( "UseDefaults", _usedefaults->isOn() );
+ tdeApp->config()->setGroup( "FileDefaults" );
+ tdeApp->config()->writeEntry( "SamplingRate", _samplingRate );
+ tdeApp->config()->writeEntry( "Channels", _channels );
+ tdeApp->config()->writeEntry( "Bits", _bits );
+ tdeApp->config()->writeEntry( "UseDefaults", _usedefaults->isOn() );
- kapp->config()->sync();
+ tdeApp->config()->sync();
}
void KRecConfigFilesWidget::defaults() {