summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/checkbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/checkbox.h')
-rw-r--r--kalarm/lib/checkbox.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/kalarm/lib/checkbox.h b/kalarm/lib/checkbox.h
index 72ad4aee3..fc7f82cbd 100644
--- a/kalarm/lib/checkbox.h
+++ b/kalarm/lib/checkbox.h
@@ -21,13 +21,13 @@
#ifndef CHECKBOX_H
#define CHECKBOX_H
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
/**
- * @short A QCheckBox with focus widget and read-only options.
+ * @short A TQCheckBox with focus widget and read-only options.
*
- * The CheckBox class is a QCheckBox with the ability to transfer focus to another
+ * The CheckBox class is a TQCheckBox with the ability to transfer focus to another
* widget when checked, and with a read-only option.
*
* Another widget may be specified as the focus widget for the check box. Whenever
@@ -47,13 +47,13 @@ class CheckBox : public QCheckBox
* @param parent The parent object of this widget.
* @param name The name of this widget.
*/
- explicit CheckBox(QWidget* parent, const char* name = 0);
+ explicit CheckBox(TQWidget* parent, const char* name = 0);
/** Constructor.
* @param text Text to display.
* @param parent The parent object of this widget.
* @param name The name of this widget.
*/
- CheckBox(const QString& text, QWidget* parent, const char* name = 0);
+ CheckBox(const TQString& text, TQWidget* parent, const char* name = 0);
/** Returns true if the widget is read only. */
bool isReadOnly() const { return mReadOnly; }
/** Sets whether the check box is read-only for the user. If read-only,
@@ -62,25 +62,25 @@ class CheckBox : public QCheckBox
*/
virtual void setReadOnly(bool readOnly);
/** Returns the widget which receives focus when the user selects the check box by clicking on it. */
- QWidget* focusWidget() const { return mFocusWidget; }
+ TQWidget* focusWidget() const { return mFocusWidget; }
/** Specifies a widget to receive focus when the user selects the check box by clicking on it.
* @param widget Widget to receive focus.
* @param enable If true, @p widget will be enabled before receiving focus. If
* false, the enabled state of @p widget will be left unchanged when
* the check box is clicked.
*/
- void setFocusWidget(QWidget* widget, bool enable = true);
+ void setFocusWidget(TQWidget* widget, bool enable = true);
protected:
- virtual void mousePressEvent(QMouseEvent*);
- virtual void mouseReleaseEvent(QMouseEvent*);
- virtual void mouseMoveEvent(QMouseEvent*);
- virtual void keyPressEvent(QKeyEvent*);
- virtual void keyReleaseEvent(QKeyEvent*);
+ virtual void mousePressEvent(TQMouseEvent*);
+ virtual void mouseReleaseEvent(TQMouseEvent*);
+ virtual void mouseMoveEvent(TQMouseEvent*);
+ virtual void keyPressEvent(TQKeyEvent*);
+ virtual void keyReleaseEvent(TQKeyEvent*);
protected slots:
void slotClicked();
private:
- QWidget::FocusPolicy mFocusPolicy; // default focus policy for the QCheckBox
- QWidget* mFocusWidget; // widget to receive focus when button is clicked on
+ TQWidget::FocusPolicy mFocusPolicy; // default focus policy for the QCheckBox
+ TQWidget* mFocusWidget; // widget to receive focus when button is clicked on
bool mFocusWidgetEnable; // enable focus widget before setting focus
bool mReadOnly; // value cannot be changed
};