summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kmymoneysplittable.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/kmymoneysplittable.h')
-rw-r--r--kmymoney2/dialogs/kmymoneysplittable.h65
1 files changed, 33 insertions, 32 deletions
diff --git a/kmymoney2/dialogs/kmymoneysplittable.h b/kmymoney2/dialogs/kmymoneysplittable.h
index 023660f..477084f 100644
--- a/kmymoney2/dialogs/kmymoneysplittable.h
+++ b/kmymoney2/dialogs/kmymoneysplittable.h
@@ -26,10 +26,10 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qwidget.h>
-#include <qtable.h>
-#include <qwidgetlist.h>
-#include <qguardedptr.h>
+#include <tqwidget.h>
+#include <tqtable.h>
+#include <tqwidgetlist.h>
+#include <tqguardedptr.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -50,15 +50,16 @@ class kMyMoneyEdit;
/**
* @author Thomas Baumgart
*/
-class kMyMoneySplitTable : public QTable
+class kMyMoneySplitTable : public TQTable
{
Q_OBJECT
+ TQ_OBJECT
public:
- kMyMoneySplitTable(QWidget *parent=0, const char *name=0);
+ kMyMoneySplitTable(TQWidget *tqparent=0, const char *name=0);
virtual ~kMyMoneySplitTable();
- void paintCell(QPainter *p, int row, int col, const QRect& r, bool /*selected*/);
- void paintFocus(QPainter *p, const QRect &cr);
+ void paintCell(TQPainter *p, int row, int col, const TQRect& r, bool /*selected*/);
+ void paintFocus(TQPainter *p, const TQRect &cr);
/**
* This method is used to load the widget with the information about
@@ -83,19 +84,19 @@ public:
* @param t reference to transaction
* @return list of splits
*/
- const QValueList<MyMoneySplit> getSplits(const MyMoneyTransaction& t) const;
+ const TQValueList<MyMoneySplit> getSplits(const MyMoneyTransaction& t) const;
- void setup(const QMap<QString, MyMoneyMoney>& priceInfo);
+ void setup(const TQMap<TQString, MyMoneyMoney>& priceInfo);
protected:
- void contentsMousePressEvent( QMouseEvent* e );
- void contentsMouseReleaseEvent( QMouseEvent* e );
- void contentsMouseDoubleClickEvent( QMouseEvent* e );
- bool eventFilter(QObject *o, QEvent *e);
- void endEdit(int row, int col, bool accept, bool replace );
-
- void resizeEvent(QResizeEvent*);
- QWidget* createEditWidgets(void);
+ void contentsMousePressEvent( TQMouseEvent* e );
+ void contentsMouseReleaseEvent( TQMouseEvent* e );
+ void contentsMouseDoubleClickEvent( TQMouseEvent* e );
+ bool eventFilter(TQObject *o, TQEvent *e);
+ void endEdit(int row, int col, bool accept, bool tqreplace );
+
+ void resizeEvent(TQResizeEvent*);
+ TQWidget* createEditWidgets(void);
void destroyEditWidgets(void);
/**
@@ -108,7 +109,7 @@ protected:
* pressed by the user
*/
virtual bool focusNextPrevChild(bool next);
- void addToTabOrder(QWidget* w);
+ void addToTabOrder(TQWidget* w);
/**
* convenience function for setCurrentCell(int row, int col)
@@ -128,9 +129,9 @@ protected:
* This method retuns the background color for a given @p row.
*
* @param row the row in question
- * @return the color as QColor object
+ * @return the color as TQColor object
*/
- const QColor rowBackgroundColor(const int row) const;
+ const TQColor rowBackgroundColor(const int row) const;
void endEdit(bool keyboardDriven);
@@ -140,7 +141,7 @@ public slots:
virtual void setNumRows(int r);
- QWidget* slotStartEdit(void);
+ TQWidget* slotStartEdit(void);
void slotEndEdit(void);
void slotEndEditKeyboard(void);
void slotDeleteSplit(void);
@@ -151,7 +152,7 @@ protected slots:
virtual void columnWidthChanged(int col);
/// move the focus to the selected @p row.
- void slotSetFocus(int row, int col = 0, int button = Qt::LeftButton, const QPoint & mousePos = QPoint(0, 0));
+ void slotSetFocus(int row, int col = 0, int button = Qt::LeftButton, const TQPoint & mousePos = TQPoint(0, 0));
/**
* Calling this slot refills the widget with the data
@@ -190,7 +191,7 @@ signals:
* @param txt The name of the category to be created
* @param id A connected slot should store the id of the created object in this variable
*/
- void createCategory(const QString& txt, QString& id);
+ void createCategory(const TQString& txt, TQString& id);
/**
* Signal is emitted, if any of the widgets enters (@a state equals @a true)
@@ -233,32 +234,32 @@ private:
* The widget will be created and destroyed dynamically in createInputWidgets()
* and destroyInputWidgets().
*/
- QGuardedPtr<KMyMoneyCategory> m_editCategory;
+ TQGuardedPtr<KMyMoneyCategory> m_editCategory;
/**
* This member contains a pointer to the input widget for the memo.
* The widget will be created and destroyed dynamically in createInputWidgets()
* and destroyInputWidgets().
*/
- QGuardedPtr<kMyMoneyLineEdit> m_editMemo;
+ TQGuardedPtr<kMyMoneyLineEdit> m_editMemo;
/**
* This member contains a pointer to the input widget for the amount.
* The widget will be created and destroyed dynamically in createInputWidgets()
* and destroyInputWidgets().
*/
- QGuardedPtr<kMyMoneyEdit> m_editAmount;
+ TQGuardedPtr<kMyMoneyEdit> m_editAmount;
/**
* This member keeps the tab order for the above widgets
*/
- QWidgetList m_tabOrderWidgets;
+ TQWidgetList m_tabOrderWidgets;
- QGuardedPtr<QFrame> m_registerButtonFrame;
- QGuardedPtr<KPushButton> m_registerEnterButton;
- QGuardedPtr<KPushButton> m_registerCancelButton;
+ TQGuardedPtr<TQFrame> m_registerButtonFrame;
+ TQGuardedPtr<KPushButton> m_registerEnterButton;
+ TQGuardedPtr<KPushButton> m_registerCancelButton;
- QMap<QString, MyMoneyMoney> m_priceInfo;
+ TQMap<TQString, MyMoneyMoney> m_priceInfo;
};
#endif