summaryrefslogtreecommitdiffstats
path: root/ksirc/colorpicker.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/colorpicker.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/colorpicker.h')
-rw-r--r--ksirc/colorpicker.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/ksirc/colorpicker.h b/ksirc/colorpicker.h
index 18222bfa..2118fc88 100644
--- a/ksirc/colorpicker.h
+++ b/ksirc/colorpicker.h
@@ -19,8 +19,8 @@
#ifndef __colorpicker_h__
#define __colorpicker_h__
-#include <qvaluevector.h>
-#include <qcolor.h>
+#include <tqvaluevector.h>
+#include <tqcolor.h>
#include <kdialogbase.h>
@@ -30,9 +30,9 @@ class ColorPicker : public KDialogBase
{
Q_OBJECT
public:
- ColorPicker( QWidget *parent, const char *name = 0 );
+ ColorPicker( TQWidget *parent, const char *name = 0 );
- QString colorString() const;
+ TQString colorString() const;
private slots:
void setForegroundColor( int col );
@@ -41,7 +41,7 @@ private slots:
private:
void updateSample();
- QLineEdit *m_sample;
+ TQLineEdit *m_sample;
int m_foregroundColor;
int m_backgroundColor;
};
@@ -50,33 +50,33 @@ class ColorBar : public QFrame
{
Q_OBJECT
public:
- ColorBar( const QValueVector<QColor> &colors, QWidget *parent, const char *name = 0 );
+ ColorBar( const TQValueVector<TQColor> &colors, TQWidget *parent, const char *name = 0 );
signals:
void colorPicked( int col );
protected:
- virtual void drawContents( QPainter *p );
- virtual void keyPressEvent( QKeyEvent *ev );
- virtual void focusInEvent( QFocusEvent *ev );
- virtual void focusOutEvent( QFocusEvent *ev );
- virtual void fontChange( const QFont &oldFont );
- virtual void styleChange( QStyle &oldStyle );
+ virtual void drawContents( TQPainter *p );
+ virtual void keyPressEvent( TQKeyEvent *ev );
+ virtual void focusInEvent( TQFocusEvent *ev );
+ virtual void focusOutEvent( TQFocusEvent *ev );
+ virtual void fontChange( const TQFont &oldFont );
+ virtual void styleChange( TQStyle &oldStyle );
virtual bool focusNextPrevChild( bool next );
- virtual void mousePressEvent( QMouseEvent *ev );
- virtual void mouseReleaseEvent( QMouseEvent *ev );
+ virtual void mousePressEvent( TQMouseEvent *ev );
+ virtual void mouseReleaseEvent( TQMouseEvent *ev );
private:
void updateCellSize();
void setCurrentCell( int cell );
- void drawCell( QPainter *p, int x, int y, const QColor &color,
- const QString &text, bool isFocusedCell,
+ void drawCell( TQPainter *p, int x, int y, const TQColor &color,
+ const TQString &text, bool isFocusedCell,
bool isCurrentCell );
int m_currentCell;
int m_focusedCell;
- const QValueVector<QColor> m_colors;
+ const TQValueVector<TQColor> m_colors;
int m_cellSize;
// ### style me