summaryrefslogtreecommitdiffstats
path: root/krecipes/src/widgets/conversiontable.h
diff options
context:
space:
mode:
Diffstat (limited to 'krecipes/src/widgets/conversiontable.h')
-rw-r--r--krecipes/src/widgets/conversiontable.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/krecipes/src/widgets/conversiontable.h b/krecipes/src/widgets/conversiontable.h
index ca3f85c..0c5191c 100644
--- a/krecipes/src/widgets/conversiontable.h
+++ b/krecipes/src/widgets/conversiontable.h
@@ -10,9 +10,9 @@
***************************************************************************/
#ifndef CONVERSIONTABLE_H
#define CONVERSIONTABLE_H
-#include <qstring.h>
-#include <qtable.h>
-#include <qobject.h>
+#include <ntqstring.h>
+#include <ntqtable.h>
+#include <ntqobject.h>
#include "datablocks/unitratio.h"
#include "datablocks/elementlist.h"
@@ -23,12 +23,12 @@
*/
-class ConversionTable: public QTable
+class ConversionTable: public TQTable
{
Q_OBJECT
public:
- ConversionTable( QWidget* parent, int maxrows, int maxcols );
+ ConversionTable( TQWidget* parent, int maxrows, int maxcols );
~ConversionTable();
void createNewItem( int r, int c, double amount );
void setUnitIDs( const IDList &idList );
@@ -38,33 +38,33 @@ public:
setRatio( r.uID1, r.uID2, r.ratio );
}
int getUnitID( int rc );
- QString text( int r, int c ) const; //Reimplement, otherwise it won't work this way
+ TQString text( int r, int c ) const; //Reimplement, otherwise it won't work this way
void resize( int r, int c );
void clear( void );
private:
//Internal Variables
double editBoxValue;
- QIntDict<QTableItem> items;
- QIntDict<QWidget> widgets;
+ TQIntDict<TQTableItem> items;
+ TQIntDict<TQWidget> widgets;
IDList unitIDs; // unit ID list to know the units by ID, not name
//Internal Methods
void resizeData( int )
{}
;
- QTableItem *item( int r, int c ) const;
- void setItem( int r, int c, QTableItem *i );
+ TQTableItem *item( int r, int c ) const;
+ void setItem( int r, int c, TQTableItem *i );
void clearCell( int r, int c );
- void takeItem( QTableItem *item );
- void insertWidget( int r, int c, QWidget *w );
- QWidget *cellWidget( int r, int c ) const;
+ void takeItem( TQTableItem *item );
+ void insertWidget( int r, int c, TQWidget *w );
+ TQWidget *cellWidget( int r, int c ) const;
void clearCellWidget( int r, int c );
void initTable();
void swapRows( int, int, bool );
void swapColumns( int, int, bool );
void swapCells( int, int, int, int );
protected:
- QWidget* beginEdit ( int row, int col, bool replace );
+ TQWidget* beginEdit ( int row, int col, bool replace );
private slots:
void repaintCell( int r, int c );
@@ -76,19 +76,19 @@ signals:
void ratioRemoved( int row, int col );
};
-class ConversionTableItem: public QObject, public QTableItem
+class ConversionTableItem: public TQObject, public TQTableItem
{
Q_OBJECT
public:
- ConversionTableItem( QTable *t, EditType et );
- QWidget *createEditor() const;
- void setContentFromEditor( QWidget *w );
- void setText( const QString &s );
- void paint( QPainter *p, const QColorGroup &cg, const QRect &cr, bool selected );
- void setTextAndSave( const QString &s );
+ ConversionTableItem( TQTable *t, EditType et );
+ TQWidget *createEditor() const;
+ void setContentFromEditor( TQWidget *w );
+ void setText( const TQString &s );
+ void paint( TQPainter *p, const TQColorGroup &cg, const TQRect &cr, bool selected );
+ void setTextAndSave( const TQString &s );
int alignment() const
{
- return Qt::AlignRight;
+ return TQt::AlignRight;
}
signals:
void ratioChanged( int row, int col, double value );