summaryrefslogtreecommitdiffstats
path: root/krecipes/src/dialogs/ingredientmatcherdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/dialogs/ingredientmatcherdialog.h')
-rw-r--r--krecipes/src/dialogs/ingredientmatcherdialog.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/krecipes/src/dialogs/ingredientmatcherdialog.h b/krecipes/src/dialogs/ingredientmatcherdialog.h
index eacd80c..13fb9c1 100644
--- a/krecipes/src/dialogs/ingredientmatcherdialog.h
+++ b/krecipes/src/dialogs/ingredientmatcherdialog.h
@@ -19,12 +19,12 @@
#include "widgets/recipelistview.h"
#include "widgets/dblistviewbase.h"
-#include <qfontmetrics.h>
-#include <qlabel.h>
-#include <qlistview.h>
-#include <qpushbutton.h>
-#include <qhbox.h>
-#include <qvbox.h>
+#include <ntqfontmetrics.h>
+#include <ntqlabel.h>
+#include <ntqlistview.h>
+#include <ntqpushbutton.h>
+#include <ntqhbox.h>
+#include <ntqvbox.h>
#include <kstringhandler.h>
#include <klocale.h>
@@ -41,18 +41,18 @@ class MixedNumber;
class CustomRecipeListItem : public RecipeListItem
{
public:
- CustomRecipeListItem( QListView* qlv, const Recipe &r, const IngredientList &il ) : RecipeListItem( qlv, r )
+ CustomRecipeListItem( TQListView* qlv, const Recipe &r, const IngredientList &il ) : RecipeListItem( qlv, r )
{
- ingredientListStored = new QStringList();
+ ingredientListStored = new TQStringList();
IngredientList::ConstIterator ili;
for ( ili = il.begin();ili != il.end();++ili ) {
if ( (*ili).substitutes.count() > 0 ) {
- QStringList subs;
+ TQStringList subs;
subs << ( *ili ).name;
- for ( QValueList<IngredientData>::const_iterator it = (*ili).substitutes.begin(); it != (*ili).substitutes.end(); ++it ) {
+ for ( TQValueList<IngredientData>::const_iterator it = (*ili).substitutes.begin(); it != (*ili).substitutes.end(); ++it ) {
subs << (*it).name;
}
- ingredientListStored->append( subs.join(QString(" %1 ").arg(i18n("OR"))) );
+ ingredientListStored->append( subs.join(TQString(" %1 ").arg(i18n("OR"))) );
}
else
ingredientListStored->append( ( *ili ).name );
@@ -60,7 +60,7 @@ public:
moveItem( qlv->lastItem() );
}
- CustomRecipeListItem( QListView* qlv, const Recipe &r ) : RecipeListItem( qlv, r )
+ CustomRecipeListItem( TQListView* qlv, const Recipe &r ) : RecipeListItem( qlv, r )
{
ingredientListStored = 0;
@@ -73,10 +73,10 @@ public:
}
private:
- QStringList *ingredientListStored;
+ TQStringList *ingredientListStored;
public:
- virtual QString text( int column ) const
+ virtual TQString text( int column ) const
{
if ( column == 2 && ingredientListStored )
return ingredientListStored->join ( "," );
@@ -85,38 +85,38 @@ public:
}
};
-class SectionItem: public QListViewItem
+class SectionItem: public TQListViewItem
{
public:
- SectionItem( QListView* qlv, QString sectionText ) : QListViewItem( qlv, qlv->lastItem() )
+ SectionItem( TQListView* qlv, TQString sectionText ) : TQListViewItem( qlv, qlv->lastItem() )
{
mText = sectionText;
}
~SectionItem( void )
{}
- virtual void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align );
+ virtual void paintCell ( TQPainter * p, const TQColorGroup & cg, int column, int width, int align );
private:
- QString mText;
+ TQString mText;
public:
- virtual QString text( int column ) const
+ virtual TQString text( int column ) const
{
if ( column == 0 )
return ( mText );
else
- return ( QString::null );
+ return ( TQString::null );
}
};
-class IngredientMatcherDialog: public QWidget
+class IngredientMatcherDialog: public TQWidget
{
Q_OBJECT
public:
- IngredientMatcherDialog( QWidget *parent, RecipeDB* db );
+ IngredientMatcherDialog( TQWidget *parent, RecipeDB* db );
~IngredientMatcherDialog();
void reload( ReloadFlags flag = Load );
@@ -133,24 +133,24 @@ private:
KreListView *ingListView;
KreListView *recipeListView;
- QHBox *missingBox;
- QLabel *missingNumberLabel;
+ TQHBox *missingBox;
+ TQLabel *missingNumberLabel;
KIntSpinBox *missingNumberSpinBox;
- QPushButton *okButton;
- QPushButton *clearButton;
- QPushButton *addButton;
- QPushButton *removeButton;
+ TQPushButton *okButton;
+ TQPushButton *clearButton;
+ TQPushButton *addButton;
+ TQPushButton *removeButton;
IngredientList m_ingredientList;
- QMap<QListViewItem*, IngredientList::iterator> m_item_ing_map;
+ TQMap<TQListViewItem*, IngredientList::iterator> m_item_ing_map;
private slots:
void findRecipes( void );
void unselectIngredients();
void addIngredient();
void removeIngredient();
- void itemRenamed( QListViewItem*, const QPoint &, int col );
+ void itemRenamed( TQListViewItem*, const TQPoint &, int col );
};
#endif