diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /src/prefMPEG4.cpp | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip |
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/prefMPEG4.cpp')
-rw-r--r-- | src/prefMPEG4.cpp | 232 |
1 files changed, 116 insertions, 116 deletions
diff --git a/src/prefMPEG4.cpp b/src/prefMPEG4.cpp index 9787413..05540d3 100644 --- a/src/prefMPEG4.cpp +++ b/src/prefMPEG4.cpp @@ -9,21 +9,21 @@ #include "prefMPEG4.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qlabel.h> -#include <qtabwidget.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlineedit.h> -#include <qspinbox.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqvariant.h> +#include <tqpushbutton.h> +#include <tqlabel.h> +#include <tqtabwidget.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqlineedit.h> +#include <tqspinbox.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> static const unsigned char img0_prefMPEG4[] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, @@ -89,110 +89,110 @@ static const unsigned char img0_prefMPEG4[] = { /* - * Constructs a prefMPEG4 as a child of 'parent', with the + * Constructs a prefMPEG4 as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. */ -prefMPEG4::prefMPEG4( QWidget* parent, const char* name, WFlags fl ) - : QWidget( parent, name, fl ) +prefMPEG4::prefMPEG4( TQWidget* tqparent, const char* name, WFlags fl ) + : TQWidget( tqparent, name, fl ) { - QImage img; + TQImage img; img.loadFromData( img0_prefMPEG4, sizeof( img0_prefMPEG4 ), "PNG" ); image0 = img; if ( !name ) setName( "prefMPEG4" ); setIcon( image0 ); - prefMPEG4Layout = new QGridLayout( this, 1, 1, 5, 2, "prefMPEG4Layout"); + prefMPEG4Layout = new TQGridLayout( this, 1, 1, 5, 2, "prefMPEG4Layout"); - lTitle = new QLabel( this, "lTitle" ); - QFont lTitle_font( lTitle->font() ); + lTitle = new TQLabel( this, "lTitle" ); + TQFont lTitle_font( lTitle->font() ); lTitle_font.setBold( TRUE ); lTitle->setFont( lTitle_font ); prefMPEG4Layout->addWidget( lTitle, 0, 0 ); - tabWidget = new QTabWidget( this, "tabWidget" ); + tabWidget = new TQTabWidget( this, "tabWidget" ); - tabVideo = new QWidget( tabWidget, "tabVideo" ); - tabVideoLayout = new QGridLayout( tabVideo, 1, 1, 11, 6, "tabVideoLayout"); + tabVideo = new TQWidget( tabWidget, "tabVideo" ); + tabVideoLayout = new TQGridLayout( tabVideo, 1, 1, 11, 6, "tabVideoLayout"); - ck2passes = new QCheckBox( tabVideo, "ck2passes" ); + ck2passes = new TQCheckBox( tabVideo, "ck2passes" ); tabVideoLayout->addMultiCellWidget( ck2passes, 0, 0, 3, 6 ); - textLabel1_4 = new QLabel( tabVideo, "textLabel1_4" ); + textLabel1_4 = new TQLabel( tabVideo, "textLabel1_4" ); tabVideoLayout->addWidget( textLabel1_4, 0, 0 ); - cbMp4Codec = new QComboBox( FALSE, tabVideo, "cbMp4Codec" ); - cbMp4Codec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbMp4Codec->sizePolicy().hasHeightForWidth() ) ); + cbMp4Codec = new TQComboBox( FALSE, tabVideo, "cbMp4Codec" ); + cbMp4Codec->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, cbMp4Codec->sizePolicy().hasHeightForWidth() ) ); tabVideoLayout->addMultiCellWidget( cbMp4Codec, 0, 0, 1, 2 ); - textLabel3_2 = new QLabel( tabVideo, "textLabel3_2" ); + textLabel3_2 = new TQLabel( tabVideo, "textLabel3_2" ); tabVideoLayout->addWidget( textLabel3_2, 1, 0 ); - textLabel3_2_2 = new QLabel( tabVideo, "textLabel3_2_2" ); + textLabel3_2_2 = new TQLabel( tabVideo, "textLabel3_2_2" ); tabVideoLayout->addWidget( textLabel3_2_2, 2, 0 ); - leMp4Width = new QLineEdit( tabVideo, "leMp4Width" ); - leMp4Width->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, leMp4Width->sizePolicy().hasHeightForWidth() ) ); - leMp4Width->setMinimumSize( QSize( 0, 0 ) ); - leMp4Width->setMaximumSize( QSize( 70, 32767 ) ); + leMp4Width = new TQLineEdit( tabVideo, "leMp4Width" ); + leMp4Width->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, leMp4Width->sizePolicy().hasHeightForWidth() ) ); + leMp4Width->setMinimumSize( TQSize( 0, 0 ) ); + leMp4Width->setMaximumSize( TQSize( 70, 32767 ) ); leMp4Width->setMaxLength( 4 ); - leMp4Width->setAlignment( int( QLineEdit::AlignAuto ) ); + leMp4Width->tqsetAlignment( int( TQLineEdit::AlignAuto ) ); tabVideoLayout->addWidget( leMp4Width, 1, 1 ); - ckMp4AspectRatio = new QCheckBox( tabVideo, "ckMp4AspectRatio" ); - ckMp4AspectRatio->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ckMp4AspectRatio->sizePolicy().hasHeightForWidth() ) ); + ckMp4AspectRatio = new TQCheckBox( tabVideo, "ckMp4AspectRatio" ); + ckMp4AspectRatio->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, ckMp4AspectRatio->sizePolicy().hasHeightForWidth() ) ); ckMp4AspectRatio->setChecked( TRUE ); tabVideoLayout->addMultiCellWidget( ckMp4AspectRatio, 1, 1, 3, 6 ); - spacer9 = new QSpacerItem( 380, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer9 = new TQSpacerItem( 380, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabVideoLayout->addMultiCell( spacer9, 2, 2, 2, 6 ); - leMp4Height = new QLineEdit( tabVideo, "leMp4Height" ); + leMp4Height = new TQLineEdit( tabVideo, "leMp4Height" ); leMp4Height->setEnabled( FALSE ); - leMp4Height->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, leMp4Height->sizePolicy().hasHeightForWidth() ) ); - leMp4Height->setMinimumSize( QSize( 0, 0 ) ); - leMp4Height->setMaximumSize( QSize( 70, 32767 ) ); + leMp4Height->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, leMp4Height->sizePolicy().hasHeightForWidth() ) ); + leMp4Height->setMinimumSize( TQSize( 0, 0 ) ); + leMp4Height->setMaximumSize( TQSize( 70, 32767 ) ); leMp4Height->setMaxLength( 4 ); - leMp4Height->setAlignment( int( QLineEdit::AlignAuto ) ); + leMp4Height->tqsetAlignment( int( TQLineEdit::AlignAuto ) ); tabVideoLayout->addWidget( leMp4Height, 2, 1 ); - spacer8 = new QSpacerItem( 21, 110, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer8 = new TQSpacerItem( 21, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); tabVideoLayout->addItem( spacer8, 4, 5 ); - sbMp4NumberCD = new QSpinBox( tabVideo, "sbMp4NumberCD" ); - sbMp4NumberCD->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbMp4NumberCD->sizePolicy().hasHeightForWidth() ) ); + sbMp4NumberCD = new TQSpinBox( tabVideo, "sbMp4NumberCD" ); + sbMp4NumberCD->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sbMp4NumberCD->sizePolicy().hasHeightForWidth() ) ); sbMp4NumberCD->setMaxValue( 9 ); sbMp4NumberCD->setMinValue( 1 ); tabVideoLayout->addWidget( sbMp4NumberCD, 3, 5 ); - textLabel1 = new QLabel( tabVideo, "textLabel1" ); - textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); + textLabel1 = new TQLabel( tabVideo, "textLabel1" ); + textLabel1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) ); tabVideoLayout->addWidget( textLabel1, 3, 4 ); - buttonGroup1 = new QButtonGroup( tabVideo, "buttonGroup1" ); - buttonGroup1->setFrameShape( QButtonGroup::NoFrame ); + buttonGroup1 = new TQButtonGroup( tabVideo, "buttonGroup1" ); + buttonGroup1->setFrameShape( TQButtonGroup::NoFrame ); buttonGroup1->setColumnLayout(0, Qt::Vertical ); - buttonGroup1->layout()->setSpacing( 6 ); - buttonGroup1->layout()->setMargin( 2 ); - buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() ); - buttonGroup1Layout->setAlignment( Qt::AlignTop ); + buttonGroup1->tqlayout()->setSpacing( 6 ); + buttonGroup1->tqlayout()->setMargin( 2 ); + buttonGroup1Layout = new TQGridLayout( buttonGroup1->tqlayout() ); + buttonGroup1Layout->tqsetAlignment( TQt::AlignTop ); - rbSize = new QRadioButton( buttonGroup1, "rbSize" ); + rbSize = new TQRadioButton( buttonGroup1, "rbSize" ); buttonGroup1Layout->addWidget( rbSize, 0, 0 ); - sbMp4Size = new QSpinBox( buttonGroup1, "sbMp4Size" ); - sbMp4Size->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sbMp4Size->sizePolicy().hasHeightForWidth() ) ); - sbMp4Size->setMinimumSize( QSize( 80, 0 ) ); - sbMp4Size->setButtonSymbols( QSpinBox::UpDownArrows ); + sbMp4Size = new TQSpinBox( buttonGroup1, "sbMp4Size" ); + sbMp4Size->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, sbMp4Size->sizePolicy().hasHeightForWidth() ) ); + sbMp4Size->setMinimumSize( TQSize( 80, 0 ) ); + sbMp4Size->setButtonSymbols( TQSpinBox::UpDownArrows ); sbMp4Size->setMaxValue( 9999 ); sbMp4Size->setMinValue( 1 ); sbMp4Size->setLineStep( 10 ); @@ -200,86 +200,86 @@ prefMPEG4::prefMPEG4( QWidget* parent, const char* name, WFlags fl ) buttonGroup1Layout->addWidget( sbMp4Size, 0, 1 ); - rbBitrate = new QRadioButton( buttonGroup1, "rbBitrate" ); + rbBitrate = new TQRadioButton( buttonGroup1, "rbBitrate" ); buttonGroup1Layout->addWidget( rbBitrate, 1, 0 ); - spacer6 = new QSpacerItem( 51, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer6 = new TQSpacerItem( 51, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); buttonGroup1Layout->addMultiCell( spacer6, 0, 1, 2, 2 ); - leMp4VideoBitrate = new QLineEdit( buttonGroup1, "leMp4VideoBitrate" ); - leMp4VideoBitrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, leMp4VideoBitrate->sizePolicy().hasHeightForWidth() ) ); + leMp4VideoBitrate = new TQLineEdit( buttonGroup1, "leMp4VideoBitrate" ); + leMp4VideoBitrate->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, leMp4VideoBitrate->sizePolicy().hasHeightForWidth() ) ); buttonGroup1Layout->addWidget( leMp4VideoBitrate, 1, 1 ); tabVideoLayout->addMultiCellWidget( buttonGroup1, 3, 3, 0, 3 ); - spacer3 = new QSpacerItem( 130, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer3 = new TQSpacerItem( 130, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabVideoLayout->addItem( spacer3, 3, 6 ); - tabWidget->insertTab( tabVideo, QString::fromLatin1("") ); + tabWidget->insertTab( tabVideo, TQString::tqfromLatin1("") ); - tabAudio = new QWidget( tabWidget, "tabAudio" ); - tabAudioLayout = new QGridLayout( tabAudio, 1, 1, 11, 6, "tabAudioLayout"); + tabAudio = new TQWidget( tabWidget, "tabAudio" ); + tabAudioLayout = new TQGridLayout( tabAudio, 1, 1, 11, 6, "tabAudioLayout"); - textLabel1_4_2 = new QLabel( tabAudio, "textLabel1_4_2" ); + textLabel1_4_2 = new TQLabel( tabAudio, "textLabel1_4_2" ); tabAudioLayout->addWidget( textLabel1_4_2, 0, 0 ); - cbMp4AudioCodec = new QComboBox( FALSE, tabAudio, "cbMp4AudioCodec" ); - cbMp4AudioCodec->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, cbMp4AudioCodec->sizePolicy().hasHeightForWidth() ) ); + cbMp4AudioCodec = new TQComboBox( FALSE, tabAudio, "cbMp4AudioCodec" ); + cbMp4AudioCodec->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, cbMp4AudioCodec->sizePolicy().hasHeightForWidth() ) ); tabAudioLayout->addMultiCellWidget( cbMp4AudioCodec, 0, 0, 1, 2 ); - textLabel1_5 = new QLabel( tabAudio, "textLabel1_5" ); + textLabel1_5 = new TQLabel( tabAudio, "textLabel1_5" ); tabAudioLayout->addWidget( textLabel1_5, 1, 0 ); - leMp4AudioBitrate = new QLineEdit( tabAudio, "leMp4AudioBitrate" ); - leMp4AudioBitrate->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, leMp4AudioBitrate->sizePolicy().hasHeightForWidth() ) ); - leMp4AudioBitrate->setMinimumSize( QSize( 0, 0 ) ); - leMp4AudioBitrate->setMaximumSize( QSize( 70, 32767 ) ); + leMp4AudioBitrate = new TQLineEdit( tabAudio, "leMp4AudioBitrate" ); + leMp4AudioBitrate->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, leMp4AudioBitrate->sizePolicy().hasHeightForWidth() ) ); + leMp4AudioBitrate->setMinimumSize( TQSize( 0, 0 ) ); + leMp4AudioBitrate->setMaximumSize( TQSize( 70, 32767 ) ); leMp4AudioBitrate->setMaxLength( 3 ); - leMp4AudioBitrate->setAlignment( int( QLineEdit::AlignAuto ) ); + leMp4AudioBitrate->tqsetAlignment( int( TQLineEdit::AlignAuto ) ); tabAudioLayout->addWidget( leMp4AudioBitrate, 1, 1 ); - spacer4 = new QSpacerItem( 376, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer4 = new TQSpacerItem( 376, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); tabAudioLayout->addMultiCell( spacer4, 1, 1, 2, 3 ); - sbAudioGain = new QSpinBox( tabAudio, "sbAudioGain" ); + sbAudioGain = new TQSpinBox( tabAudio, "sbAudioGain" ); sbAudioGain->setMaxValue( 10 ); sbAudioGain->setMinValue( 1 ); tabAudioLayout->addWidget( sbAudioGain, 2, 1 ); - textLabel1_2 = new QLabel( tabAudio, "textLabel1_2" ); + textLabel1_2 = new TQLabel( tabAudio, "textLabel1_2" ); tabAudioLayout->addWidget( textLabel1_2, 2, 0 ); - spacer14 = new QSpacerItem( 20, 61, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer14 = new TQSpacerItem( 20, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); tabAudioLayout->addItem( spacer14, 3, 3 ); - tabWidget->insertTab( tabAudio, QString::fromLatin1("") ); + tabWidget->insertTab( tabAudio, TQString::tqfromLatin1("") ); prefMPEG4Layout->addWidget( tabWidget, 1, 0 ); - ckUseCache = new QCheckBox( this, "ckUseCache" ); + ckUseCache = new TQCheckBox( this, "ckUseCache" ); prefMPEG4Layout->addWidget( ckUseCache, 2, 0 ); languageChange(); - resize( QSize(582, 460).expandedTo(minimumSizeHint()) ); + resize( TQSize(582, 460).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( cbMp4AudioCodec, SIGNAL( activated(int) ), this, SLOT( cbMp4AudioCodecActivated(int) ) ); - connect( cbMp4Codec, SIGNAL( activated(int) ), this, SLOT( cbMp4CodecActivated(int) ) ); - connect( ck2passes, SIGNAL( clicked() ), this, SLOT( ck2passesClicked() ) ); - connect( ckMp4AspectRatio, SIGNAL( clicked() ), this, SLOT( ckMp4AspectRatioClick() ) ); - connect( rbBitrate, SIGNAL( clicked() ), this, SLOT( rgVideoSizeChanged() ) ); - connect( rbSize, SIGNAL( clicked() ), this, SLOT( rgVideoSizeChanged() ) ); - connect( leMp4Width, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4WidthTextChanged(const QString&) ) ); - connect( leMp4Height, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4HeightTextChanged(const QString&) ) ); - connect( sbMp4Size, SIGNAL( valueChanged(int) ), this, SLOT( sbMp4SizeValueChanged(int) ) ); - connect( sbMp4NumberCD, SIGNAL( valueChanged(int) ), this, SLOT( sbMp4NumberCDValueChanged(int) ) ); - connect( leMp4VideoBitrate, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4VideoBitrateTextChanged(const QString&) ) ); - connect( sbAudioGain, SIGNAL( valueChanged(int) ), this, SLOT( sbAudioGainValueChanged(int) ) ); - connect( leMp4AudioBitrate, SIGNAL( textChanged(const QString&) ), this, SLOT( leMp4AudioBitrateTextChanged(const QString&) ) ); - connect( ckUseCache, SIGNAL( clicked() ), this, SLOT( ckUseCacheClick() ) ); + connect( cbMp4AudioCodec, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbMp4AudioCodecActivated(int) ) ); + connect( cbMp4Codec, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( cbMp4CodecActivated(int) ) ); + connect( ck2passes, TQT_SIGNAL( clicked() ), this, TQT_SLOT( ck2passesClicked() ) ); + connect( ckMp4AspectRatio, TQT_SIGNAL( clicked() ), this, TQT_SLOT( ckMp4AspectRatioClick() ) ); + connect( rbBitrate, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rgVideoSizeChanged() ) ); + connect( rbSize, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rgVideoSizeChanged() ) ); + connect( leMp4Width, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4WidthTextChanged(const TQString&) ) ); + connect( leMp4Height, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4HeightTextChanged(const TQString&) ) ); + connect( sbMp4Size, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( sbMp4SizeValueChanged(int) ) ); + connect( sbMp4NumberCD, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( sbMp4NumberCDValueChanged(int) ) ); + connect( leMp4VideoBitrate, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4VideoBitrateTextChanged(const TQString&) ) ); + connect( sbAudioGain, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( sbAudioGainValueChanged(int) ) ); + connect( leMp4AudioBitrate, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( leMp4AudioBitrateTextChanged(const TQString&) ) ); + connect( ckUseCache, TQT_SIGNAL( clicked() ), this, TQT_SLOT( ckUseCacheClick() ) ); // tab order setTabOrder( tabWidget, cbMp4Codec ); @@ -302,7 +302,7 @@ prefMPEG4::prefMPEG4( QWidget* parent, const char* name, WFlags fl ) */ prefMPEG4::~prefMPEG4() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -312,9 +312,9 @@ prefMPEG4::~prefMPEG4() void prefMPEG4::languageChange() { setCaption( tr2i18n( "Form1" ) ); - lTitle->setText( QString::null ); + lTitle->setText( TQString() ); ck2passes->setText( tr2i18n( "2 pass" ) ); - ck2passes->setAccel( QKeySequence( tr2i18n( "Alt+2" ) ) ); + ck2passes->setAccel( TQKeySequence( tr2i18n( "Alt+2" ) ) ); textLabel1_4->setText( tr2i18n( "Codec" ) ); cbMp4Codec->clear(); cbMp4Codec->insertItem( tr2i18n( "XviD" ) ); @@ -324,17 +324,17 @@ void prefMPEG4::languageChange() textLabel3_2->setText( tr2i18n( "Width" ) ); textLabel3_2_2->setText( tr2i18n( "Height" ) ); leMp4Width->setText( tr2i18n( "640" ) ); - leMp4Width->setInputMask( QString::null ); + leMp4Width->setInputMask( TQString() ); ckMp4AspectRatio->setText( tr2i18n( "&keep aspect ratio" ) ); - ckMp4AspectRatio->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) ); - leMp4Height->setInputMask( QString::null ); + ckMp4AspectRatio->setAccel( TQKeySequence( tr2i18n( "Alt+K" ) ) ); + leMp4Height->setInputMask( TQString() ); textLabel1->setText( tr2i18n( "X" ) ); - buttonGroup1->setTitle( QString::null ); + buttonGroup1->setTitle( TQString() ); rbSize->setText( tr2i18n( "File size" ) ); - rbSize->setAccel( QKeySequence( tr2i18n( "Alt+S" ) ) ); + rbSize->setAccel( TQKeySequence( tr2i18n( "Alt+S" ) ) ); sbMp4Size->setSuffix( tr2i18n( " MB" ) ); rbBitrate->setText( tr2i18n( "Bitrate" ) ); - rbBitrate->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) ); + rbBitrate->setAccel( TQKeySequence( tr2i18n( "Alt+B" ) ) ); tabWidget->changeTab( tabVideo, tr2i18n( "Video" ) ); textLabel1_4_2->setText( tr2i18n( "Codec" ) ); cbMp4AudioCodec->clear(); @@ -344,7 +344,7 @@ void prefMPEG4::languageChange() cbMp4AudioCodec->insertItem( tr2i18n( "ac3" ) ); cbMp4AudioCodec->insertItem( tr2i18n( "adpcm ima" ) ); textLabel1_5->setText( tr2i18n( "Bitrate" ) ); - leMp4AudioBitrate->setText( QString::null ); + leMp4AudioBitrate->setText( TQString() ); textLabel1_2->setText( tr2i18n( "Gain" ) ); tabWidget->changeTab( tabAudio, tr2i18n( "Audio" ) ); ckUseCache->setText( tr2i18n( "use cell cache" ) ); @@ -380,19 +380,19 @@ void prefMPEG4::sbMp4NumberCDValueChanged(int) qWarning( "prefMPEG4::sbMp4NumberCDValueChanged(int): Not implemented yet" ); } -void prefMPEG4::leMp4WidthTextChanged(const QString&) +void prefMPEG4::leMp4WidthTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4WidthTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4WidthTextChanged(const TQString&): Not implemented yet" ); } -void prefMPEG4::leMp4HeightTextChanged(const QString&) +void prefMPEG4::leMp4HeightTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4HeightTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4HeightTextChanged(const TQString&): Not implemented yet" ); } -void prefMPEG4::leMp4AudioBitrateTextChanged(const QString&) +void prefMPEG4::leMp4AudioBitrateTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4AudioBitrateTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4AudioBitrateTextChanged(const TQString&): Not implemented yet" ); } void prefMPEG4::rgVideoSizeChanged() @@ -400,9 +400,9 @@ void prefMPEG4::rgVideoSizeChanged() qWarning( "prefMPEG4::rgVideoSizeChanged(): Not implemented yet" ); } -void prefMPEG4::leMp4VideoBitrateTextChanged(const QString&) +void prefMPEG4::leMp4VideoBitrateTextChanged(const TQString&) { - qWarning( "prefMPEG4::leMp4VideoBitrateTextChanged(const QString&): Not implemented yet" ); + qWarning( "prefMPEG4::leMp4VideoBitrateTextChanged(const TQString&): Not implemented yet" ); } void prefMPEG4::sbAudioGainValueChanged(int) |