summaryrefslogtreecommitdiffstats
path: root/kolourpaint/widgets/kptoolwidgetbase.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kolourpaint/widgets/kptoolwidgetbase.h
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolourpaint/widgets/kptoolwidgetbase.h')
-rw-r--r--kolourpaint/widgets/kptoolwidgetbase.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kolourpaint/widgets/kptoolwidgetbase.h b/kolourpaint/widgets/kptoolwidgetbase.h
index a23f9a16..1a4c8a6f 100644
--- a/kolourpaint/widgets/kptoolwidgetbase.h
+++ b/kolourpaint/widgets/kptoolwidgetbase.h
@@ -29,15 +29,15 @@
#ifndef __kp_tool_widget_base_h__
#define __kp_tool_widget_base_h__
-#include <qframe.h>
-#include <qpair.h>
-#include <qpixmap.h>
-#include <qrect.h>
-#include <qvaluevector.h>
-#include <qwidget.h>
+#include <tqframe.h>
+#include <tqpair.h>
+#include <tqpixmap.h>
+#include <tqrect.h>
+#include <tqvaluevector.h>
+#include <tqwidget.h>
-class QPainter;
+class TQPainter;
// TODO: frame becomes a combobox when its parent kpToolToolBar becomes too small
@@ -46,11 +46,11 @@ class kpToolWidgetBase : public QFrame
Q_OBJECT
public:
- kpToolWidgetBase (QWidget *parent, const char *name); // must provide a name for config to work
+ kpToolWidgetBase (TQWidget *parent, const char *name); // must provide a name for config to work
virtual ~kpToolWidgetBase ();
public:
- void addOption (const QPixmap &pixmap, const QString &toolTip = QString::null);
+ void addOption (const TQPixmap &pixmap, const TQString &toolTip = TQString::null);
void startNewOptionRow ();
// Call this at the end of your constructor.
@@ -59,7 +59,7 @@ public:
void finishConstruction (int fallBackRow, int fallBackCol);
private:
- QValueVector <int> spreadOutElements (const QValueVector <int> &sizes, int maxSize);
+ TQValueVector <int> spreadOutElements (const TQValueVector <int> &sizes, int maxSize);
public: // (only have to use these if you don't use finishConstruction())
// (rereads from config file)
@@ -92,19 +92,19 @@ signals:
void optionSelected (int row, int col);
protected:
- virtual void mousePressEvent (QMouseEvent *e);
- virtual void drawContents (QPainter *painter);
+ virtual void mousePressEvent (TQMouseEvent *e);
+ virtual void drawContents (TQPainter *painter);
void setInvertSelectedPixmap (bool yes = true) { m_invertSelectedPixmap = yes; }
bool m_invertSelectedPixmap;
- // coulbe be a QFrame or a ComboBox
- QWidget *m_baseWidget;
+ // coulbe be a TQFrame or a ComboBox
+ TQWidget *m_baseWidget;
- QValueVector < QValueVector <QPixmap> > m_pixmaps;
- QValueVector < QValueVector <QString> > m_toolTips;
+ TQValueVector < TQValueVector <TQPixmap> > m_pixmaps;
+ TQValueVector < TQValueVector <TQString> > m_toolTips;
- QValueVector < QValueVector <QRect> > m_pixmapRects;
+ TQValueVector < TQValueVector <TQRect> > m_pixmapRects;
int m_selectedRow, m_selectedCol;
};