summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/checkbox.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/checkbox.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/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
};