diff options
Diffstat (limited to 'src/mencoderCmdGen.cpp')
-rw-r--r-- | src/mencoderCmdGen.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/src/mencoderCmdGen.cpp b/src/mencoderCmdGen.cpp index 93701c5..744e527 100644 --- a/src/mencoderCmdGen.cpp +++ b/src/mencoderCmdGen.cpp @@ -9,38 +9,38 @@ #include "mencoderCmdGen.h" -#include <qvariant.h> +#include <tqvariant.h> #include <kpushbutton.h> -#include <qheader.h> -#include <qlistview.h> -#include <qwidgetstack.h> -#include <qwidget.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <tqheader.h> +#include <tqlistview.h> +#include <tqwidgetstack.h> +#include <tqwidget.h> +#include <tqlayout.h> +#include <tqtooltip.h> +#include <tqwhatsthis.h> +#include <tqimage.h> +#include <tqpixmap.h> #include "kpushbutton.h" /* - * Constructs a MyDialog1 as a child of 'parent', with the + * Constructs a MyDialog1 as a child of 'tqparent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ -MyDialog1::MyDialog1( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, fl ) +MyDialog1::MyDialog1( TQWidget* tqparent, const char* name, bool modal, WFlags fl ) + : TQDialog( tqparent, name, modal, fl ) { if ( !name ) setName( "MyDialog1" ); setSizeGripEnabled( TRUE ); - MyDialog1Layout = new QGridLayout( this, 1, 1, 11, 6, "MyDialog1Layout"); + MyDialog1Layout = new TQGridLayout( this, 1, 1, 11, 6, "MyDialog1Layout"); - Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); - Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - Layout1->addItem( Horizontal_Spacing2 ); + Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); + Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); + Layout1->addItem(Horizontal_Spacing2 ); buttonOk = new KPushButton( this, "buttonOk" ); buttonOk->setAutoDefault( TRUE ); @@ -55,30 +55,30 @@ MyDialog1::MyDialog1( QWidget* parent, const char* name, bool modal, WFlags fl ) MyDialog1Layout->addMultiCellLayout( Layout1, 1, 1, 0, 1 ); - listView = new QListView( this, "listView" ); - listView->addColumn( QString::null ); + listView = new TQListView( this, "listView" ); + listView->addColumn( TQString() ); listView->header()->setClickEnabled( FALSE, listView->header()->count() - 1 ); listView->header()->setResizeEnabled( FALSE, listView->header()->count() - 1 ); - listView->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, listView->sizePolicy().hasHeightForWidth() ) ); - listView->setMinimumSize( QSize( 200, 0 ) ); - listView->setResizeMode( QListView::LastColumn ); + listView->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, listView->sizePolicy().hasHeightForWidth() ) ); + listView->setMinimumSize( TQSize( 200, 0 ) ); + listView->setResizeMode( TQListView::LastColumn ); MyDialog1Layout->addWidget( listView, 0, 0 ); - wsOptions = new QWidgetStack( this, "wsOptions" ); + wsOptions = new TQWidgetStack( this, "wsOptions" ); - WStackPage = new QWidget( wsOptions, "WStackPage" ); + WStackPage = new TQWidget( wsOptions, "WStackPage" ); wsOptions->addWidget( WStackPage, 0 ); MyDialog1Layout->addWidget( wsOptions, 0, 1 ); languageChange(); - resize( QSize(655, 498).expandedTo(minimumSizeHint()) ); + resize( TQSize(655, 498).expandedTo(tqminimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections - connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); - connect( listView, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( listViewCurrentChanged(QListViewItem*) ) ); + connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); + connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); + connect( listView, TQT_SIGNAL( currentChanged(TQListViewItem*) ), this, TQT_SLOT( listViewCurrentChanged(TQListViewItem*) ) ); } /* @@ -86,7 +86,7 @@ MyDialog1::MyDialog1( QWidget* parent, const char* name, bool modal, WFlags fl ) */ MyDialog1::~MyDialog1() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -96,34 +96,34 @@ MyDialog1::~MyDialog1() void MyDialog1::languageChange() { setCaption( tr2i18n( "MEncoder options" ) ); - listView->header()->setLabel( 0, QString::null ); + listView->header()->setLabel( 0, TQString() ); listView->clear(); - QListViewItem * item_2 = new QListViewItem( listView, 0 ); + TQListViewItem * item_2 = new TQListViewItem( listView, 0 ); item_2->setOpen( TRUE ); - QListViewItem * item = new QListViewItem( item_2, 0 ); + TQListViewItem * item = new TQListViewItem( item_2, 0 ); item->setText( 0, tr2i18n( "faac" ) ); item_2->setOpen( TRUE ); - item = new QListViewItem( item_2, item ); + item = new TQListViewItem( item_2, item ); item->setText( 0, tr2i18n( "lavc" ) ); item_2->setText( 0, tr2i18n( "Audio Codec" ) ); - QListViewItem * item_3 = new QListViewItem( listView, item_2 ); + TQListViewItem * item_3 = new TQListViewItem( listView, item_2 ); item_3->setOpen( TRUE ); - item = new QListViewItem( item_3, item_2 ); + item = new TQListViewItem( item_3, item_2 ); item->setText( 0, tr2i18n( "x264" ) ); item_3->setOpen( TRUE ); - item = new QListViewItem( item_3, item ); + item = new TQListViewItem( item_3, item ); item->setText( 0, tr2i18n( "xvid" ) ); item_3->setOpen( TRUE ); - item = new QListViewItem( item_3, item ); + item = new TQListViewItem( item_3, item ); item->setText( 0, tr2i18n( "lavc" ) ); item_3->setText( 0, tr2i18n( "Video Codec" ) ); } -void MyDialog1::listViewCurrentChanged(QListViewItem*) +void MyDialog1::listViewCurrentChanged(TQListViewItem*) { - qWarning( "MyDialog1::listViewCurrentChanged(QListViewItem*): Not implemented yet" ); + qWarning( "MyDialog1::listViewCurrentChanged(TQListViewItem*): Not implemented yet" ); } #include "mencoderCmdGen.moc" |