diff options
Diffstat (limited to 'krecipes/src/dialogs/resizerecipedialog.cpp')
-rw-r--r-- | krecipes/src/dialogs/resizerecipedialog.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/krecipes/src/dialogs/resizerecipedialog.cpp b/krecipes/src/dialogs/resizerecipedialog.cpp index 6d4131c..3b3ef34 100644 --- a/krecipes/src/dialogs/resizerecipedialog.cpp +++ b/krecipes/src/dialogs/resizerecipedialog.cpp @@ -14,19 +14,19 @@ #include <cmath> -#include <qvbox.h> -#include <qvariant.h> -#include <qbuttongroup.h> -#include <qframe.h> -#include <qlabel.h> +#include <ntqvbox.h> +#include <ntqvariant.h> +#include <ntqbuttongroup.h> +#include <ntqframe.h> +#include <ntqlabel.h> #include <knuminput.h> #include <klineedit.h> -#include <qradiobutton.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> -#include <qimage.h> -#include <qpixmap.h> +#include <ntqradiobutton.h> +#include <ntqlayout.h> +#include <ntqtooltip.h> +#include <ntqwhatsthis.h> +#include <ntqimage.h> +#include <ntqpixmap.h> #include <klocale.h> #include <kmessagebox.h> @@ -38,43 +38,43 @@ #define FACTOR_RADIO_BUTTON 0 #define SERVINGS_RADIO_BUTTON 1 -ResizeRecipeDialog::ResizeRecipeDialog( QWidget *parent, Recipe *recipe ) +ResizeRecipeDialog::ResizeRecipeDialog( TQWidget *parent, Recipe *recipe ) : KDialogBase( parent, "ResizeRecipeDialog", true, i18n( "Resize Recipe" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok ), m_recipe( recipe ) { - QVBox *page = makeVBoxMainWidget(); + TQVBox *page = makeVBoxMainWidget(); - buttonGroup = new QButtonGroup( page ); - buttonGroup->setSizePolicy( QSizePolicy( ( QSizePolicy::SizeType ) 5, ( QSizePolicy::SizeType ) 7, 0, 1, buttonGroup->sizePolicy().hasHeightForWidth() ) ); + buttonGroup = new TQButtonGroup( page ); + buttonGroup->setSizePolicy( TQSizePolicy( ( TQSizePolicy::SizeType ) 5, ( TQSizePolicy::SizeType ) 7, 0, 1, buttonGroup->sizePolicy().hasHeightForWidth() ) ); buttonGroup->setLineWidth( 0 ); - buttonGroup->setColumnLayout( 0, Qt::Vertical ); + buttonGroup->setColumnLayout( 0, TQt::Vertical ); buttonGroup->layout() ->setSpacing( 6 ); buttonGroup->layout() ->setMargin( 11 ); - buttonGroupLayout = new QVBoxLayout( buttonGroup->layout() ); - buttonGroupLayout->setAlignment( Qt::AlignTop ); + buttonGroupLayout = new TQVBoxLayout( buttonGroup->layout() ); + buttonGroupLayout->setAlignment( TQt::AlignTop ); - yieldRadioButton = new QRadioButton( buttonGroup ); + yieldRadioButton = new TQRadioButton( buttonGroup ); buttonGroup->insert( yieldRadioButton, SERVINGS_RADIO_BUTTON ); buttonGroupLayout->addWidget( yieldRadioButton ); - yieldFrame = new QFrame( buttonGroup ); - yieldFrame->setFrameShape( QFrame::Box ); - yieldFrame->setFrameShadow( QFrame::Sunken ); + yieldFrame = new TQFrame( buttonGroup ); + yieldFrame->setFrameShape( TQFrame::Box ); + yieldFrame->setFrameShadow( TQFrame::Sunken ); yieldFrame->setLineWidth( 1 ); - yieldFrameLayout = new QGridLayout( yieldFrame, 1, 1, 11, 6 ); + yieldFrameLayout = new TQGridLayout( yieldFrame, 1, 1, 11, 6 ); - currentYieldLabel = new QLabel( yieldFrame ); + currentYieldLabel = new TQLabel( yieldFrame ); yieldFrameLayout->addWidget( currentYieldLabel, 0, 0 ); - newYieldLabel = new QLabel( yieldFrame ); + newYieldLabel = new TQLabel( yieldFrame ); yieldFrameLayout->addMultiCellWidget( newYieldLabel, 1, 1, 0, 1 ); currentYieldInput = new KLineEdit( yieldFrame ); currentYieldInput->setReadOnly( TRUE ); - currentYieldInput->setAlignment( Qt::AlignRight ); + currentYieldInput->setAlignment( TQt::AlignRight ); yieldFrameLayout->addMultiCellWidget( currentYieldInput, 0, 0, 1, 2 ); newYieldInput = new FractionInput( yieldFrame ); @@ -82,22 +82,22 @@ ResizeRecipeDialog::ResizeRecipeDialog( QWidget *parent, Recipe *recipe ) buttonGroupLayout->addWidget( yieldFrame ); - factorRadioButton = new QRadioButton( buttonGroup ); + factorRadioButton = new TQRadioButton( buttonGroup ); buttonGroup->insert( factorRadioButton, FACTOR_RADIO_BUTTON ); buttonGroupLayout->addWidget( factorRadioButton ); - factorFrame = new QFrame( buttonGroup ); - factorFrame->setSizePolicy( QSizePolicy( ( QSizePolicy::SizeType ) 7, ( QSizePolicy::SizeType ) 5, 1, 0, factorFrame->sizePolicy().hasHeightForWidth() ) ); - factorFrame->setFrameShape( QFrame::Box ); - factorFrame->setFrameShadow( QFrame::Sunken ); + factorFrame = new TQFrame( buttonGroup ); + factorFrame->setSizePolicy( TQSizePolicy( ( TQSizePolicy::SizeType ) 7, ( TQSizePolicy::SizeType ) 5, 1, 0, factorFrame->sizePolicy().hasHeightForWidth() ) ); + factorFrame->setFrameShape( TQFrame::Box ); + factorFrame->setFrameShadow( TQFrame::Sunken ); factorFrame->setLineWidth( 1 ); - factorFrameLayout = new QHBoxLayout( factorFrame, 11, 6 ); + factorFrameLayout = new TQHBoxLayout( factorFrame, 11, 6 ); - factorLabel = new QLabel( factorFrame ); + factorLabel = new TQLabel( factorFrame ); factorFrameLayout->addWidget( factorLabel ); factorInput = new FractionInput( factorFrame ); - factorInput->setSizePolicy( QSizePolicy( ( QSizePolicy::SizeType ) 7, ( QSizePolicy::SizeType ) 5, 0, 0, factorInput->sizePolicy().hasHeightForWidth() ) ); + factorInput->setSizePolicy( TQSizePolicy( ( TQSizePolicy::SizeType ) 7, ( TQSizePolicy::SizeType ) 5, 0, 0, factorInput->sizePolicy().hasHeightForWidth() ) ); factorFrameLayout->addWidget( factorInput ); buttonGroupLayout->addWidget( factorFrame ); @@ -123,7 +123,7 @@ ResizeRecipeDialog::ResizeRecipeDialog( QWidget *parent, Recipe *recipe ) void ResizeRecipeDialog::languageChange() { - buttonGroup->setTitle( QString::null ); + buttonGroup->setTitle( TQString::null ); yieldRadioButton->setText( i18n( "Scale by yield" ) ); newYieldLabel->setText( i18n( "New yield:" ) ); currentYieldLabel->setText( i18n( "Current yield:" ) ); @@ -174,7 +174,7 @@ void ResizeRecipeDialog::accept() } } - QDialog::accept(); + TQDialog::accept(); } //TODO YIELD: handle ranges |