summaryrefslogtreecommitdiffstats
path: root/kdeui/kcolorbutton.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/kcolorbutton.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kcolorbutton.h')
-rw-r--r--kdeui/kcolorbutton.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kdeui/kcolorbutton.h b/kdeui/kcolorbutton.h
index cb522cdfa..cff929156 100644
--- a/kdeui/kcolorbutton.h
+++ b/kdeui/kcolorbutton.h
@@ -20,7 +20,7 @@
#ifndef __COLBTN_H__
#define __COLBTN_H__
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kdelibs_export.h>
@@ -37,21 +37,21 @@ class KColorButtonPrivate;
class KDEUI_EXPORT KColorButton : public QPushButton
{
Q_OBJECT
- Q_PROPERTY( QColor color READ color WRITE setColor )
- Q_PROPERTY( QColor defaultColor READ defaultColor WRITE setDefaultColor )
+ Q_PROPERTY( TQColor color READ color WRITE setColor )
+ Q_PROPERTY( TQColor defaultColor READ defaultColor WRITE setDefaultColor )
public:
/**
* Creates a color button.
*/
- KColorButton( QWidget *parent, const char *name = 0L );
+ KColorButton( TQWidget *parent, const char *name = 0L );
/**
* Creates a color button with an initial color @p c.
*/
- KColorButton( const QColor &c, QWidget *parent, const char *name = 0L );
+ KColorButton( const TQColor &c, TQWidget *parent, const char *name = 0L );
/// @since 3.1
- KColorButton( const QColor &c, const QColor &defaultColor, QWidget *parent,
+ KColorButton( const TQColor &c, const TQColor &defaultColor, TQWidget *parent,
const char *name=0L );
virtual ~KColorButton();
@@ -59,49 +59,49 @@ public:
/**
* Returns the currently chosen color.
*/
- QColor color() const
+ TQColor color() const
{ return col; }
/**
* Sets the current color to @p c.
*/
- void setColor( const QColor &c );
+ void setColor( const TQColor &c );
/**
* Returns the default color or an invalid color
* if no default color is set.
* @since 3.4
*/
- QColor defaultColor() const;
+ TQColor defaultColor() const;
/**
* Sets the default color to @p c.
* @since 3.4
*/
- void setDefaultColor( const QColor &c );
+ void setDefaultColor( const TQColor &c );
- QSize sizeHint() const;
+ TQSize sizeHint() const;
signals:
/**
* Emitted when the color of the widget
* is changed, either with setColor() or via user selection.
*/
- void changed( const QColor &newColor );
+ void changed( const TQColor &newColor );
protected slots:
void chooseColor();
protected:
- virtual void drawButtonLabel( QPainter *p );
- virtual void dragEnterEvent( QDragEnterEvent *);
- virtual void dropEvent( QDropEvent *);
- virtual void mousePressEvent( QMouseEvent *e );
- virtual void mouseMoveEvent( QMouseEvent *e);
- virtual void keyPressEvent( QKeyEvent *e );
+ virtual void drawButtonLabel( TQPainter *p );
+ virtual void dragEnterEvent( TQDragEnterEvent *);
+ virtual void dropEvent( TQDropEvent *);
+ virtual void mousePressEvent( TQMouseEvent *e );
+ virtual void mouseMoveEvent( TQMouseEvent *e);
+ virtual void keyPressEvent( TQKeyEvent *e );
private:
- QColor col;
- QPoint mPos;
+ TQColor col;
+ TQPoint mPos;
bool dragFlag;
protected: