From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kalarm/lib/radiobutton.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kalarm/lib/radiobutton.h') diff --git a/kalarm/lib/radiobutton.h b/kalarm/lib/radiobutton.h index 96bca04d..c87ef97b 100644 --- a/kalarm/lib/radiobutton.h +++ b/kalarm/lib/radiobutton.h @@ -21,13 +21,13 @@ #ifndef RADIOBUTTON_H #define RADIOBUTTON_H -#include +#include /** - * @short A QRadioButton with focus widget and read-only options. + * @short A TQRadioButton with focus widget and read-only options. * - * The RadioButton class is a QRadioButton with the ability to transfer focus to + * The RadioButton class is a TQRadioButton 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 radio button. Whenever @@ -47,13 +47,13 @@ class RadioButton : public QRadioButton * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit RadioButton(QWidget* parent, const char* name = 0); + explicit RadioButton(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. */ - RadioButton(const QString& text, QWidget* parent, const char* name = 0); + RadioButton(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 radio button is read-only for the user. If read-only, @@ -62,25 +62,25 @@ class RadioButton : public QRadioButton */ virtual void setReadOnly(bool readOnly); /** Returns the widget which receives focus when the button is clicked. */ - QWidget* focusWidget() const { return mFocusWidget; } + TQWidget* focusWidget() const { return mFocusWidget; } /** Specifies a widget to receive focus when the button is clicked. * @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 radio button 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 QRadioButton - QWidget* mFocusWidget; // widget to receive focus when button is clicked on + TQWidget::FocusPolicy mFocusPolicy; // default focus policy for the QRadioButton + 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 }; -- cgit v1.2.3