diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch) | |
tree | 0212ba6d2c749043134005a41f2bd0379619d40f /kalarm/lib | |
parent | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff) | |
download | tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib')
33 files changed, 152 insertions, 152 deletions
diff --git a/kalarm/lib/buttongroup.cpp b/kalarm/lib/buttongroup.cpp index b8528316c..018640123 100644 --- a/kalarm/lib/buttongroup.cpp +++ b/kalarm/lib/buttongroup.cpp @@ -26,26 +26,26 @@ #include "buttongroup.moc" -ButtonGroup::ButtonGroup(TQWidget* tqparent, const char* name) - : TQButtonGroup(tqparent, name) +ButtonGroup::ButtonGroup(TQWidget* parent, const char* name) + : TQButtonGroup(parent, name) { connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int))); } -ButtonGroup::ButtonGroup(const TQString& title, TQWidget* tqparent, const char* name) - : TQButtonGroup(title, tqparent, name) +ButtonGroup::ButtonGroup(const TQString& title, TQWidget* parent, const char* name) + : TQButtonGroup(title, parent, name) { connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int))); } -ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, TQWidget* tqparent, const char* name) - : TQButtonGroup(strips, orient, tqparent, name) +ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, TQWidget* parent, const char* name) + : TQButtonGroup(strips, orient, parent, name) { connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int))); } -ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* tqparent, const char* name) - : TQButtonGroup(strips, orient, title, tqparent, name) +ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* parent, const char* name) + : TQButtonGroup(strips, orient, title, parent, name) { connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int))); } diff --git a/kalarm/lib/buttongroup.h b/kalarm/lib/buttongroup.h index 9d4a8886a..f4d812653 100644 --- a/kalarm/lib/buttongroup.h +++ b/kalarm/lib/buttongroup.h @@ -41,31 +41,31 @@ class ButtonGroup : public TQButtonGroup TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit ButtonGroup(TQWidget* tqparent, const char* name = 0); + explicit ButtonGroup(TQWidget* parent, const char* name = 0); /** Constructor. * @param title The title displayed for this button group. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - ButtonGroup(const TQString& title, TQWidget* tqparent, const char* name = 0); + ButtonGroup(const TQString& title, TQWidget* parent, const char* name = 0); /** Constructor. * @param strips The number of rows or columns of buttons. * @param orient The orientation (TQt::Horizontal or TQt::Vertical) of the button group. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - ButtonGroup(int strips, Qt::Orientation orient, TQWidget* tqparent, const char* name = 0); + ButtonGroup(int strips, Qt::Orientation orient, TQWidget* parent, const char* name = 0); /** Constructor. * @param strips The number of rows or columns of buttons. * @param orient The orientation (TQt::Horizontal or TQt::Vertical) of the button group. * @param title The title displayed for this button group. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* tqparent, const char* name = 0); + ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* parent, const char* name = 0); /** Inserts a button in the group. * This overrides the insert() method of TQButtonGroup, which should really be a virtual method... * @param button The button to insert. diff --git a/kalarm/lib/checkbox.cpp b/kalarm/lib/checkbox.cpp index b5bfde0ee..d6b02373c 100644 --- a/kalarm/lib/checkbox.cpp +++ b/kalarm/lib/checkbox.cpp @@ -21,15 +21,15 @@ #include "checkbox.moc" -CheckBox::CheckBox(TQWidget* tqparent, const char* name) - : TQCheckBox(tqparent, name), +CheckBox::CheckBox(TQWidget* parent, const char* name) + : TQCheckBox(parent, name), mFocusPolicy(focusPolicy()), mFocusWidget(0), mReadOnly(false) { } -CheckBox::CheckBox(const TQString& text, TQWidget* tqparent, const char* name) - : TQCheckBox(text, tqparent, name), +CheckBox::CheckBox(const TQString& text, TQWidget* parent, const char* name) + : TQCheckBox(text, parent, name), mFocusPolicy(focusPolicy()), mFocusWidget(0), mReadOnly(false) diff --git a/kalarm/lib/checkbox.h b/kalarm/lib/checkbox.h index 61d6a1276..f81490ea9 100644 --- a/kalarm/lib/checkbox.h +++ b/kalarm/lib/checkbox.h @@ -45,16 +45,16 @@ class CheckBox : public TQCheckBox TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit CheckBox(TQWidget* tqparent, const char* name = 0); + explicit CheckBox(TQWidget* parent, const char* name = 0); /** Constructor. * @param text Text to display. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - CheckBox(const TQString& text, TQWidget* tqparent, 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, diff --git a/kalarm/lib/colourcombo.cpp b/kalarm/lib/colourcombo.cpp index cd078a34f..4d10f6e63 100644 --- a/kalarm/lib/colourcombo.cpp +++ b/kalarm/lib/colourcombo.cpp @@ -30,8 +30,8 @@ #include "colourcombo.moc" -ColourCombo::ColourCombo(TQWidget* tqparent, const char* name, const TQColor& defaultColour) - : TQComboBox(tqparent, name), +ColourCombo::ColourCombo(TQWidget* parent, const char* name, const TQColor& defaultColour) + : TQComboBox(parent, name), mColourList(Preferences::messageColours()), mSelectedColour(defaultColour), mCustomColour(255, 255, 255), diff --git a/kalarm/lib/colourcombo.h b/kalarm/lib/colourcombo.h index 31fcdbdcc..2a075d235 100644 --- a/kalarm/lib/colourcombo.h +++ b/kalarm/lib/colourcombo.h @@ -47,11 +47,11 @@ class ColourCombo : public TQComboBox TQ_PROPERTY(TQColor color READ color WRITE setColor) public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. * @param defaultColour The colour which is selected by default. */ - explicit ColourCombo(TQWidget* tqparent = 0, const char* name = 0, const TQColor& defaultColour = 0xFFFFFF); + explicit ColourCombo(TQWidget* parent = 0, const char* name = 0, const TQColor& defaultColour = 0xFFFFFF); /** Returns the selected colour. */ TQColor color() const { return mSelectedColour; } /** Returns the selected colour. */ diff --git a/kalarm/lib/combobox.cpp b/kalarm/lib/combobox.cpp index 2acb5a442..99577506d 100644 --- a/kalarm/lib/combobox.cpp +++ b/kalarm/lib/combobox.cpp @@ -22,13 +22,13 @@ #include "combobox.moc" -ComboBox::ComboBox(TQWidget* tqparent, const char* name) - : TQComboBox(tqparent, name), +ComboBox::ComboBox(TQWidget* parent, const char* name) + : TQComboBox(parent, name), mReadOnly(false) { } -ComboBox::ComboBox(bool rw, TQWidget* tqparent, const char* name) - : TQComboBox(rw, tqparent, name), +ComboBox::ComboBox(bool rw, TQWidget* parent, const char* name) + : TQComboBox(rw, parent, name), mReadOnly(false) { } diff --git a/kalarm/lib/combobox.h b/kalarm/lib/combobox.h index 5f8f4cc3c..3d5ff13e6 100644 --- a/kalarm/lib/combobox.h +++ b/kalarm/lib/combobox.h @@ -40,16 +40,16 @@ class ComboBox : public TQComboBox TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit ComboBox(TQWidget* tqparent = 0, const char* name = 0); + explicit ComboBox(TQWidget* parent = 0, const char* name = 0); /** Constructor. * @param rw True for a read-write combo box, false for a read-only combo box. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit ComboBox(bool rw, TQWidget* tqparent = 0, const char* name = 0); + explicit ComboBox(bool rw, TQWidget* parent = 0, const char* name = 0); /** Returns true if the widget is read only. */ bool isReadOnly() const { return mReadOnly; } /** Sets whether the combo box is read-only for the user. If read-only, diff --git a/kalarm/lib/dateedit.cpp b/kalarm/lib/dateedit.cpp index 0a916d9f6..b9699988d 100644 --- a/kalarm/lib/dateedit.cpp +++ b/kalarm/lib/dateedit.cpp @@ -25,8 +25,8 @@ #include "dateedit.moc" -DateEdit::DateEdit(TQWidget* tqparent, const char* name) - : KDateEdit(tqparent, name) +DateEdit::DateEdit(TQWidget* parent, const char* name) + : KDateEdit(parent, name) { connect(this, TQT_SIGNAL(dateEntered(const TQDate&)), TQT_SLOT(newDateEntered(const TQDate&))); } diff --git a/kalarm/lib/dateedit.h b/kalarm/lib/dateedit.h index 7ad0a7a05..b221871a9 100644 --- a/kalarm/lib/dateedit.h +++ b/kalarm/lib/dateedit.h @@ -40,10 +40,10 @@ class DateEdit : public KDateEdit TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit DateEdit(TQWidget* tqparent = 0, const char* name = 0); + explicit DateEdit(TQWidget* parent = 0, const char* name = 0); /** Returns true if the widget contains a valid date. */ bool isValid() const { return date().isValid(); } /** Returns the earliest date which can be entered. diff --git a/kalarm/lib/label.cpp b/kalarm/lib/label.cpp index ee1750e8b..7767a7659 100644 --- a/kalarm/lib/label.cpp +++ b/kalarm/lib/label.cpp @@ -23,20 +23,20 @@ #include "label.moc" -Label::Label(TQWidget* tqparent, const char* name, WFlags f) - : TQLabel(tqparent, name, f), +Label::Label(TQWidget* parent, const char* name, WFlags f) + : TQLabel(parent, name, f), mRadioButton(0), mFocusWidget(0) { } -Label::Label(const TQString& text, TQWidget* tqparent, const char* name, WFlags f) - : TQLabel(text, tqparent, name, f), +Label::Label(const TQString& text, TQWidget* parent, const char* name, WFlags f) + : TQLabel(text, parent, name, f), mRadioButton(0), mFocusWidget(0) { } -Label::Label(TQWidget* buddy, const TQString& text, TQWidget* tqparent, const char* name, WFlags f) - : TQLabel(buddy, text, tqparent, name, f), +Label::Label(TQWidget* buddy, const TQString& text, TQWidget* parent, const char* name, WFlags f) + : TQLabel(buddy, text, parent, name, f), mRadioButton(0), mFocusWidget(0) { } @@ -103,8 +103,8 @@ void Label::activated() * Class: LabelFocusWidget =============================================================================*/ -LabelFocusWidget::LabelFocusWidget(TQWidget* tqparent, const char* name) - : TQWidget(tqparent, name) +LabelFocusWidget::LabelFocusWidget(TQWidget* parent, const char* name) + : TQWidget(parent, name) { setFocusPolicy(TQ_ClickFocus); setFixedSize(TQSize(1,1)); @@ -112,7 +112,7 @@ LabelFocusWidget::LabelFocusWidget(TQWidget* tqparent, const char* name) void LabelFocusWidget::focusInEvent(TQFocusEvent*) { - Label* tqparent = (Label*)parentWidget(); - tqparent->activated(); + Label* parent = (Label*)parentWidget(); + parent->activated(); } diff --git a/kalarm/lib/label.h b/kalarm/lib/label.h index bd0e39035..ba418aee8 100644 --- a/kalarm/lib/label.h +++ b/kalarm/lib/label.h @@ -45,29 +45,29 @@ class Label : public TQLabel friend class LabelFocusWidget; public: /** Constructs an empty label. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. * @param f Flags. See TQWidget constructor for details. */ - explicit Label(TQWidget* tqparent, const char* name = 0, WFlags f = 0); + explicit Label(TQWidget* parent, const char* name = 0, WFlags f = 0); /** Constructs a label that displays @p text. * @param text Text string to display. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. * @param f Flags. See TQWidget constructor for details. */ - Label(const TQString& text, TQWidget* tqparent, const char* name = 0, WFlags f = 0); + Label(const TQString& text, TQWidget* parent, const char* name = 0, WFlags f = 0); /** Constructs a label, with a buddy widget, that displays @p text. * @param buddy Buddy widget which receives the keyboard focus when the * label's accelerator key is pressed. If @p buddy is a radio * button, @p buddy is in addition selected when the * accelerator key is pressed. * @param text Text string to display. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. * @param f Flags. See TQWidget constructor for details. */ - Label(TQWidget* buddy, const TQString& text, TQWidget* tqparent, const char* name = 0, WFlags f = 0); + Label(TQWidget* buddy, const TQString& text, TQWidget* parent, const char* name = 0, WFlags f = 0); /** Sets the label's buddy widget which receives the keyboard focus when the * label's accelerator key is pressed. If @p buddy is a radio button, * @p buddy is in addition selected when the accelerator key is pressed. @@ -90,7 +90,7 @@ class LabelFocusWidget : public TQWidget Q_OBJECT TQ_OBJECT public: - LabelFocusWidget(TQWidget* tqparent, const char* name = 0); + LabelFocusWidget(TQWidget* parent, const char* name = 0); protected: virtual void focusInEvent(TQFocusEvent*); }; diff --git a/kalarm/lib/lineedit.cpp b/kalarm/lib/lineedit.cpp index 28d94fb26..0328e4db9 100644 --- a/kalarm/lib/lineedit.cpp +++ b/kalarm/lib/lineedit.cpp @@ -39,8 +39,8 @@ * It has an option to prevent its contents being selected when it receives = focus. =============================================================================*/ -LineEdit::LineEdit(Type type, TQWidget* tqparent, const char* name) - : KLineEdit(tqparent, name), +LineEdit::LineEdit(Type type, TQWidget* parent, const char* name) + : KLineEdit(parent, name), mType(type), mNoSelect(false), mSetCursorAtEnd(false) @@ -48,8 +48,8 @@ LineEdit::LineEdit(Type type, TQWidget* tqparent, const char* name) init(); } -LineEdit::LineEdit(TQWidget* tqparent, const char* name) - : KLineEdit(tqparent, name), +LineEdit::LineEdit(TQWidget* parent, const char* name) + : KLineEdit(parent, name), mType(Text), mNoSelect(false), mSetCursorAtEnd(false) diff --git a/kalarm/lib/lineedit.h b/kalarm/lib/lineedit.h index 0da536835..660d45377 100644 --- a/kalarm/lib/lineedit.h +++ b/kalarm/lib/lineedit.h @@ -62,15 +62,15 @@ class LineEdit : public KLineEdit enum Type { Text, Url, Emails }; /** Constructor. * @param type The content type for the line edit. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit LineEdit(Type type, TQWidget* tqparent = 0, const char* name = 0); + explicit LineEdit(Type type, TQWidget* parent = 0, const char* name = 0); /** Constructs a line edit whose content type is Text. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit LineEdit(TQWidget* tqparent = 0, const char* name = 0); + explicit LineEdit(TQWidget* parent = 0, const char* name = 0); /** Prevents the line edit's contents being selected when the widget receives focus. */ void setNoSelect() { mNoSelect = true; } /** Sets whether the cursor should be set at the beginning or end of the text when diff --git a/kalarm/lib/messagebox.cpp b/kalarm/lib/messagebox.cpp index 2f7480dfd..3345c9c4b 100644 --- a/kalarm/lib/messagebox.cpp +++ b/kalarm/lib/messagebox.cpp @@ -60,11 +60,11 @@ KMessageBox::ButtonCode MessageBox::getContinueDefault(const TQString& dontAskAg * warningContinueCancel() for that 'dontAskAgainName' value. If neither method * has set a default button, Continue is the default. */ -int MessageBox::warningContinueCancel(TQWidget* tqparent, const TQString& text, const TQString& caption, +int MessageBox::warningContinueCancel(TQWidget* parent, const TQString& text, const TQString& caption, const KGuiItem& buttonContinue, const TQString& dontAskAgainName) { ButtonCode defaultButton = getContinueDefault(dontAskAgainName); - return warningContinueCancel(tqparent, defaultButton, text, caption, buttonContinue, dontAskAgainName); + return warningContinueCancel(parent, defaultButton, text, caption, buttonContinue, dontAskAgainName); } /****************************************************************************** @@ -72,13 +72,13 @@ int MessageBox::warningContinueCancel(TQWidget* tqparent, const TQString& text, * If 'dontAskAgainName' is specified, the message box will only be suppressed * if the user chose Continue last time. */ -int MessageBox::warningContinueCancel(TQWidget* tqparent, ButtonCode defaultButton, const TQString& text, +int MessageBox::warningContinueCancel(TQWidget* parent, ButtonCode defaultButton, const TQString& text, const TQString& caption, const KGuiItem& buttonContinue, const TQString& dontAskAgainName) { setContinueDefault(dontAskAgainName, defaultButton); if (defaultButton != Cancel) - return KMessageBox::warningContinueCancel(tqparent, text, caption, buttonContinue, dontAskAgainName); + return KMessageBox::warningContinueCancel(parent, text, caption, buttonContinue, dontAskAgainName); // Cancel is the default button, so we have to use KMessageBox::warningYesNo() if (!dontAskAgainName.isEmpty()) @@ -92,7 +92,7 @@ int MessageBox::warningContinueCancel(TQWidget* tqparent, ButtonCode defaultButt saveDontShowAgain(dontAskAgainName, true, false); } } - return warningYesNo(tqparent, text, caption, buttonContinue, KStdGuiItem::cancel(), dontAskAgainName); + return warningYesNo(parent, text, caption, buttonContinue, KStdGuiItem::cancel(), dontAskAgainName); } /****************************************************************************** diff --git a/kalarm/lib/messagebox.h b/kalarm/lib/messagebox.h index 21d321b13..7a84cf202 100644 --- a/kalarm/lib/messagebox.h +++ b/kalarm/lib/messagebox.h @@ -58,7 +58,7 @@ class MessageBox : public KMessageBox */ static void setContinueDefault(const TQString& dontAskAgainName, ButtonCode defaultButton); /** Displays a Continue/Cancel message box with the option as to which button is the default. - * @param tqparent Parent widget + * @param parent Parent widget * @param defaultButton The default button for the message box. Valid values are Continue or Cancel. * @param text Message string * @param caption Caption (window title) of the message box @@ -66,12 +66,12 @@ class MessageBox : public KMessageBox * @param dontAskAgainName If specified, the message box will only be suppressed * if the user chose Continue last time. */ - static int warningContinueCancel(TQWidget* tqparent, ButtonCode defaultButton, const TQString& text, + static int warningContinueCancel(TQWidget* parent, ButtonCode defaultButton, const TQString& text, const TQString& caption = TQString(), const KGuiItem& buttonContinue = KStdGuiItem::cont(), const TQString& dontAskAgainName = TQString()); /** Displays a Continue/Cancel message box. - * @param tqparent Parent widget + * @param parent Parent widget * @param text Message string * @param caption Caption (window title) of the message box * @param buttonContinue The text for the first button (default = i18n("Continue")) @@ -81,7 +81,7 @@ class MessageBox : public KMessageBox * @p dontAskAgainName value. If neither method has been used to set a default button, * Continue is the default. */ - static int warningContinueCancel(TQWidget* tqparent, const TQString& text, const TQString& caption = TQString(), + static int warningContinueCancel(TQWidget* parent, const TQString& text, const TQString& caption = TQString(), const KGuiItem& buttonContinue = KStdGuiItem::cont(), const TQString& dontAskAgainName = TQString()); /** If there is no current setting for whether a non-Yes/No message box should be diff --git a/kalarm/lib/pushbutton.cpp b/kalarm/lib/pushbutton.cpp index 883ad1812..f1f824d24 100644 --- a/kalarm/lib/pushbutton.cpp +++ b/kalarm/lib/pushbutton.cpp @@ -21,20 +21,20 @@ #include "pushbutton.moc" -PushButton::PushButton(TQWidget* tqparent, const char* name) - : TQPushButton(tqparent, name), +PushButton::PushButton(TQWidget* parent, const char* name) + : TQPushButton(parent, name), mFocusPolicy(focusPolicy()), mReadOnly(false) { } -PushButton::PushButton(const TQString& text, TQWidget* tqparent, const char* name) - : TQPushButton(text, tqparent, name), +PushButton::PushButton(const TQString& text, TQWidget* parent, const char* name) + : TQPushButton(text, parent, name), mFocusPolicy(focusPolicy()), mReadOnly(false) { } -PushButton::PushButton(const TQIconSet& icon, const TQString& text, TQWidget* tqparent, const char* name) - : TQPushButton(icon, text, tqparent, name), +PushButton::PushButton(const TQIconSet& icon, const TQString& text, TQWidget* parent, const char* name) + : TQPushButton(icon, text, parent, name), mFocusPolicy(focusPolicy()), mReadOnly(false) { } diff --git a/kalarm/lib/pushbutton.h b/kalarm/lib/pushbutton.h index 52c761bce..d3aee32cd 100644 --- a/kalarm/lib/pushbutton.h +++ b/kalarm/lib/pushbutton.h @@ -41,23 +41,23 @@ class PushButton : public TQPushButton TQ_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly) public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit PushButton(TQWidget* tqparent, const char* name = 0); + explicit PushButton(TQWidget* parent, const char* name = 0); /** Constructor for a push button which displays a text. * @param text The text to show on the button. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - PushButton(const TQString& text, TQWidget* tqparent, const char* name = 0); + PushButton(const TQString& text, TQWidget* parent, const char* name = 0); /** Constructor for a push button which displays an icon and a text. * @param icon The icon to show on the button. * @param text The text to show on the button. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - PushButton(const TQIconSet& icon, const TQString& text, TQWidget* tqparent, const char* name = 0); + PushButton(const TQIconSet& icon, const TQString& text, TQWidget* parent, const char* name = 0); /** Sets whether the push button is read-only for the user. * @param readOnly True to set the widget read-only, false to enable its action. */ diff --git a/kalarm/lib/radiobutton.cpp b/kalarm/lib/radiobutton.cpp index 6331c06f5..18571ad7f 100644 --- a/kalarm/lib/radiobutton.cpp +++ b/kalarm/lib/radiobutton.cpp @@ -21,15 +21,15 @@ #include "radiobutton.moc" -RadioButton::RadioButton(TQWidget* tqparent, const char* name) - : TQRadioButton(tqparent, name), +RadioButton::RadioButton(TQWidget* parent, const char* name) + : TQRadioButton(parent, name), mFocusPolicy(focusPolicy()), mFocusWidget(0), mReadOnly(false) { } -RadioButton::RadioButton(const TQString& text, TQWidget* tqparent, const char* name) - : TQRadioButton(text, tqparent, name), +RadioButton::RadioButton(const TQString& text, TQWidget* parent, const char* name) + : TQRadioButton(text, parent, name), mFocusPolicy(focusPolicy()), mFocusWidget(0), mReadOnly(false) diff --git a/kalarm/lib/radiobutton.h b/kalarm/lib/radiobutton.h index 2f924b24d..107957ca7 100644 --- a/kalarm/lib/radiobutton.h +++ b/kalarm/lib/radiobutton.h @@ -45,16 +45,16 @@ class RadioButton : public TQRadioButton TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit RadioButton(TQWidget* tqparent, const char* name = 0); + explicit RadioButton(TQWidget* parent, const char* name = 0); /** Constructor. * @param text Text to display. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - RadioButton(const TQString& text, TQWidget* tqparent, 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, diff --git a/kalarm/lib/slider.cpp b/kalarm/lib/slider.cpp index f901f6db1..189c8941a 100644 --- a/kalarm/lib/slider.cpp +++ b/kalarm/lib/slider.cpp @@ -21,18 +21,18 @@ #include "slider.moc" -Slider::Slider(TQWidget* tqparent, const char* name) - : TQSlider(tqparent, name), +Slider::Slider(TQWidget* parent, const char* name) + : TQSlider(parent, name), mReadOnly(false) { } -Slider::Slider(Qt::Orientation o, TQWidget* tqparent, const char* name) - : TQSlider(o, tqparent, name), +Slider::Slider(Qt::Orientation o, TQWidget* parent, const char* name) + : TQSlider(o, parent, name), mReadOnly(false) { } -Slider::Slider(int minval, int maxval, int pageStep, int value, Qt::Orientation o, TQWidget* tqparent, const char* name) - : TQSlider(minval, maxval, pageStep, value, o, tqparent, name), +Slider::Slider(int minval, int maxval, int pageStep, int value, Qt::Orientation o, TQWidget* parent, const char* name) + : TQSlider(minval, maxval, pageStep, value, o, parent, name), mReadOnly(false) { } diff --git a/kalarm/lib/slider.h b/kalarm/lib/slider.h index f79ac0158..6b72c5ba6 100644 --- a/kalarm/lib/slider.h +++ b/kalarm/lib/slider.h @@ -41,27 +41,27 @@ class Slider : public TQSlider TQ_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly) public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit Slider(TQWidget* tqparent = 0, const char* name = 0); + explicit Slider(TQWidget* parent = 0, const char* name = 0); /** Constructor. * @param orient The orientation of the slider, either TQt::Horizonal or TQt::Vertical. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit Slider(Qt::Orientation orient, TQWidget* tqparent = 0, const char* name = 0); + explicit Slider(Qt::Orientation orient, TQWidget* parent = 0, const char* name = 0); /** Constructor. * @param minValue The minimum value which the slider can have. * @param maxValue The maximum value which the slider can have. * @param pageStep The page step increment. * @param value The initial value for the slider. * @param orient The orientation of the slider, either TQt::Horizonal or TQt::Vertical. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ Slider(int minValue, int maxValue, int pageStep, int value, Qt::Orientation orient, - TQWidget* tqparent = 0, const char* name = 0); + TQWidget* parent = 0, const char* name = 0); /** Returns true if the slider is read only. */ bool isReadOnly() const { return mReadOnly; } /** Sets whether the slider is read-only for the user. diff --git a/kalarm/lib/spinbox.cpp b/kalarm/lib/spinbox.cpp index 10f3f5917..625186ca9 100644 --- a/kalarm/lib/spinbox.cpp +++ b/kalarm/lib/spinbox.cpp @@ -24,16 +24,16 @@ #include "spinbox.moc" -SpinBox::SpinBox(TQWidget* tqparent, const char* name) - : TQSpinBox(0, 99999, 1, tqparent, name), +SpinBox::SpinBox(TQWidget* parent, const char* name) + : TQSpinBox(0, 99999, 1, parent, name), mMinValue(TQSpinBox::minValue()), mMaxValue(TQSpinBox::maxValue()) { init(); } -SpinBox::SpinBox(int minValue, int maxValue, int step, TQWidget* tqparent, const char* name) - : TQSpinBox(minValue, maxValue, step, tqparent, name), +SpinBox::SpinBox(int minValue, int maxValue, int step, TQWidget* parent, const char* name) + : TQSpinBox(minValue, maxValue, step, parent, name), mMinValue(minValue), mMaxValue(maxValue) { diff --git a/kalarm/lib/spinbox.h b/kalarm/lib/spinbox.h index 4b269d6a5..081087db0 100644 --- a/kalarm/lib/spinbox.h +++ b/kalarm/lib/spinbox.h @@ -45,18 +45,18 @@ class SpinBox : public TQSpinBox TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit SpinBox(TQWidget* tqparent = 0, const char* name = 0); + explicit SpinBox(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. * @param step The (unshifted) step interval. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - SpinBox(int minValue, int maxValue, int step = 1, TQWidget* tqparent = 0, const char* name = 0); + SpinBox(int minValue, int maxValue, int step = 1, TQWidget* parent = 0, const char* name = 0); /** Returns true if the widget is read only. */ bool isReadOnly() const { return mReadOnly; } /** Sets whether the spin box can be changed by the user. diff --git a/kalarm/lib/spinbox2.cpp b/kalarm/lib/spinbox2.cpp index bdd887912..3ec3b68c0 100644 --- a/kalarm/lib/spinbox2.cpp +++ b/kalarm/lib/spinbox2.cpp @@ -48,8 +48,8 @@ static bool mirrorStyle(const TQStyle&); int SpinBox2::mReverseLayout = -1; -SpinBox2::SpinBox2(TQWidget* tqparent, const char* name) - : TQFrame(tqparent, name), +SpinBox2::SpinBox2(TQWidget* parent, const char* name) + : TQFrame(parent, name), mReverseWithLayout(true) { mUpdown2Frame = new TQFrame(this); @@ -60,8 +60,8 @@ SpinBox2::SpinBox2(TQWidget* tqparent, const char* name) init(); } -SpinBox2::SpinBox2(int minValue, int maxValue, int step, int step2, TQWidget* tqparent, const char* name) - : TQFrame(tqparent, name), +SpinBox2::SpinBox2(int minValue, int maxValue, int step, int step2, TQWidget* parent, const char* name) + : TQFrame(parent, name), mReverseWithLayout(true) { mUpdown2Frame = new TQFrame(this); @@ -371,7 +371,7 @@ int SpinBox2::MainSpinBox::shiftStepAdjustment(int oldValue, int shiftStep) /****************************************************************************** * Repaint the widget. -* If it's the first time since a style change, tell the tqparent SpinBox2 to +* If it's the first time since a style change, tell the parent SpinBox2 to * update the SpinMirror with the new unpressed button image. We make the * presumably reasonable assumption that when a style change occurs, the spin * buttons are unpressed. @@ -391,8 +391,8 @@ void ExtraSpinBox::paintEvent(TQPaintEvent* e) = Class SpinMirror =============================================================================*/ -SpinMirror::SpinMirror(SpinBox* spinbox, TQFrame* spinFrame, TQWidget* tqparent, const char* name) - : TQCanvasView(new TQCanvas, tqparent, name), +SpinMirror::SpinMirror(SpinBox* spinbox, TQFrame* spinFrame, TQWidget* parent, const char* name) + : TQCanvasView(new TQCanvas, parent, name), mSpinbox(spinbox), mSpinFrame(spinFrame), mReadOnly(false) diff --git a/kalarm/lib/spinbox2.h b/kalarm/lib/spinbox2.h index f83db252a..4391fbb9c 100644 --- a/kalarm/lib/spinbox2.h +++ b/kalarm/lib/spinbox2.h @@ -59,20 +59,20 @@ class SpinBox2 : public TQFrame TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit SpinBox2(TQWidget* tqparent = 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. * @param step The (unshifted) step interval for the right-hand spin buttons. * @param step2 The (unshifted) step interval for the left-hand spin buttons. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ SpinBox2(int minValue, int maxValue, int step = 1, int step2 = 1, - TQWidget* tqparent = 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. */ @@ -282,10 +282,10 @@ class SpinBox2 : public TQFrame class MainSpinBox : public SpinBox { public: - MainSpinBox(SpinBox2* sb2, TQWidget* tqparent, const char* name = 0) - : SpinBox(tqparent, name), owner(sb2) { } - MainSpinBox(int minValue, int maxValue, int step, SpinBox2* sb2, TQWidget* tqparent, const char* name = 0) - : SpinBox(minValue, maxValue, step, tqparent, name), owner(sb2) { } + MainSpinBox(SpinBox2* sb2, TQWidget* parent, const char* name = 0) + : SpinBox(parent, name), owner(sb2) { } + MainSpinBox(int minValue, int maxValue, int step, SpinBox2* sb2, TQWidget* parent, const char* name = 0) + : SpinBox(minValue, maxValue, step, parent, name), owner(sb2) { } void tqsetAlignment(int a) { editor()->tqsetAlignment(a); } virtual TQString mapValueToText(int v) { return owner->mapValueToText(v); } virtual int mapTextToValue(bool* ok) { return owner->mapTextToValue(ok); } diff --git a/kalarm/lib/spinbox2private.h b/kalarm/lib/spinbox2private.h index 1c5a71ee6..c1c116b04 100644 --- a/kalarm/lib/spinbox2private.h +++ b/kalarm/lib/spinbox2private.h @@ -36,10 +36,10 @@ class ExtraSpinBox : public SpinBox Q_OBJECT TQ_OBJECT public: - explicit ExtraSpinBox(TQWidget* tqparent, const char* name = 0) - : SpinBox(tqparent, name), mNewStylePending(false) { } - ExtraSpinBox(int minValue, int maxValue, int step, TQWidget* tqparent, const char* name = 0) - : SpinBox(minValue, maxValue, step, tqparent, name), mNewStylePending(false) { } + explicit ExtraSpinBox(TQWidget* parent, const char* name = 0) + : SpinBox(parent, name), mNewStylePending(false) { } + 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: @@ -63,7 +63,7 @@ class SpinMirror : public TQCanvasView Q_OBJECT TQ_OBJECT public: - explicit SpinMirror(SpinBox*, TQFrame* spinFrame, TQWidget* tqparent = 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 TQPixmap&); diff --git a/kalarm/lib/timeedit.cpp b/kalarm/lib/timeedit.cpp index 923bef8b3..170914922 100644 --- a/kalarm/lib/timeedit.cpp +++ b/kalarm/lib/timeedit.cpp @@ -28,8 +28,8 @@ #include "timeedit.moc" -TimeEdit::TimeEdit(TQWidget* tqparent, const char* name) - : TQHBox(tqparent, name), +TimeEdit::TimeEdit(TQWidget* parent, const char* name) + : TQHBox(parent, name), mAmPm(0), mAmIndex(-1), mPmIndex(-1), diff --git a/kalarm/lib/timeedit.h b/kalarm/lib/timeedit.h index 7be73c1f9..658fe7805 100644 --- a/kalarm/lib/timeedit.h +++ b/kalarm/lib/timeedit.h @@ -53,10 +53,10 @@ class TimeEdit : public TQHBox TQ_OBJECT public: /** Constructor. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit TimeEdit(TQWidget* tqparent = 0, const char* name = 0); + explicit TimeEdit(TQWidget* parent = 0, const char* name = 0); /** Returns true if the widget is read only. */ bool isReadOnly() const { return mReadOnly; } /** Sets whether the widget is read-only for the user. If read-only, diff --git a/kalarm/lib/timeperiod.cpp b/kalarm/lib/timeperiod.cpp index 9b41e40d4..291ba0872 100644 --- a/kalarm/lib/timeperiod.cpp +++ b/kalarm/lib/timeperiod.cpp @@ -50,8 +50,8 @@ static const int maxMinutes = 1000*60-1; // absolute maximum value for hours:m = Contains a time unit combo box, plus a time spinbox, to select a time period. =============================================================================*/ -TimePeriod::TimePeriod(bool allowHourMinute, TQWidget* tqparent, const char* name) - : TQHBox(tqparent, name), +TimePeriod::TimePeriod(bool allowHourMinute, TQWidget* parent, const char* name) + : TQHBox(parent, name), mMaxDays(9999), mNoHourMinute(!allowHourMinute), mReadOnly(false) diff --git a/kalarm/lib/timeperiod.h b/kalarm/lib/timeperiod.h index 86b663798..9c4152b76 100644 --- a/kalarm/lib/timeperiod.h +++ b/kalarm/lib/timeperiod.h @@ -65,10 +65,10 @@ class TimePeriod : public TQHBox * being allowed as units; only days and weeks can ever be used, * regardless of other method calls. Set true to allow minutes, * hours/minutes, days or weeks as units. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - TimePeriod(bool allowMinute, TQWidget* tqparent, const char* name = 0); + TimePeriod(bool allowMinute, TQWidget* parent, const char* name = 0); /** Returns true if the widget is read only. */ bool isReadOnly() const { return mReadOnly; } /** Sets whether the widget is read-only for the user. If read-only, diff --git a/kalarm/lib/timespinbox.cpp b/kalarm/lib/timespinbox.cpp index ccf0c4492..f756112e8 100644 --- a/kalarm/lib/timespinbox.cpp +++ b/kalarm/lib/timespinbox.cpp @@ -30,8 +30,8 @@ class TimeSpinBox::TimeValidator : public TQValidator { public: - TimeValidator(int minMin, int maxMin, TQWidget* tqparent, const char* name = 0) - : TQValidator(TQT_TQOBJECT(tqparent), name), + TimeValidator(int minMin, int maxMin, TQWidget* parent, const char* name = 0) + : TQValidator(TQT_TQOBJECT(parent), name), minMinute(minMin), maxMinute(maxMin), m12Hour(false), mPm(false) { } virtual State validate(TQString&, int&) const; int minMinute, maxMinute; @@ -54,8 +54,8 @@ class TimeSpinBox::TimeValidator : public TQValidator /****************************************************************************** * Construct a wrapping 00:00 - 23:59, or 12:00 - 11:59 time spin box. */ -TimeSpinBox::TimeSpinBox(bool use24hour, TQWidget* tqparent, const char* name) - : SpinBox2(0, 1439, 1, 60, tqparent, name), +TimeSpinBox::TimeSpinBox(bool use24hour, TQWidget* parent, const char* name) + : SpinBox2(0, 1439, 1, 60, parent, name), mMinimumValue(0), m12Hour(!use24hour), mPm(false), @@ -76,8 +76,8 @@ TimeSpinBox::TimeSpinBox(bool use24hour, TQWidget* tqparent, const char* name) /****************************************************************************** * Construct a non-wrapping time spin box. */ -TimeSpinBox::TimeSpinBox(int minMinute, int maxMinute, TQWidget* tqparent, const char* name) - : SpinBox2(minMinute, maxMinute, 1, 60, tqparent, name), +TimeSpinBox::TimeSpinBox(int minMinute, int maxMinute, TQWidget* parent, const char* name) + : SpinBox2(minMinute, maxMinute, 1, 60, parent, name), mMinimumValue(minMinute), m12Hour(false), mInvalid(false), diff --git a/kalarm/lib/timespinbox.h b/kalarm/lib/timespinbox.h index 4bacd4947..0be232453 100644 --- a/kalarm/lib/timespinbox.h +++ b/kalarm/lib/timespinbox.h @@ -50,17 +50,17 @@ class TimeSpinBox : public SpinBox2 /** Constructor for a wrapping time spin box which can be used to enter a time of day. * @param use24hour True for entry of 24-hour clock times (range 00:00 to 23:59). * False for entry of 12-hour clock times (range 12:00 to 11:59). - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit TimeSpinBox(bool use24hour, TQWidget* tqparent = 0, const char* name = 0); + explicit TimeSpinBox(bool use24hour, TQWidget* parent = 0, const char* name = 0); /** Constructor for a non-wrapping time spin box which can be used to enter a length of time. * @param minMinute The minimum value which the spin box can hold, in minutes. * @param maxMinute The maximum value which the spin box can hold, in minutes. - * @param tqparent The tqparent object of this widget. + * @param parent The parent object of this widget. * @param name The name of this widget. */ - TimeSpinBox(int minMinute, int maxMinute, TQWidget* tqparent = 0, const char* name = 0); + TimeSpinBox(int minMinute, int maxMinute, TQWidget* parent = 0, const char* name = 0); /** Returns true if the spin box holds a valid value. * An invalid value is displayed as asterisks. */ |