summaryrefslogtreecommitdiffstats
path: root/krecipes/src/widgets/ingredientinputwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/widgets/ingredientinputwidget.h')
-rw-r--r--krecipes/src/widgets/ingredientinputwidget.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/krecipes/src/widgets/ingredientinputwidget.h b/krecipes/src/widgets/ingredientinputwidget.h
index 8a5f8f7..84d8023 100644
--- a/krecipes/src/widgets/ingredientinputwidget.h
+++ b/krecipes/src/widgets/ingredientinputwidget.h
@@ -15,18 +15,18 @@
#ifndef INGREDIENTINPUTWIDGET_H
#define INGREDIENTINPUTWIDGET_H
-#include <qvbox.h>
+#include <ntqvbox.h>
#include "datablocks/unit.h"
-class QVBox;
-class QHBox;
-class QLabel;
-class QButtonGroup;
-class QWidgetStack;
-class QGroupBox;
-class QRadioButton;
-class QCheckBox;
+class TQVBox;
+class TQHBox;
+class TQLabel;
+class TQButtonGroup;
+class TQWidgetStack;
+class TQGroupBox;
+class TQRadioButton;
+class TQCheckBox;
class KComboBox;
@@ -40,20 +40,20 @@ class Element;
class ElementList;
class IngredientInput;
-class IngredientInputWidget : public QVBox
+class IngredientInputWidget : public TQVBox
{
Q_OBJECT
public:
- IngredientInputWidget( RecipeDB *db, QWidget *parent );
+ IngredientInputWidget( RecipeDB *db, TQWidget *parent );
~IngredientInputWidget();
void clear();
- static int createNewIngredientIfNecessary( const QString &ing, RecipeDB *db );
- static int createNewUnitIfNecessary( const QString &unit, bool plural, int ingredient_id, Unit &new_unit, RecipeDB *db );
- static QValueList<int> createNewPrepIfNecessary( const ElementList &prepMethods, RecipeDB *db );
- static int createNewGroupIfNecessary( const QString &group, RecipeDB *db );
+ static int createNewIngredientIfNecessary( const TQString &ing, RecipeDB *db );
+ static int createNewUnitIfNecessary( const TQString &unit, bool plural, int ingredient_id, Unit &new_unit, RecipeDB *db );
+ static TQValueList<int> createNewPrepIfNecessary( const ElementList &prepMethods, RecipeDB *db );
+ static int createNewGroupIfNecessary( const TQString &group, RecipeDB *db );
signals:
void ingredientEntered( const Ingredient &ing );
@@ -74,15 +74,15 @@ private:
RecipeDB *database;
- QValueList<IngredientInput*> m_ingInputs;
+ TQValueList<IngredientInput*> m_ingInputs;
};
-class IngredientInput : public QHBox
+class IngredientInput : public TQHBox
{
Q_OBJECT
public:
- IngredientInput( RecipeDB *db, QWidget *parent, bool allowHeader = true );
+ IngredientInput( RecipeDB *db, TQWidget *parent, bool allowHeader = true );
~IngredientInput();
void clear();
@@ -90,7 +90,7 @@ public:
bool isHeader() const;
Ingredient ingredient() const;
- QString header() const;
+ TQString header() const;
void reloadCombos();
void enableHeader( bool );
@@ -116,19 +116,19 @@ private:
RecipeDB *database;
UnitList *unitComboList;
- QCheckBox *orButton;
- QGroupBox *ingredientGBox;
- QLabel *amountLabel;
+ TQCheckBox *orButton;
+ TQGroupBox *ingredientGBox;
+ TQLabel *amountLabel;
FractionInput* amountEdit;
- QLabel *unitLabel;
+ TQLabel *unitLabel;
KComboBox* unitBox;
- QLabel *prepMethodLabel;
+ TQLabel *prepMethodLabel;
PrepMethodComboBox* prepMethodBox;
- QLabel *ingredientLabel;
+ TQLabel *ingredientLabel;
IngredientComboBox* ingredientBox;
HeaderComboBox* headerBox;
- QWidgetStack *header_ing_stack;
- QButtonGroup *typeButtonGrp;
+ TQWidgetStack *header_ing_stack;
+ TQButtonGroup *typeButtonGrp;
};
#endif //INGREDIENTINPUTWIDGET_H