summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/spinbox2private.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/spinbox2private.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/spinbox2private.h')
-rw-r--r--kalarm/lib/spinbox2private.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/kalarm/lib/spinbox2private.h b/kalarm/lib/spinbox2private.h
index 74fbeb66c..682c84b8d 100644
--- a/kalarm/lib/spinbox2private.h
+++ b/kalarm/lib/spinbox2private.h
@@ -21,7 +21,7 @@
#ifndef SPINBOX2PRIVATE_H
#define SPINBOX2PRIVATE_H
-#include <qcanvas.h>
+#include <tqcanvas.h>
#include "spinbox.h"
@@ -35,15 +35,15 @@ class ExtraSpinBox : public SpinBox
{
Q_OBJECT
public:
- explicit ExtraSpinBox(QWidget* parent, const char* name = 0)
+ explicit ExtraSpinBox(TQWidget* parent, const char* name = 0)
: SpinBox(parent, name), mNewStylePending(false) { }
- ExtraSpinBox(int minValue, int maxValue, int step, QWidget* parent, const char* name = 0)
+ ExtraSpinBox(int minValue, int maxValue, int step, TQWidget* parent, const char* name = 0)
: SpinBox(minValue, maxValue, step, parent, name), mNewStylePending(false) { }
signals:
void styleUpdated();
protected:
- virtual void paintEvent(QPaintEvent*);
- virtual void styleChange(QStyle&) { mNewStylePending = true; }
+ virtual void paintEvent(TQPaintEvent*);
+ virtual void styleChange(TQStyle&) { mNewStylePending = true; }
private:
bool mNewStylePending; // style has changed, but not yet repainted
};
@@ -61,31 +61,31 @@ class SpinMirror : public QCanvasView
{
Q_OBJECT
public:
- explicit SpinMirror(SpinBox*, QFrame* spinFrame, QWidget* parent = 0, const char* name = 0);
+ explicit SpinMirror(SpinBox*, TQFrame* spinFrame, TQWidget* parent = 0, const char* name = 0);
void setReadOnly(bool ro) { mReadOnly = ro; }
bool isReadOnly() const { return mReadOnly; }
- void setNormalButtons(const QPixmap&);
- void redraw(const QPixmap&);
+ void setNormalButtons(const TQPixmap&);
+ void redraw(const TQPixmap&);
public slots:
virtual void resize(int w, int h);
void redraw();
protected:
- virtual void contentsMousePressEvent(QMouseEvent* e) { contentsMouseEvent(e); }
- virtual void contentsMouseReleaseEvent(QMouseEvent* e) { contentsMouseEvent(e); }
- virtual void contentsMouseMoveEvent(QMouseEvent* e) { contentsMouseEvent(e); }
- virtual void contentsMouseDoubleClickEvent(QMouseEvent* e) { contentsMouseEvent(e); }
- virtual void contentsWheelEvent(QWheelEvent*);
- virtual bool event(QEvent*);
+ virtual void contentsMousePressEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
+ virtual void contentsMouseReleaseEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
+ virtual void contentsMouseMoveEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
+ virtual void contentsMouseDoubleClickEvent(TQMouseEvent* e) { contentsMouseEvent(e); }
+ virtual void contentsWheelEvent(TQWheelEvent*);
+ virtual bool event(TQEvent*);
private:
- void contentsMouseEvent(QMouseEvent*);
+ void contentsMouseEvent(TQMouseEvent*);
SpinBox* mSpinbox; // spinbox whose spin buttons are being mirrored
- QFrame* mSpinFrame; // widget containing mSpinbox's spin buttons
- QWidget* mSpinWidget; // spin buttons in mSpinbox
- QPixmap mNormalButtons; // image of spin buttons in unpressed state
+ TQFrame* mSpinFrame; // widget containing mSpinbox's spin buttons
+ TQWidget* mSpinWidget; // spin buttons in mSpinbox
+ TQPixmap mNormalButtons; // image of spin buttons in unpressed state
bool mReadOnly; // value cannot be changed
};