summaryrefslogtreecommitdiffstats
path: root/kiconedit/kcolorgrid.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 /kiconedit/kcolorgrid.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 'kiconedit/kcolorgrid.h')
-rw-r--r--kiconedit/kcolorgrid.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kiconedit/kcolorgrid.h b/kiconedit/kcolorgrid.h
index 2bb7c856..76091b45 100644
--- a/kiconedit/kcolorgrid.h
+++ b/kiconedit/kcolorgrid.h
@@ -21,13 +21,13 @@
#ifndef __KCOLORGRID_H__
#define __KCOLORGRID_H__
-#include <qwidget.h>
-#include <qsize.h>
-#include <qrect.h>
+#include <tqwidget.h>
+#include <tqsize.h>
+#include <tqrect.h>
#include "utils.h"
-#define KArrayUint QMemArray<uint>
+#define KArrayUint TQMemArray<uint>
class KColorArray : public KArrayUint
{
@@ -42,7 +42,7 @@ class KColorGrid : public QWidget
private:
Q_OBJECT
public:
- KColorGrid( QWidget * parent = 0, const char *name = 0, int spacing = 0);
+ KColorGrid( TQWidget * parent = 0, const char *name = 0, int spacing = 0);
virtual ~KColorGrid() {};
enum GridState { Plain, Shaded };
@@ -64,9 +64,9 @@ public:
virtual void setCellSize( int s );
virtual int cellSize() { return cellsize; }
- virtual QSize sizeHint() const;
+ virtual TQSize sizeHint() const;
- void setSize(const QSize s) { setNumRows(s.height()); setNumCols(s.width()); }
+ void setSize(const TQSize s) { setNumRows(s.height()); setNumCols(s.width()); }
public slots:
//virtual void show();
@@ -77,10 +77,10 @@ signals:
protected:
void updateCell(int row, int col, bool f);
- virtual void paintForeground( QPainter* p, QPaintEvent* e);
- virtual void paintCell( QPainter *p, int row, int col) = 0;
- virtual void paintEvent(QPaintEvent *);
- //virtual void resizeEvent(QResizeEvent *);
+ virtual void paintForeground( TQPainter* p, TQPaintEvent* e);
+ virtual void paintCell( TQPainter *p, int row, int col) = 0;
+ virtual void paintEvent(TQPaintEvent *);
+ //virtual void resizeEvent(TQResizeEvent *);
void setColor(int colNum, uint, bool update = true );
void updateColors();
virtual void setNumRows(int);
@@ -91,7 +91,7 @@ protected:
int getY(int y);
int findCol(int x) { return getX(x); }
int getX(int x);
- const QRect viewRect();
+ const TQRect viewRect();
//private:
int s, cellsize, totalwidth, totalheight;