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.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/krec/krecconfig_fileswidget.cpp b/krec/krecconfig_fileswidget.cpp
index 5df6693d..206eda1b 100644
--- a/krec/krecconfig_fileswidget.cpp
+++ b/krec/krecconfig_fileswidget.cpp
@@ -17,18 +17,18 @@
#include "krecglobal.h"
#include <kdebug.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
#include <kapplication.h>
#include <kconfig.h>
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-KRecConfigFilesWidget::KRecConfigFilesWidget( QWidget* p, const char* n )
- : QVBox( p,n )
- , _hbox( new QHBox( this ) )
+KRecConfigFilesWidget::KRecConfigFilesWidget( TQWidget* p, const char* n )
+ : TQVBox( p,n )
+ , _hbox( new TQHBox( this ) )
, _ratebox( 0 ), _channelsbox( 0 ), _bitsbox( 0 )
, _rate48( 0 ), _rate44( 0 ), _rate22( 0 ), _rate11( 0 ), _rateother( 0 )
, _rateotherbox( 0 ), _rateotherlabel( 0 ), _rateotherline( 0 )
@@ -36,32 +36,32 @@ KRecConfigFilesWidget::KRecConfigFilesWidget( QWidget* p, const char* n )
, _bits16( 0 ), _bits8( 0 )
, _samplingRate( 44100 ), _channels( 2 ), _bits( 16 )
{
- _ratebox = new QButtonGroup( 1, Qt::Horizontal, i18n( "Sampling Rate" ), _hbox );
- connect( _ratebox, SIGNAL( clicked( int ) ), this, SLOT( ratechanged( int ) ) );
- _rate48 = new QRadioButton( i18n( "48000 Hz" ), _ratebox );
- _rate44 = new QRadioButton( i18n( "44100 Hz" ), _ratebox );
- _rate22 = new QRadioButton( i18n( "22050 Hz" ), _ratebox );
- _rate11 = new QRadioButton( i18n( "11025 Hz" ), _ratebox );
- _rateother = new QRadioButton( i18n( "Other" ), _ratebox );
- _rateotherbox = new QHBox( _ratebox );
+ _ratebox = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Sampling Rate" ), _hbox );
+ connect( _ratebox, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( ratechanged( int ) ) );
+ _rate48 = new TQRadioButton( i18n( "48000 Hz" ), _ratebox );
+ _rate44 = new TQRadioButton( i18n( "44100 Hz" ), _ratebox );
+ _rate22 = new TQRadioButton( i18n( "22050 Hz" ), _ratebox );
+ _rate11 = new TQRadioButton( i18n( "11025 Hz" ), _ratebox );
+ _rateother = new TQRadioButton( i18n( "Other" ), _ratebox );
+ _rateotherbox = new TQHBox( _ratebox );
_rateotherbox->setSpacing( 2 );
- _rateotherlabel = new QLabel( i18n( "Other:" ), _rateotherbox );
- _rateotherline = new QLineEdit( _rateotherbox );
+ _rateotherlabel = new TQLabel( i18n( "Other:" ), _rateotherbox );
+ _rateotherline = new TQLineEdit( _rateotherbox );
_rateotherline->setMaxLength( 10 );
_rateotherline->setFrame( true );
_rateotherbox->setEnabled( false );
- connect( _rateotherline, SIGNAL( textChanged( const QString& ) ), this, SLOT( rateotherchanged( const QString& ) ) );
- _channelsbox = new QButtonGroup( 1, Qt::Horizontal, i18n( "Channels" ), _hbox );
- connect( _channelsbox, SIGNAL( clicked( int ) ), this, SLOT( channelschanged( int ) ) );
- _channels2 = new QRadioButton( i18n( "Stereo (2 channels)" ), _channelsbox );
- _channels1 = new QRadioButton( i18n( "Mono (1 channel)" ), _channelsbox );
- _bitsbox = new QButtonGroup( 1, Qt::Horizontal, i18n( "Bits" ), _hbox );
- connect( _bitsbox, SIGNAL( clicked( int ) ), this, SLOT( bitschanged( int ) ) );
- _bits16 = new QRadioButton( i18n( "16 bit" ), _bitsbox );
- _bits8 = new QRadioButton( i18n( "8 bit" ), _bitsbox );
+ 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 ) ) );
+ _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 ) ) );
+ _bits16 = new TQRadioButton( i18n( "16 bit" ), _bitsbox );
+ _bits8 = new TQRadioButton( i18n( "8 bit" ), _bitsbox );
- _usedefaults = new QCheckBox( i18n( "Use defaults for creating new files" ), this );
- connect( _usedefaults, SIGNAL( toggled( bool ) ), this, SLOT( usedefaultschanged( bool ) ) );
+ _usedefaults = new TQCheckBox( i18n( "Use defaults for creating new files" ), this );
+ connect( _usedefaults, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( usedefaultschanged( bool ) ) );
setSpacing( 5 );
@@ -84,7 +84,7 @@ kdDebug( 60005 ) << k_funcinfo << endl;
default:
_rateother->setChecked( true );
_rateotherbox->setEnabled( true );
- _rateotherline->setText( QString::number( _samplingRate ) );
+ _rateotherline->setText( TQString::number( _samplingRate ) );
break;
};
_channels = kapp->config()->readNumEntry( "Channels", 2 );
@@ -127,7 +127,7 @@ void KRecConfigFilesWidget::ratechanged( int index ) {
if ( _ratebox->find( index ) == _rate11 ) _samplingRate = 11025;
emit sRateChanged( _samplingRate );
}
-void KRecConfigFilesWidget::rateotherchanged( const QString& text ) {
+void KRecConfigFilesWidget::rateotherchanged( const TQString& text ) {
_samplingRate = text.toInt();
emit sRateChanged( _samplingRate );
}