summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/spinbox2.h
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/spinbox2.h')
-rw-r--r--kalarm/lib/spinbox2.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/kalarm/lib/spinbox2.h b/kalarm/lib/spinbox2.h
index 772eaee70..06a48d1af 100644
--- a/kalarm/lib/spinbox2.h
+++ b/kalarm/lib/spinbox2.h
@@ -21,8 +21,8 @@
#ifndef SPINBOX2_H
#define SPINBOX2_H
-#include <qglobal.h>
-#include <qlineedit.h>
+#include <tqglobal.h>
+#include <tqlineedit.h>
class SpinMirror;
class ExtraSpinBox;
@@ -61,7 +61,7 @@ class SpinBox2 : public QFrame
* @param parent The parent object of this widget.
* @param name The name of this widget.
*/
- explicit SpinBox2(QWidget* parent = 0, const char* name = 0);
+ explicit SpinBox2(TQWidget* parent = 0, const char* name = 0);
/** Constructor.
* @param minValue The minimum value which the spin box can have.
* @param maxValue The maximum value which the spin box can have.
@@ -71,7 +71,7 @@ class SpinBox2 : public QFrame
* @param name The name of this widget.
*/
SpinBox2(int minValue, int maxValue, int step = 1, int step2 = 1,
- QWidget* parent = 0, const char* name = 0);
+ TQWidget* parent = 0, const char* name = 0);
/** Sets whether the spin box can be changed by the user.
* @param readOnly True to set the widget read-only, false to set it read-write.
*/
@@ -88,22 +88,22 @@ class SpinBox2 : public QFrame
bool reverseButtons() const { return mReverseLayout && !mReverseWithLayout; }
/** Returns the spin box's text, including any prefix() and suffix(). */
- QString text() const { return mSpinbox->text(); }
+ TQString text() const { return mSpinbox->text(); }
/** Returns the prefix for the spin box's text. */
- virtual QString prefix() const { return mSpinbox->prefix(); }
+ virtual TQString prefix() const { return mSpinbox->prefix(); }
/** Returns the suffix for the spin box's text. */
- virtual QString suffix() const { return mSpinbox->suffix(); }
+ virtual TQString suffix() const { return mSpinbox->suffix(); }
/** Returns the spin box's text with no prefix(), suffix() or leading or trailing whitespace. */
- virtual QString cleanText() const { return mSpinbox->cleanText(); }
+ virtual TQString cleanText() const { return mSpinbox->cleanText(); }
/** Sets the special-value text which, if non-null, is displayed instead of a numeric
* value when the current value is equal to minValue().
*/
- virtual void setSpecialValueText(const QString& text) { mSpinbox->setSpecialValueText(text); }
+ virtual void setSpecialValueText(const TQString& text) { mSpinbox->setSpecialValueText(text); }
/** Returns the special-value text which, if non-null, is displayed instead of a numeric
* value when the current value is equal to minValue().
*/
- QString specialValueText() const { return mSpinbox->specialValueText(); }
+ TQString specialValueText() const { return mSpinbox->specialValueText(); }
/** Sets whether it is possible to step the value from the highest value to the
* lowest value and vice versa.
@@ -117,21 +117,21 @@ class SpinBox2 : public QFrame
/** Set the text alignment of the widget */
void setAlignment(int a) { mSpinbox->setAlignment(a); }
/** Sets the button symbols to use (arrows or plus/minus). */
- virtual void setButtonSymbols(QSpinBox::ButtonSymbols);
+ virtual void setButtonSymbols(TQSpinBox::ButtonSymbols);
/** Returns the button symbols currently in use (arrows or plus/minus). */
- QSpinBox::ButtonSymbols buttonSymbols() const { return mSpinbox->buttonSymbols(); }
+ TQSpinBox::ButtonSymbols buttonSymbols() const { return mSpinbox->buttonSymbols(); }
/** Sets the validator to @p v. The validator controls what keyboard input is accepted
* when the user is editing the value field.
*/
- virtual void setValidator(const QValidator* v) { mSpinbox->setValidator(v); }
+ virtual void setValidator(const TQValidator* v) { mSpinbox->setValidator(v); }
/** Returns the current validator. The validator controls what keyboard input is accepted
* when the user is editing the value field.
*/
- const QValidator* validator() const { return mSpinbox->validator(); }
+ const TQValidator* validator() const { return mSpinbox->validator(); }
- virtual QSize sizeHint() const;
- virtual QSize minimumSizeHint() const;
+ virtual TQSize sizeHint() const;
+ virtual TQSize minimumSizeHint() const;
/** Returns the minimum value of the spin box. */
int minValue() const { return mMinValue; }
@@ -149,13 +149,13 @@ class SpinBox2 : public QFrame
int bound(int val) const;
/** Returns the geometry of the right-hand "up" button. */
- QRect upRect() const { return mSpinbox->upRect(); }
+ TQRect upRect() const { return mSpinbox->upRect(); }
/** Returns the geometry of the right-hand "down" button. */
- QRect downRect() const { return mSpinbox->downRect(); }
+ TQRect downRect() const { return mSpinbox->downRect(); }
/** Returns the geometry of the left-hand "up" button. */
- QRect up2Rect() const;
+ TQRect up2Rect() const;
/** Returns the geometry of the left-hand "down" button. */
- QRect down2Rect() const;
+ TQRect down2Rect() const;
/** Returns the unshifted step increment for the right-hand spin buttons,
* i.e. the amount by which the spin box value changes when a right-hand
@@ -220,9 +220,9 @@ class SpinBox2 : public QFrame
/** Sets the current value to @p val. */
virtual void setValue(int val) { mSpinbox->setValue(val); }
/** Sets the prefix which is prepended to the start of the displayed text. */
- virtual void setPrefix(const QString& text) { mSpinbox->setPrefix(text); }
+ virtual void setPrefix(const TQString& text) { mSpinbox->setPrefix(text); }
/** Sets the suffix which is prepended to the start of the displayed text. */
- virtual void setSuffix(const QString& text) { mSpinbox->setSuffix(text); }
+ virtual void setSuffix(const TQString& text) { mSpinbox->setSuffix(text); }
/** Increments the current value by adding the unshifted step increment for
* the right-hand spin buttons.
*/
@@ -248,14 +248,14 @@ class SpinBox2 : public QFrame
/** Signal which is emitted whenever the value of the spin box changes. */
void valueChanged(int value);
/** Signal which is emitted whenever the value of the spin box changes. */
- void valueChanged(const QString& valueText);
+ void valueChanged(const TQString& valueText);
protected:
- virtual QString mapValueToText(int v) { return mSpinbox->mapValToText(v); }
+ virtual TQString mapValueToText(int v) { return mSpinbox->mapValToText(v); }
virtual int mapTextToValue(bool* ok) { return mSpinbox->mapTextToVal(ok); }
- virtual void resizeEvent(QResizeEvent*) { arrange(); }
- virtual void showEvent(QShowEvent*);
- virtual void styleChange(QStyle&);
+ virtual void resizeEvent(TQResizeEvent*) { arrange(); }
+ virtual void showEvent(TQShowEvent*);
+ virtual void styleChange(TQStyle&);
virtual void getMetrics() const;
mutable int wUpdown2; // width of second spin widget
@@ -273,7 +273,7 @@ class SpinBox2 : public QFrame
private:
void init();
void arrange();
- int whichButton(QObject* spinWidget, const QPoint&);
+ int whichButton(TQObject* spinWidget, const TQPoint&);
void setShiftStepping(bool on);
// Visible spin box class.
@@ -281,14 +281,14 @@ class SpinBox2 : public QFrame
class MainSpinBox : public SpinBox
{
public:
- MainSpinBox(SpinBox2* sb2, QWidget* parent, const char* name = 0)
+ MainSpinBox(SpinBox2* sb2, TQWidget* parent, const char* name = 0)
: SpinBox(parent, name), owner(sb2) { }
- MainSpinBox(int minValue, int maxValue, int step, SpinBox2* sb2, QWidget* parent, const char* name = 0)
+ MainSpinBox(int minValue, int maxValue, int step, SpinBox2* sb2, TQWidget* parent, const char* name = 0)
: SpinBox(minValue, maxValue, step, parent, name), owner(sb2) { }
void setAlignment(int a) { editor()->setAlignment(a); }
- virtual QString mapValueToText(int v) { return owner->mapValueToText(v); }
+ virtual TQString mapValueToText(int v) { return owner->mapValueToText(v); }
virtual int mapTextToValue(bool* ok) { return owner->mapTextToValue(ok); }
- QString mapValToText(int v) { return SpinBox::mapValueToText(v); }
+ TQString mapValToText(int v) { return SpinBox::mapValueToText(v); }
int mapTextToVal(bool* ok) { return SpinBox::mapTextToValue(ok); }
virtual int shiftStepAdjustment(int oldValue, int shiftStep);
private:
@@ -298,8 +298,8 @@ class SpinBox2 : public QFrame
enum { NO_BUTTON = -1, UP, DOWN, UP2, DOWN2 };
static int mReverseLayout; // widgets are mirrored right to left
- QFrame* mUpdown2Frame; // contains visible part of the extra pair of spin buttons
- QFrame* mSpinboxFrame; // contains the main spin box
+ TQFrame* mUpdown2Frame; // contains visible part of the extra pair of spin buttons
+ TQFrame* mSpinboxFrame; // contains the main spin box
ExtraSpinBox* mUpdown2; // the extra pair of spin buttons
MainSpinBox* mSpinbox; // the visible spin box
SpinMirror* mSpinMirror; // image of the extra pair of spin buttons