summaryrefslogtreecommitdiffstats
path: root/krec/krecnewproperties.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /krec/krecnewproperties.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krec/krecnewproperties.cpp')
-rw-r--r--krec/krecnewproperties.cpp48
1 files changed, 24 insertions, 24 deletions
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 <kconfig.h>
-#include <qbuttongroup.h>
-#include <qvbuttongroup.h>
-#include <qradiobutton.h>
-#include <qlayout.h>
+#include <tqbuttongroup.h>
+#include <tqvbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqlayout.h>
#include <kseparator.h>
#include <kpushbutton.h>
#include <kstdguiitem.h>
-#include <qlabel.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qfont.h>
+#include <tqlabel.h>
+#include <tqhbox.h>
+#include <tqvbox.h>
+#include <tqfont.h>
#include <kdebug.h>
#include <klocale.h>
-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 );
}