From eb570158698cf61dad4f77d950ef908160f6c3cc Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kwordquiz/src/dlglanguage.cpp | 2 +- kwordquiz/src/dlglanguage.h | 2 +- kwordquiz/src/dlgrc.cpp | 2 +- kwordquiz/src/dlgrc.h | 2 +- kwordquiz/src/dlgsort.cpp | 2 +- kwordquiz/src/dlgsort.h | 2 +- kwordquiz/src/dlgspecchar.cpp | 4 ++-- kwordquiz/src/dlgspecchar.h | 2 +- kwordquiz/src/flashview.cpp | 8 ++++---- kwordquiz/src/flashview.h | 2 +- kwordquiz/src/kwordquiz.cpp | 2 +- kwordquiz/src/kwordquiz.h | 2 +- kwordquiz/src/kwordquizdoc.cpp | 4 ++-- kwordquiz/src/kwordquizdoc.h | 2 +- kwordquiz/src/kwordquizprefs.cpp | 6 +++--- kwordquiz/src/kwordquizprefs.h | 2 +- kwordquiz/src/kwordquizview.cpp | 2 +- kwordquiz/src/kwordquizview.h | 4 ++-- kwordquiz/src/kwqnewstuff.cpp | 4 ++-- kwordquiz/src/kwqnewstuff.h | 2 +- kwordquiz/src/multipleview.cpp | 8 ++++---- kwordquiz/src/multipleview.h | 2 +- kwordquiz/src/prefcardappearance.cpp | 4 ++-- kwordquiz/src/prefcardappearance.h | 2 +- kwordquiz/src/prefcharacter.cpp | 4 ++-- kwordquiz/src/prefcharacter.h | 2 +- kwordquiz/src/prefeditor.cpp | 4 ++-- kwordquiz/src/prefeditor.h | 2 +- kwordquiz/src/prefquiz.cpp | 4 ++-- kwordquiz/src/prefquiz.h | 2 +- kwordquiz/src/qaview.cpp | 6 +++--- kwordquiz/src/qaview.h | 2 +- kwordquiz/src/wqprintdialogpage.cpp | 4 ++-- kwordquiz/src/wqprintdialogpage.h | 2 +- kwordquiz/src/wqquiz.cpp | 4 ++-- kwordquiz/src/wqquiz.h | 2 +- 36 files changed, 56 insertions(+), 56 deletions(-) (limited to 'kwordquiz/src') diff --git a/kwordquiz/src/dlglanguage.cpp b/kwordquiz/src/dlglanguage.cpp index 004525c3..f142ee64 100644 --- a/kwordquiz/src/dlglanguage.cpp +++ b/kwordquiz/src/dlglanguage.cpp @@ -23,7 +23,7 @@ #include "prefs.h" #include "dlglanguage.h" -DlgLanguage::DlgLanguage(TQWidget *tqparent, const char *name, bool modal): KDialogBase(Swallow, i18n("Column Titles"), Ok|Cancel, Ok, tqparent, name, modal, true) +DlgLanguage::DlgLanguage(TQWidget *parent, const char *name, bool modal): KDialogBase(Swallow, i18n("Column Titles"), Ok|Cancel, Ok, parent, name, modal, true) { dlgBase = new DlgLanguageBase( this, "Dlg" ); setMainWidget(dlgBase); diff --git a/kwordquiz/src/dlglanguage.h b/kwordquiz/src/dlglanguage.h index d92b80ad..7c0860c6 100644 --- a/kwordquiz/src/dlglanguage.h +++ b/kwordquiz/src/dlglanguage.h @@ -30,7 +30,7 @@ class DlgLanguage : public KDialogBase { Q_OBJECT TQ_OBJECT public: - DlgLanguage(TQWidget *tqparent = 0, const char *name = 0, bool modal=true); + DlgLanguage(TQWidget *parent = 0, const char *name = 0, bool modal=true); ~DlgLanguage(); void setLanguage(int index, const TQString &lang); diff --git a/kwordquiz/src/dlgrc.cpp b/kwordquiz/src/dlgrc.cpp index dc5693ad..9fa996e3 100644 --- a/kwordquiz/src/dlgrc.cpp +++ b/kwordquiz/src/dlgrc.cpp @@ -19,7 +19,7 @@ #include "dlgrc.h" -DlgRC::DlgRC(TQWidget *tqparent, const char *name, bool modal): KDialogBase(Swallow, i18n("Rows & Columns"), Ok|Cancel, Ok, tqparent, name, modal, true) +DlgRC::DlgRC(TQWidget *parent, const char *name, bool modal): KDialogBase(Swallow, i18n("Rows & Columns"), Ok|Cancel, Ok, parent, name, modal, true) { dlgBase = new DlgRCBase( this, "Dlg" ); setMainWidget(dlgBase); diff --git a/kwordquiz/src/dlgrc.h b/kwordquiz/src/dlgrc.h index d1aa4bb3..42bf4d8a 100644 --- a/kwordquiz/src/dlgrc.h +++ b/kwordquiz/src/dlgrc.h @@ -29,7 +29,7 @@ class DlgRC : public KDialogBase Q_OBJECT TQ_OBJECT public: - DlgRC(TQWidget *tqparent = 0, const char *name = 0, bool modal=true); + DlgRC(TQWidget *parent = 0, const char *name = 0, bool modal=true); ~DlgRC(); void setNumRows(int r); diff --git a/kwordquiz/src/dlgsort.cpp b/kwordquiz/src/dlgsort.cpp index bac1f85c..20221468 100644 --- a/kwordquiz/src/dlgsort.cpp +++ b/kwordquiz/src/dlgsort.cpp @@ -21,7 +21,7 @@ #include "dlgsort.h" -DlgSort::DlgSort(TQWidget *tqparent, const char *name, bool modal): KDialogBase(Swallow, i18n("Sort"), Ok|Cancel, Ok, tqparent, name, modal, true) +DlgSort::DlgSort(TQWidget *parent, const char *name, bool modal): KDialogBase(Swallow, i18n("Sort"), Ok|Cancel, Ok, parent, name, modal, true) { dlgBase = new DlgSortBase( this, "Dlg" ); setMainWidget(dlgBase); diff --git a/kwordquiz/src/dlgsort.h b/kwordquiz/src/dlgsort.h index 4a36e385..851a11c4 100644 --- a/kwordquiz/src/dlgsort.h +++ b/kwordquiz/src/dlgsort.h @@ -30,7 +30,7 @@ Q_OBJECT TQ_OBJECT public: - DlgSort(TQWidget *tqparent = 0, const char *name = 0, bool modal=true); + DlgSort(TQWidget *parent = 0, const char *name = 0, bool modal=true); ~DlgSort(); bool base(); diff --git a/kwordquiz/src/dlgspecchar.cpp b/kwordquiz/src/dlgspecchar.cpp index 25d8b49a..af521fd1 100644 --- a/kwordquiz/src/dlgspecchar.cpp +++ b/kwordquiz/src/dlgspecchar.cpp @@ -22,8 +22,8 @@ #include #include -DlgSpecChar::DlgSpecChar( TQWidget *tqparent, const char *name, const TQString &_font, const TQChar &_chr, bool _modal ) - : KDialogBase( Plain, i18n("Select Character"), User1 | Cancel, User1 , tqparent, name, _modal ) +DlgSpecChar::DlgSpecChar( TQWidget *parent, const char *name, const TQString &_font, const TQChar &_chr, bool _modal ) + : KDialogBase( Plain, i18n("Select Character"), User1 | Cancel, User1 , parent, name, _modal ) { initDialog(_chr,_font,true); diff --git a/kwordquiz/src/dlgspecchar.h b/kwordquiz/src/dlgspecchar.h index b5ca9aa5..fb587522 100644 --- a/kwordquiz/src/dlgspecchar.h +++ b/kwordquiz/src/dlgspecchar.h @@ -34,7 +34,7 @@ Q_OBJECT TQ_OBJECT public: //constructor when you want to insert multi char - DlgSpecChar( TQWidget *tqparent, const char *name, const TQString &_font, + DlgSpecChar( TQWidget *parent, const char *name, const TQString &_font, const TQChar &_chr, bool _modal=true ); ~DlgSpecChar(); diff --git a/kwordquiz/src/flashview.cpp b/kwordquiz/src/flashview.cpp index eb29cb62..a7561643 100644 --- a/kwordquiz/src/flashview.cpp +++ b/kwordquiz/src/flashview.cpp @@ -25,8 +25,8 @@ #include "prefs.h" -FlashView::FlashView(TQWidget *tqparent, const char *name, WFlags f) - : FlashViewBase(tqparent, name, f) +FlashView::FlashView(TQWidget *parent, const char *name, WFlags f) + : FlashViewBase(parent, name, f) { m_score = new WTQScore(); m_timer = new TQTimer(this); @@ -57,7 +57,7 @@ void FlashView::init() updateScore(); - KWordQuizApp *win=(KWordQuizApp *) tqparent(); + KWordQuizApp *win=(KWordQuizApp *) parent(); win->actionCollection()->action("quiz_check")->setEnabled(true); win->actionCollection()->action("flash_know")->setEnabled(true); win->actionCollection()->action("flash_dont_know")->setEnabled(true); @@ -106,7 +106,7 @@ void FlashView::keepDiscardCard(bool keep) else { m_quiz->finish(); - KWordQuizApp *win=(KWordQuizApp *) tqparent(); + KWordQuizApp *win=(KWordQuizApp *) parent(); win->actionCollection()->action("quiz_check")->setEnabled(false); win->actionCollection()->action("flash_know")->setEnabled(false); win->actionCollection()->action("flash_dont_know")->setEnabled(false); diff --git a/kwordquiz/src/flashview.h b/kwordquiz/src/flashview.h index 96e69d3d..d548d5a8 100644 --- a/kwordquiz/src/flashview.h +++ b/kwordquiz/src/flashview.h @@ -33,7 +33,7 @@ class FlashView : public FlashViewBase Q_OBJECT TQ_OBJECT public: - FlashView(TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0); + FlashView(TQWidget *parent = 0, const char *name = 0, WFlags f = 0); ~FlashView(); diff --git a/kwordquiz/src/kwordquiz.cpp b/kwordquiz/src/kwordquiz.cpp index 36043f64..b370f36c 100644 --- a/kwordquiz/src/kwordquiz.cpp +++ b/kwordquiz/src/kwordquiz.cpp @@ -1102,7 +1102,7 @@ TQString KWordQuizApp::charIcon(const TQChar & c) p.setPen(TQt::blue); p.drawText(r, TQt::AlignCenter, (TQString) c); - ///Create transparency tqmask + ///Create transparency mask TQBitmap bm(128, 128); bm.fill(TQt::color0); TQPainter b(&bm); diff --git a/kwordquiz/src/kwordquiz.h b/kwordquiz/src/kwordquiz.h index b964e6af..59dc10a1 100644 --- a/kwordquiz/src/kwordquiz.h +++ b/kwordquiz/src/kwordquiz.h @@ -67,7 +67,7 @@ class KWordQuizApp : public KMainWindow public: /** construtor of KWordQuizApp, calls all init functions to create the application. */ - KWordQuizApp(TQWidget* tqparent=0, const char* name=0); + KWordQuizApp(TQWidget* parent=0, const char* name=0); ~KWordQuizApp(); /** opens a file specified by commandline option */ diff --git a/kwordquiz/src/kwordquizdoc.cpp b/kwordquiz/src/kwordquizdoc.cpp index c8c6cdd7..c1e3dacc 100644 --- a/kwordquiz/src/kwordquizdoc.cpp +++ b/kwordquiz/src/kwordquizdoc.cpp @@ -36,7 +36,7 @@ //TQList *KWordQuizDoc::pViewList = 0L; //KWordQuizView *KWordQuizDoc::m_view; -KWordQuizDoc::KWordQuizDoc(TQWidget *tqparent, const char *name) : TQObject(tqparent, name) +KWordQuizDoc::KWordQuizDoc(TQWidget *parent, const char *name) : TQObject(parent, name) { connect(KDirWatch::self(), TQT_SIGNAL(dirty(const TQString& )), this, TQT_SLOT(slotModifiedOnDisk(const TQString& ))); /* if(!pViewList) @@ -105,7 +105,7 @@ bool KWordQuizDoc::saveModified() if(modified) { - KWordQuizApp *win=(KWordQuizApp *) tqparent(); + KWordQuizApp *win=(KWordQuizApp *) parent(); int want_save = KMessageBox::warningYesNoCancel(win, i18n("The current file has been modified.\n" "Do you want to save it?"), diff --git a/kwordquiz/src/kwordquizdoc.h b/kwordquiz/src/kwordquizdoc.h index 73b0db0d..a84bc119 100644 --- a/kwordquiz/src/kwordquizdoc.h +++ b/kwordquiz/src/kwordquizdoc.h @@ -46,7 +46,7 @@ class KWordQuizDoc : public TQObject TQ_OBJECT public: /** Constructor for the fileclass of the application */ - KWordQuizDoc(TQWidget *tqparent, const char *name=0); + KWordQuizDoc(TQWidget *parent, const char *name=0); /** Destructor for the fileclass of the application */ ~KWordQuizDoc(); diff --git a/kwordquiz/src/kwordquizprefs.cpp b/kwordquiz/src/kwordquizprefs.cpp index 351c0fef..61380e68 100644 --- a/kwordquiz/src/kwordquizprefs.cpp +++ b/kwordquiz/src/kwordquizprefs.cpp @@ -41,8 +41,8 @@ #include "kwordquiz.h" #include "dlgspecchar.h" -KWordQuizPrefs::KWordQuizPrefs(TQWidget *tqparent, const char *name, KConfigSkeleton *config, DialogType dialogType, int /*dialogButtons*/, ButtonCode /*defaultButton*/, bool /*modal*/) - : KConfigDialog(tqparent, name, config, dialogType, Default|Ok|Apply|Cancel|Help, Ok, false) +KWordQuizPrefs::KWordQuizPrefs(TQWidget *parent, const char *name, KConfigSkeleton *config, DialogType dialogType, int /*dialogButtons*/, ButtonCode /*defaultButton*/, bool /*modal*/) + : KConfigDialog(parent, name, config, dialogType, Default|Ok|Apply|Cancel|Help, Ok, false) { m_config = config; @@ -63,7 +63,7 @@ KWordQuizPrefs::KWordQuizPrefs(TQWidget *tqparent, const char *name, KConfigSke connect(m_prefCharacter->lstCharacters, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotCharListSelectionChanged())); connect(m_prefCharacter->btnCharacter, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSelectSpecChar())); - KWordQuizApp *win=(KWordQuizApp *) tqparent; + KWordQuizApp *win=(KWordQuizApp *) parent; int i=0; KConfigSkeletonItem * item = m_config->findItem("SpecialCharacters"); diff --git a/kwordquiz/src/kwordquizprefs.h b/kwordquiz/src/kwordquizprefs.h index 30287c99..984ab375 100644 --- a/kwordquiz/src/kwordquizprefs.h +++ b/kwordquiz/src/kwordquizprefs.h @@ -35,7 +35,7 @@ class KWordQuizPrefs : public KConfigDialog Q_OBJECT TQ_OBJECT public: - KWordQuizPrefs(TQWidget *tqparent=0, const char *name=0, KConfigSkeleton *config=0, DialogType dialogType=IconList, + KWordQuizPrefs(TQWidget *parent=0, const char *name=0, KConfigSkeleton *config=0, DialogType dialogType=IconList, int dialogButtons=Default|Ok|Apply|Cancel|Help, ButtonCode defaultButton=Ok, bool modal=false); protected slots: diff --git a/kwordquiz/src/kwordquizview.cpp b/kwordquiz/src/kwordquizview.cpp index 9e78ce8c..021601bd 100644 --- a/kwordquiz/src/kwordquizview.cpp +++ b/kwordquiz/src/kwordquizview.cpp @@ -55,7 +55,7 @@ int KWTQTableItem::tqalignment() const return (num ? TQt::AlignRight : TQt::AlignAuto) | TQt::AlignVCenter; } -KWordQuizView::KWordQuizView(TQWidget *tqparent, const char *name) : TQTable(tqparent, name) +KWordQuizView::KWordQuizView(TQWidget *parent, const char *name) : TQTable(parent, name) { if(!m_undoList) m_undoList = new TQValueList(); diff --git a/kwordquiz/src/kwordquizview.h b/kwordquiz/src/kwordquizview.h index 9c4a3f0d..b49ea65c 100644 --- a/kwordquiz/src/kwordquizview.h +++ b/kwordquiz/src/kwordquizview.h @@ -54,11 +54,11 @@ class KWordQuizView : public TQTable TQ_OBJECT public: /** Constructor for the main view */ - KWordQuizView(TQWidget *tqparent = 0, const char *name=0); + KWordQuizView(TQWidget *parent = 0, const char *name=0); /** Destructor for the main view */ ~KWordQuizView(); - /** returns a pointer to the document connected to the view instance. Mind that this method requires a KWordQuizApp instance as a tqparent + /** returns a pointer to the document connected to the view instance. Mind that this method requires a KWordQuizApp instance as a parent * widget to get to the window document pointer by calling the KWordQuizApp::getDocument() method. * * @see KWordQuizApp#getDocument diff --git a/kwordquiz/src/kwqnewstuff.cpp b/kwordquiz/src/kwqnewstuff.cpp index c801b011..99d469d7 100644 --- a/kwordquiz/src/kwqnewstuff.cpp +++ b/kwordquiz/src/kwqnewstuff.cpp @@ -27,9 +27,9 @@ #include "kwqnewstuff.h" #include "prefs.h" -KWQNewStuff::KWQNewStuff(TQWidget *tqparent, const char *name) : TQObject(), KNewStuff("kdeedu/vocabulary", tqparent) +KWQNewStuff::KWQNewStuff(TQWidget *parent, const char *name) : TQObject(), KNewStuff("kdeedu/vocabulary", parent) { - m_app = (KWordQuizApp *) tqparent; + m_app = (KWordQuizApp *) parent; } diff --git a/kwordquiz/src/kwqnewstuff.h b/kwordquiz/src/kwqnewstuff.h index 87c825f1..2f9ab9a1 100644 --- a/kwordquiz/src/kwqnewstuff.h +++ b/kwordquiz/src/kwqnewstuff.h @@ -30,7 +30,7 @@ class KWQNewStuff : public TQObject, public KNewStuff Q_OBJECT TQ_OBJECT public: - KWQNewStuff(TQWidget *tqparent = 0, const char *name = 0); + KWQNewStuff(TQWidget *parent = 0, const char *name = 0); /** Installs a downloaded file according to the application's configuration. diff --git a/kwordquiz/src/multipleview.cpp b/kwordquiz/src/multipleview.cpp index 850aef33..b7376952 100644 --- a/kwordquiz/src/multipleview.cpp +++ b/kwordquiz/src/multipleview.cpp @@ -27,8 +27,8 @@ #include "multipleview.h" #include "prefs.h" -MultipleView::MultipleView(TQWidget *tqparent, const char *name, WFlags f) - : MultipleViewBase(tqparent, name, f) +MultipleView::MultipleView(TQWidget *parent, const char *name, WFlags f) + : MultipleViewBase(parent, name, f) { m_score = new WTQScore(); } @@ -77,7 +77,7 @@ void MultipleView::init() picYourAnswer->clear(); picCorrectAnswer->clear(); - KWordQuizApp *win=(KWordQuizApp *) tqparent(); + KWordQuizApp *win=(KWordQuizApp *) parent(); win->actionCollection()->action("quiz_check")->setEnabled(true); win->actionCollection()->action("quiz_repeat_errors")->setEnabled(false); @@ -87,7 +87,7 @@ void MultipleView::init() void MultipleView::slotCheck() { - KWordQuizApp *win=(KWordQuizApp *) tqparent(); + KWordQuizApp *win=(KWordQuizApp *) parent(); if (win->actionCollection()->action("quiz_check")->isEnabled()) { diff --git a/kwordquiz/src/multipleview.h b/kwordquiz/src/multipleview.h index 01414599..6fab280a 100644 --- a/kwordquiz/src/multipleview.h +++ b/kwordquiz/src/multipleview.h @@ -31,7 +31,7 @@ class MultipleView : public MultipleViewBase Q_OBJECT TQ_OBJECT public: - MultipleView(TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0); + MultipleView(TQWidget *parent = 0, const char *name = 0, WFlags f = 0); ~MultipleView(); diff --git a/kwordquiz/src/prefcardappearance.cpp b/kwordquiz/src/prefcardappearance.cpp index d5853fae..e2e08f2a 100644 --- a/kwordquiz/src/prefcardappearance.cpp +++ b/kwordquiz/src/prefcardappearance.cpp @@ -18,8 +18,8 @@ #include "prefcardappearance.h" -PrefCardAppearance::PrefCardAppearance(TQWidget *tqparent, const char *name) - : PrefCardAppearanceBase(tqparent, name) +PrefCardAppearance::PrefCardAppearance(TQWidget *parent, const char *name) + : PrefCardAppearanceBase(parent, name) { widgetStack->raiseWidget(frontStackPage); } diff --git a/kwordquiz/src/prefcardappearance.h b/kwordquiz/src/prefcardappearance.h index 9ee53337..5c81ffc5 100644 --- a/kwordquiz/src/prefcardappearance.h +++ b/kwordquiz/src/prefcardappearance.h @@ -22,7 +22,7 @@ class PrefCardAppearance : public PrefCardAppearanceBase Q_OBJECT TQ_OBJECT public: - PrefCardAppearance(TQWidget *tqparent = 0, const char *name = 0); + PrefCardAppearance(TQWidget *parent = 0, const char *name = 0); ~PrefCardAppearance(); public slots: diff --git a/kwordquiz/src/prefcharacter.cpp b/kwordquiz/src/prefcharacter.cpp index 2e6d3f54..7ef819d4 100644 --- a/kwordquiz/src/prefcharacter.cpp +++ b/kwordquiz/src/prefcharacter.cpp @@ -18,8 +18,8 @@ #include "prefcharacter.h" -PrefCharacter::PrefCharacter(TQWidget *tqparent, const char *name) - : PrefCharacterBase(tqparent, name) +PrefCharacter::PrefCharacter(TQWidget *parent, const char *name) + : PrefCharacterBase(parent, name) { } diff --git a/kwordquiz/src/prefcharacter.h b/kwordquiz/src/prefcharacter.h index 8f3d0ec3..39954f2d 100644 --- a/kwordquiz/src/prefcharacter.h +++ b/kwordquiz/src/prefcharacter.h @@ -29,7 +29,7 @@ class PrefCharacter : public PrefCharacterBase Q_OBJECT TQ_OBJECT public: - PrefCharacter(TQWidget *tqparent = 0, const char *name = 0); + PrefCharacter(TQWidget *parent = 0, const char *name = 0); ~PrefCharacter(); }; diff --git a/kwordquiz/src/prefeditor.cpp b/kwordquiz/src/prefeditor.cpp index 6610d5b8..3fc69802 100644 --- a/kwordquiz/src/prefeditor.cpp +++ b/kwordquiz/src/prefeditor.cpp @@ -19,8 +19,8 @@ #include "prefeditor.h" -PrefEditor::PrefEditor(TQWidget *tqparent, const char *name, WFlags f) - : PrefEditorBase(tqparent, name, f) +PrefEditor::PrefEditor(TQWidget *parent, const char *name, WFlags f) + : PrefEditorBase(parent, name, f) { } diff --git a/kwordquiz/src/prefeditor.h b/kwordquiz/src/prefeditor.h index a88c1892..2cdf0795 100644 --- a/kwordquiz/src/prefeditor.h +++ b/kwordquiz/src/prefeditor.h @@ -30,7 +30,7 @@ Q_OBJECT TQ_OBJECT public: - PrefEditor(TQWidget *tqparent, const char *name=0, WFlags f=0); + PrefEditor(TQWidget *parent, const char *name=0, WFlags f=0); ~PrefEditor(); }; diff --git a/kwordquiz/src/prefquiz.cpp b/kwordquiz/src/prefquiz.cpp index a57b0816..cfb07aae 100644 --- a/kwordquiz/src/prefquiz.cpp +++ b/kwordquiz/src/prefquiz.cpp @@ -24,8 +24,8 @@ #include "prefquiz.h" -PrefQuiz::PrefQuiz(TQWidget *tqparent, const char *name, WFlags f) - : PrefQuizBase(tqparent, name, f) +PrefQuiz::PrefQuiz(TQWidget *parent, const char *name, WFlags f) + : PrefQuizBase(parent, name, f) { kcfg_FlipDelay -> setEnabled(kcfg_AutoFlip->isChecked()); kcfg_KeepDiscard->setEnabled(kcfg_AutoFlip->isChecked()); diff --git a/kwordquiz/src/prefquiz.h b/kwordquiz/src/prefquiz.h index 59a4c307..df4dc75f 100644 --- a/kwordquiz/src/prefquiz.h +++ b/kwordquiz/src/prefquiz.h @@ -30,7 +30,7 @@ Q_OBJECT TQ_OBJECT public: - PrefQuiz(TQWidget *tqparent, const char *name=0, WFlags f=0); + PrefQuiz(TQWidget *parent, const char *name=0, WFlags f=0); ~PrefQuiz(); }; diff --git a/kwordquiz/src/qaview.cpp b/kwordquiz/src/qaview.cpp index bfc9ab86..141873ec 100644 --- a/kwordquiz/src/qaview.cpp +++ b/kwordquiz/src/qaview.cpp @@ -63,7 +63,7 @@ TQString highlightError(const TQString & c, const TQString & e) } -QAView::QAView(TQWidget *tqparent, const char *name, WFlags f):QAViewBase(tqparent, name, f) +QAView::QAView(TQWidget *parent, const char *name, WFlags f):QAViewBase(parent, name, f) { m_score = new WTQScore(); } @@ -116,7 +116,7 @@ void QAView::init() picYourAnswer->clear(); picCorrectAnswer->clear(); - KWordQuizApp *win=(KWordQuizApp *) tqparent(); + KWordQuizApp *win=(KWordQuizApp *) parent(); win->actionCollection()->action("quiz_check")->setEnabled(true); win->actionCollection()->action("qa_hint")->setEnabled(true); win->actionCollection()->action("quiz_repeat_errors")->setEnabled(false); @@ -129,7 +129,7 @@ void QAView::init() void QAView::slotCheck() { - KWordQuizApp *win=(KWordQuizApp *) tqparent(); + KWordQuizApp *win=(KWordQuizApp *) parent(); if (win->actionCollection()->action("quiz_check")->isEnabled()) { bool fIsCorrect; diff --git a/kwordquiz/src/qaview.h b/kwordquiz/src/qaview.h index fce3e461..66817ff3 100644 --- a/kwordquiz/src/qaview.h +++ b/kwordquiz/src/qaview.h @@ -34,7 +34,7 @@ class QAView : public QAViewBase Q_OBJECT TQ_OBJECT public: - QAView(TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0); + QAView(TQWidget *parent = 0, const char *name = 0, WFlags f = 0); ~QAView(); diff --git a/kwordquiz/src/wqprintdialogpage.cpp b/kwordquiz/src/wqprintdialogpage.cpp index 833e6729..25d5b79b 100644 --- a/kwordquiz/src/wqprintdialogpage.cpp +++ b/kwordquiz/src/wqprintdialogpage.cpp @@ -25,8 +25,8 @@ #include "wqprintdialogpage.h" -WQPrintDialogPage::WQPrintDialogPage(TQWidget *tqparent, const char *name ) - : KPrintDialogPage( tqparent, name ) +WQPrintDialogPage::WQPrintDialogPage(TQWidget *parent, const char *name ) + : KPrintDialogPage( parent, name ) { setTitle(i18n("Vocabulary Options")); diff --git a/kwordquiz/src/wqprintdialogpage.h b/kwordquiz/src/wqprintdialogpage.h index c4252dd9..c3bc270d 100644 --- a/kwordquiz/src/wqprintdialogpage.h +++ b/kwordquiz/src/wqprintdialogpage.h @@ -32,7 +32,7 @@ class WQPrintDialogPage : public KPrintDialogPage Q_OBJECT TQ_OBJECT public: - WQPrintDialogPage( TQWidget *tqparent = 0, const char *name = 0 ); + WQPrintDialogPage( TQWidget *parent = 0, const char *name = 0 ); ~WQPrintDialogPage(); //reimplement virtual functions diff --git a/kwordquiz/src/wqquiz.cpp b/kwordquiz/src/wqquiz.cpp index f780562d..c15f0de4 100644 --- a/kwordquiz/src/wqquiz.cpp +++ b/kwordquiz/src/wqquiz.cpp @@ -23,9 +23,9 @@ #include "wqquiz.h" #include "prefs.h" -WQQuiz::WQQuiz(KWordQuizView * tqparent, const char *name) : TQObject(tqparent, name) +WQQuiz::WQQuiz(KWordQuizView * parent, const char *name) : TQObject(parent, name) { - m_table = tqparent; + m_table = parent; m_list.clear(); m_errorList.clear(); diff --git a/kwordquiz/src/wqquiz.h b/kwordquiz/src/wqquiz.h index 1f3581d1..66e66583 100644 --- a/kwordquiz/src/wqquiz.h +++ b/kwordquiz/src/wqquiz.h @@ -38,7 +38,7 @@ class WQQuiz : public TQObject enum QuizType {qtEditor, qtFlash, qtMultiple, qtQA}; enum QuizIcon {qiLeftCol, qiRightCol, qiQuestion, qiCorrect, qiError}; - WQQuiz(KWordQuizView * tqparent, const char * name=0); + WQQuiz(KWordQuizView * parent, const char * name=0); void activateErrorList(); void activateBaseList(); -- cgit v1.2.1