diff options
Diffstat (limited to 'krecipes/src/dialogs/selectpropertydialog.cpp')
-rw-r--r-- | krecipes/src/dialogs/selectpropertydialog.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/krecipes/src/dialogs/selectpropertydialog.cpp b/krecipes/src/dialogs/selectpropertydialog.cpp index acf3c79..8b46d12 100644 --- a/krecipes/src/dialogs/selectpropertydialog.cpp +++ b/krecipes/src/dialogs/selectpropertydialog.cpp @@ -18,7 +18,7 @@ #include "datablocks/ingredientpropertylist.h" -SelectPropertyDialog::SelectPropertyDialog( QWidget* parent, IngredientPropertyList *propertyList, UnitList *unitList, OptionFlag showEmpty ) +SelectPropertyDialog::SelectPropertyDialog( TQWidget* parent, IngredientPropertyList *propertyList, UnitList *unitList, OptionFlag showEmpty ) : KDialogBase( parent, "SelectPropertyDialog", true, i18n( "Choose Property" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok ), m_showEmpty(showEmpty) { @@ -27,15 +27,15 @@ SelectPropertyDialog::SelectPropertyDialog( QWidget* parent, IngredientPropertyL unitListBack = new UnitList; // Initialize Widgets - QVBox *page = makeVBoxMainWidget(); + TQVBox *page = makeVBoxMainWidget(); - box = new QGroupBox( page ); + box = new TQGroupBox( page ); box->setTitle( i18n( "Choose Property" ) ); - box->setColumnLayout( 0, Qt::Vertical ); + box->setColumnLayout( 0, TQt::Vertical ); box->layout() ->setSpacing( 6 ); box->layout() ->setMargin( 11 ); - QVBoxLayout *boxLayout = new QVBoxLayout( box->layout() ); - boxLayout->setAlignment( Qt::AlignTop ); + TQVBoxLayout *boxLayout = new TQVBoxLayout( box->layout() ); + boxLayout->setAlignment( TQt::AlignTop ); propertyChooseView = new KListView( box, "propertyChooseView" ); @@ -48,10 +48,10 @@ SelectPropertyDialog::SelectPropertyDialog( QWidget* parent, IngredientPropertyL propertyChooseView->setAllColumnsShowFocus( true ); boxLayout->addWidget( propertyChooseView ); - QHBoxLayout *layout2 = new QHBoxLayout; + TQHBoxLayout *layout2 = new TQHBoxLayout; - perUnitsLabel = new QLabel( box ); - perUnitsLabel->setGeometry( QRect( 5, 285, 100, 30 ) ); + perUnitsLabel = new TQLabel( box ); + perUnitsLabel->setGeometry( TQRect( 5, 285, 100, 30 ) ); perUnitsLabel->setText( i18n( "Per units:" ) ); layout2->addWidget( perUnitsLabel ); @@ -59,7 +59,7 @@ SelectPropertyDialog::SelectPropertyDialog( QWidget* parent, IngredientPropertyL layout2->addWidget( perUnitsBox ); boxLayout->addLayout( layout2 ); - resize( QSize( 200, 380 ).expandedTo( minimumSizeHint() ) ); + resize( TQSize( 200, 380 ).expandedTo( minimumSizeHint() ) ); clearWState( WState_Polished ); // Load data @@ -75,7 +75,7 @@ SelectPropertyDialog::~SelectPropertyDialog() int SelectPropertyDialog::propertyID( void ) { - QListViewItem * it; + TQListViewItem * it; if ( ( it = propertyChooseView->selectedItem() ) ) { return ( it->text( 0 ).toInt() ); } @@ -98,13 +98,13 @@ int SelectPropertyDialog::perUnitsID() void SelectPropertyDialog::loadProperties( IngredientPropertyList *propertyList ) { for ( IngredientPropertyList::const_iterator prop_it = propertyList->begin(); prop_it != propertyList->end(); ++prop_it ) { - ( void ) new QListViewItem( propertyChooseView, QString::number( (*prop_it).id ), (*prop_it).name ); + ( void ) new TQListViewItem( propertyChooseView, TQString::number( (*prop_it).id ), (*prop_it).name ); } } void SelectPropertyDialog::loadUnits( UnitList *unitList ) { for ( UnitList::const_iterator unit_it = unitList->begin(); unit_it != unitList->end(); ++unit_it ) { - QString unitName = ( *unit_it ).name; + TQString unitName = ( *unit_it ).name; if ( unitName.isEmpty() ) { if ( m_showEmpty == ShowEmptyUnit ) unitName = " "+i18n("-No unit-"); |