From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krec/krecnewproperties.cpp | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'krec/krecnewproperties.cpp') diff --git a/krec/krecnewproperties.cpp b/krec/krecnewproperties.cpp index b63cd032..12d386ed 100644 --- a/krec/krecnewproperties.cpp +++ b/krec/krecnewproperties.cpp @@ -18,24 +18,24 @@ #include "krecconfig_fileswidget.h" #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include -KRecNewProperties::KRecNewProperties( QWidget* p, const char* n ) - : QDialog( p,n, 0, Qt::WType_Dialog|Qt::WStyle_Customize|Qt::WStyle_DialogBorder ) - , _filename( QString::null ) +KRecNewProperties::KRecNewProperties( TQWidget* p, const char* n ) + : TQDialog( p,n, 0, Qt::WType_Dialog|Qt::WStyle_Customize|Qt::WStyle_DialogBorder ) + , _filename( TQString::null ) , _samplerate( 44100 ), _channels( 2 ), _bits( 16 ) { kdDebug( 60005 ) << k_funcinfo << endl; @@ -46,10 +46,10 @@ kdDebug( 60005 ) << k_funcinfo << endl; _bits = config->readNumEntry( "Bits", 16 ); _usedefaults = config->readBoolEntry( "UseDefaults", false ); - _layout = new QVBoxLayout( this, 5, 5 ); + _layout = new TQVBoxLayout( this, 5, 5 ); - QLabel *captionlabel = new QLabel( this ); - QFont labelfont( captionlabel->font() ); + TQLabel *captionlabel = new TQLabel( this ); + TQFont labelfont( captionlabel->font() ); labelfont.setPointSize( labelfont.pointSize()*3/2 ); captionlabel->setFont( labelfont ); captionlabel->setText( i18n( "Properties for the new File" ) ); @@ -57,16 +57,16 @@ kdDebug( 60005 ) << k_funcinfo << endl; _layout->addWidget( captionlabel ); _filewidget = new KRecConfigFilesWidget( this ); - connect( _filewidget, SIGNAL( sRateChanged( int ) ), this, SLOT( ratechanged( int ) ) ); - connect( _filewidget, SIGNAL( sChannelsChanged( int ) ), this, SLOT( channelschanged( int ) ) ); - connect( _filewidget, SIGNAL( sBitsChanged( int ) ), this, SLOT( bitschanged( int ) ) ); - connect( _filewidget, SIGNAL( sUseDefaultsChanged( bool ) ), this, SLOT( usedefaultschanged( bool ) ) ); + connect( _filewidget, TQT_SIGNAL( sRateChanged( int ) ), this, TQT_SLOT( ratechanged( int ) ) ); + connect( _filewidget, TQT_SIGNAL( sChannelsChanged( int ) ), this, TQT_SLOT( channelschanged( int ) ) ); + connect( _filewidget, TQT_SIGNAL( sBitsChanged( int ) ), this, TQT_SLOT( bitschanged( int ) ) ); + connect( _filewidget, TQT_SIGNAL( sUseDefaultsChanged( bool ) ), this, TQT_SLOT( usedefaultschanged( bool ) ) ); - QWidget *_btnWidget = new QWidget( this ); - _layoutbuttons = new QHBoxLayout( _btnWidget ); + TQWidget *_btnWidget = new TQWidget( this ); + _layoutbuttons = new TQHBoxLayout( _btnWidget ); _layoutbuttons->addStretch( 100 ); _btnok = new KPushButton( KStdGuiItem::ok(), _btnWidget ); - connect( _btnok, SIGNAL( clicked() ), this, SLOT( accept() ) ); + connect( _btnok, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); _layoutbuttons->addWidget( _btnok, 0 ); _layout->addWidget( new KSeparator( KSeparator::HLine, this ) ); @@ -74,13 +74,13 @@ kdDebug( 60005 ) << k_funcinfo << endl; _layout->addWidget( new KSeparator( KSeparator::HLine, this ) ); _layout->addWidget( _btnWidget ); - setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Maximum ); + setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); } KRecNewProperties::~KRecNewProperties() { kdDebug( 60005 ) << k_funcinfo << endl; } -QString KRecNewProperties::filename() { return _filename; } +TQString KRecNewProperties::filename() { return _filename; } int KRecNewProperties::samplerate() { return _samplerate; } int KRecNewProperties::channels() { return _channels; } int KRecNewProperties::bits() { return _bits; } @@ -97,6 +97,6 @@ void KRecNewProperties::usedefaultschanged( bool n ) { void KRecNewProperties::done( int r ) { kdDebug( 60005 ) << k_funcinfo << endl; - QDialog::done( r ); + TQDialog::done( r ); } -- cgit v1.2.1