summaryrefslogtreecommitdiffstats
path: root/kscreensaver/kdesavers/kclock.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:27:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:27:15 +0000
commitb5d38fd2e94066885d4620b0c35c48a2faa5aa44 (patch)
tree7e7e611e0e3ef23dc2efd327a7455bcf4d7c9b7f /kscreensaver/kdesavers/kclock.h
parent019ebb9a949a97c898e5d563f0699a3ff49e6588 (diff)
downloadtdeartwork-b5d38fd2e94066885d4620b0c35c48a2faa5aa44.tar.gz
tdeartwork-b5d38fd2e94066885d4620b0c35c48a2faa5aa44.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1157637 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscreensaver/kdesavers/kclock.h')
-rw-r--r--kscreensaver/kdesavers/kclock.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/kscreensaver/kdesavers/kclock.h b/kscreensaver/kdesavers/kclock.h
index b16945d6..2afc42a6 100644
--- a/kscreensaver/kdesavers/kclock.h
+++ b/kscreensaver/kdesavers/kclock.h
@@ -10,7 +10,7 @@
#ifndef __KCLOCK_H__
#define __KCLOCK_H__
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kdialogbase.h>
#include <kscreensaver.h>
@@ -28,16 +28,16 @@ class KClockPainter
KClockPainter(int width, int height);
~KClockPainter();
void copy(KClockPainter *p);
- void drawToImage(QImage *q, int x, int y);
+ void drawToImage(TQImage *q, int x, int y);
inline int width() { return m_width; }
inline int height() { return m_height; }
inline void *image() { return (void *)m_buf; }
- void setColor(const QColor &color);
- void setShadowColor(const QColor &color);
- void fill(const QColor &color);
+ void setColor(const TQColor &color);
+ void setShadowColor(const TQColor &color);
+ void fill(const TQColor &color);
void drawRadial(double alpha, double r0, double r1, double width);
void drawDisc(double radius);
- void drawHand(const QColor &color, double angle, double length,
+ void drawHand(const TQColor &color, double angle, double length,
double width, bool disc);
};
@@ -48,11 +48,11 @@ class KClockSaver : public KScreenSaver
public:
KClockSaver(WId id);
virtual ~KClockSaver();
- inline void setBgndColor(const QColor &c) { m_bgndColor = c; drawScale(); setBackgroundColor(c); };
- inline void setScaleColor(const QColor &c) { m_scaleColor = c; drawScale(); };
- inline void setHourColor(const QColor &c) { m_hourColor = c; forceRedraw(); };
- inline void setMinColor(const QColor &c) { m_minColor = c; forceRedraw(); };
- inline void setSecColor(const QColor &c) { m_secColor = c; forceRedraw(); };
+ inline void setBgndColor(const TQColor &c) { m_bgndColor = c; drawScale(); setBackgroundColor(c); };
+ inline void setScaleColor(const TQColor &c) { m_scaleColor = c; drawScale(); };
+ inline void setHourColor(const TQColor &c) { m_hourColor = c; forceRedraw(); };
+ inline void setMinColor(const TQColor &c) { m_minColor = c; forceRedraw(); };
+ inline void setSecColor(const TQColor &c) { m_secColor = c; forceRedraw(); };
void setKeepCentered(bool b);
void restart(int siz);
inline void forceRedraw() { m_second = -1; }
@@ -68,8 +68,8 @@ class KClockSaver : public KScreenSaver
void slotTimeout();
protected:
- QTimer m_timer;
- QImage *m_image;
+ TQTimer m_timer;
+ TQImage *m_image;
KClockPainter *m_scale;
KClockPainter *m_clock;
@@ -83,11 +83,11 @@ class KClockSaver : public KScreenSaver
int m_minute;
int m_second;
- QColor m_bgndColor;
- QColor m_scaleColor;
- QColor m_hourColor;
- QColor m_minColor;
- QColor m_secColor;
+ TQColor m_bgndColor;
+ TQColor m_scaleColor;
+ TQColor m_hourColor;
+ TQColor m_minColor;
+ TQColor m_secColor;
};
@@ -95,7 +95,7 @@ class KClockSetup : public KDialogBase
{
Q_OBJECT
public:
- KClockSetup(QWidget *parent = 0, const char *name = 0);
+ KClockSetup(TQWidget *parent = 0, const char *name = 0);
~KClockSetup();
protected:
void readSettings();
@@ -104,22 +104,22 @@ class KClockSetup : public KDialogBase
void slotOk();
void slotHelp();
- void slotBgndColor(const QColor &);
- void slotScaleColor(const QColor &);
- void slotHourColor(const QColor &);
- void slotMinColor(const QColor &);
- void slotSecColor(const QColor &);
+ void slotBgndColor(const TQColor &);
+ void slotScaleColor(const TQColor &);
+ void slotHourColor(const TQColor &);
+ void slotMinColor(const TQColor &);
+ void slotSecColor(const TQColor &);
void slotSliderMoved(int);
void slotKeepCenteredChanged(int);
private:
KClockSaver *m_saver;
- QColor m_bgndColor;
- QColor m_scaleColor;
- QColor m_hourColor;
- QColor m_minColor;
- QColor m_secColor;
+ TQColor m_bgndColor;
+ TQColor m_scaleColor;
+ TQColor m_hourColor;
+ TQColor m_minColor;
+ TQColor m_secColor;
int m_size;
bool m_keepCentered;