diff options
Diffstat (limited to 'krecipes/src/dialogs/unitsdialog.cpp')
-rw-r--r-- | krecipes/src/dialogs/unitsdialog.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/krecipes/src/dialogs/unitsdialog.cpp b/krecipes/src/dialogs/unitsdialog.cpp index e60f72a..deb3162 100644 --- a/krecipes/src/dialogs/unitsdialog.cpp +++ b/krecipes/src/dialogs/unitsdialog.cpp @@ -10,8 +10,8 @@ * (at your option) any later version. * ***************************************************************************/ -#include <qlayout.h> -#include <qtabwidget.h> +#include <ntqlayout.h> +#include <ntqtabwidget.h> #include "unitsdialog.h" #include "createelementdialog.h" @@ -27,30 +27,30 @@ #include <kmessagebox.h> #include <kprogress.h> -UnitsDialog::UnitsDialog( QWidget *parent, RecipeDB *db ) : QWidget( parent ) +UnitsDialog::UnitsDialog( TQWidget *parent, RecipeDB *db ) : TQWidget( parent ) { // Store pointer to database database = db; // Design dialog - QHBoxLayout* page_layout = new QHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() ); + TQHBoxLayout* page_layout = new TQHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() ); - QTabWidget *tabWidget = new QTabWidget( this ); + TQTabWidget *tabWidget = new TQTabWidget( this ); - QWidget *unitTab = new QWidget( tabWidget ); - QHBoxLayout* layout = new QHBoxLayout( unitTab, KDialog::marginHint(), KDialog::spacingHint() ); + TQWidget *unitTab = new TQWidget( tabWidget ); + TQHBoxLayout* layout = new TQHBoxLayout( unitTab, KDialog::marginHint(), KDialog::spacingHint() ); unitListView = new StdUnitListView( unitTab, database, true ); layout->addWidget( unitListView ); - QVBoxLayout* vboxl = new QVBoxLayout( KDialog::spacingHint() ); - newUnitButton = new QPushButton( unitTab ); + TQVBoxLayout* vboxl = new TQVBoxLayout( KDialog::spacingHint() ); + newUnitButton = new TQPushButton( unitTab ); newUnitButton->setText( i18n( "Create ..." ) ); newUnitButton->setFlat( true ); vboxl->addWidget( newUnitButton ); - removeUnitButton = new QPushButton( unitTab ); + removeUnitButton = new TQPushButton( unitTab ); removeUnitButton->setText( i18n( "Delete" ) ); removeUnitButton->setFlat( true ); vboxl->addWidget( removeUnitButton ); @@ -110,7 +110,7 @@ void UnitsDialog::loadConversionTable( ConversionTable *table, Unit::Type type ) UnitList unitList; database->loadUnits( &unitList, type ); - QStringList unitNames; + TQStringList unitNames; IDList unitIDs; // We need to store these in the table, so rows and cols are identified by unitID, not name. table->clear(); for ( UnitList::const_iterator unit_it = unitList.begin(); unit_it != unitList.end(); ++unit_it ) { @@ -171,7 +171,7 @@ void UnitsDialog::saveAllRatios( UnitRatioList &ratioList ) #if 0 ConversionTable *conversionTable = massConversionTable; - KProgressDialog progress_dialog( this, "progress_dialog", i18n( "Finding Unit Ratios" ), QString::null, true ); + KProgressDialog progress_dialog( this, "progress_dialog", i18n( "Finding Unit Ratios" ), TQString::null, true ); progress_dialog.progressBar() ->setTotalSteps( ratioList.count() * ratioList.count() ); for ( UnitRatioList::const_iterator current_it = ratioList.begin(); current_it != ratioList.end(); ++current_it ) { |