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 | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kchart | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kchart')
75 files changed, 232 insertions, 232 deletions
diff --git a/kchart/csvimportdialog.cc b/kchart/csvimportdialog.cc index 1330ee88..38cfd8c2 100644 --- a/kchart/csvimportdialog.cc +++ b/kchart/csvimportdialog.cc @@ -41,8 +41,8 @@ #include <kcharsets.h> -CSVImportDialog::CSVImportDialog(TQWidget* tqparent, TQByteArray& fileArray) - : KDialogBase(tqparent, 0, true, TQString(), Ok|Cancel, No, true), +CSVImportDialog::CSVImportDialog(TQWidget* parent, TQByteArray& fileArray) + : KDialogBase(parent, 0, true, TQString(), Ok|Cancel, No, true), m_dialog(new DialogUI(this)), m_adjustRows(false), m_adjustCols(false), @@ -610,7 +610,7 @@ TQTextCodec* CSVImportDialog::getCodec(void) const { // Default: UTF-8 kdWarning(30502) << "Cannot find encoding:" << strCodec << endl; - // ### TODO: what tqparent to use? + // ### TODO: what parent to use? KMessageBox::error( 0, i18n("Cannot find encoding: %1").tqarg( strCodec ) ); return 0; } diff --git a/kchart/csvimportdialog.h b/kchart/csvimportdialog.h index d4a01726..80cd5375 100644 --- a/kchart/csvimportdialog.h +++ b/kchart/csvimportdialog.h @@ -42,7 +42,7 @@ public: POINTNUMBER ///< Number, which decimal symbol is a point/dot }; - CSVImportDialog(TQWidget* tqparent, TQByteArray& fileArray); + CSVImportDialog(TQWidget* parent, TQByteArray& fileArray); ~CSVImportDialog(); bool firstRowContainHeaders(); diff --git a/kchart/kchartBackgroundPixmapConfigPage.cc b/kchart/kchartBackgroundPixmapConfigPage.cc index 0f517ad6..c0d3d70e 100644 --- a/kchart/kchartBackgroundPixmapConfigPage.cc +++ b/kchart/kchartBackgroundPixmapConfigPage.cc @@ -46,8 +46,8 @@ namespace KChart { -KChartBackgroundPixmapConfigPage::KChartBackgroundPixmapConfigPage( KChartParams* params, TQWidget* tqparent ) - : TQWidget( tqparent, "KChartBackgroundPixmapConfigPage" ), +KChartBackgroundPixmapConfigPage::KChartBackgroundPixmapConfigPage( KChartParams* params, TQWidget* parent ) + : TQWidget( parent, "KChartBackgroundPixmapConfigPage" ), _params( params ) { TQWhatsThis::add( this, diff --git a/kchart/kchartBackgroundPixmapConfigPage.h b/kchart/kchartBackgroundPixmapConfigPage.h index 614396ea..33350cf1 100644 --- a/kchart/kchartBackgroundPixmapConfigPage.h +++ b/kchart/kchartBackgroundPixmapConfigPage.h @@ -43,7 +43,7 @@ class KChartBackgroundPixmapConfigPage : public TQWidget public: KChartBackgroundPixmapConfigPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); void init(); void apply(); diff --git a/kchart/kchartColorConfigPage.cc b/kchart/kchartColorConfigPage.cc index 1ffdab28..d5666802 100644 --- a/kchart/kchartColorConfigPage.cc +++ b/kchart/kchartColorConfigPage.cc @@ -37,9 +37,9 @@ namespace KChart { KChartColorConfigPage::KChartColorConfigPage( KChartParams* params, - TQWidget* tqparent, + TQWidget* parent, KDChartTableData *dat ) : - TQWidget( tqparent ), + TQWidget( parent ), m_params( params ), m_data( dat ), index( 0 ) diff --git a/kchart/kchartColorConfigPage.h b/kchart/kchartColorConfigPage.h index 0209b708..ee95f8e8 100644 --- a/kchart/kchartColorConfigPage.h +++ b/kchart/kchartColorConfigPage.h @@ -44,7 +44,7 @@ class KChartColorConfigPage : public TQWidget TQ_OBJECT public: - KChartColorConfigPage( KChartParams* params, TQWidget* tqparent, KDChartTableData *dat ); + KChartColorConfigPage( KChartParams* params, TQWidget* parent, KDChartTableData *dat ); void apply(); void setBackgroundColor( TQColor color ); diff --git a/kchart/kchartComboConfigPage.cc b/kchart/kchartComboConfigPage.cc index dc863a0f..72453584 100644 --- a/kchart/kchartComboConfigPage.cc +++ b/kchart/kchartComboConfigPage.cc @@ -35,8 +35,8 @@ namespace KChart { KChartComboPage::KChartComboPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),_params( params ) + TQWidget* parent ) : + TQWidget( parent ),_params( params ) { //TQVBoxLayout* toplevel = new TQVBoxLayout( this, 10 ); diff --git a/kchart/kchartComboConfigPage.h b/kchart/kchartComboConfigPage.h index 91a6846f..67b00c54 100644 --- a/kchart/kchartComboConfigPage.h +++ b/kchart/kchartComboConfigPage.h @@ -35,7 +35,7 @@ class KChartComboPage : public TQWidget TQ_OBJECT public: - KChartComboPage( KChartParams* params,TQWidget* tqparent ); + KChartComboPage( KChartParams* params,TQWidget* parent ); void init(); void apply(); diff --git a/kchart/kchartConfigDialog.cc b/kchart/kchartConfigDialog.cc index 4eadac39..d5c9a72a 100644 --- a/kchart/kchartConfigDialog.cc +++ b/kchart/kchartConfigDialog.cc @@ -49,9 +49,9 @@ namespace KChart { KChartConfigDialog::KChartConfigDialog( KChartParams* params, - TQWidget* tqparent, int flags, + TQWidget* parent, int flags, KDChartTableData *dat ) : - TQTabDialog( tqparent, "Chart config dialog", true ), + TQTabDialog( parent, "Chart config dialog", true ), m_params( params ), m_dataPage(0), diff --git a/kchart/kchartConfigDialog.h b/kchart/kchartConfigDialog.h index c74bf598..3ffcad50 100644 --- a/kchart/kchartConfigDialog.h +++ b/kchart/kchartConfigDialog.h @@ -74,7 +74,7 @@ public: KChartConfigDialog( KChartParams* params, - TQWidget* tqparent, int flags, + TQWidget* parent, int flags, KDChartTableData *dat ); void subtypePage(); diff --git a/kchart/kchartDataConfigPage.cc b/kchart/kchartDataConfigPage.cc index ff4de5c7..3766903c 100644 --- a/kchart/kchartDataConfigPage.cc +++ b/kchart/kchartDataConfigPage.cc @@ -53,9 +53,9 @@ namespace KChart { KChartDataConfigPage::KChartDataConfigPage( KChartParams* params, - TQWidget* tqparent, + TQWidget* parent, KDChartTableData *dat) - : TQWidget( tqparent ), m_params( params ), data(dat), + : TQWidget( parent ), m_params( params ), data(dat), m_firstRowAsLabel(0), m_firstColAsLabel(0) { TQGridLayout *grid1 = new TQGridLayout(this, 4, 1, KDialog::marginHint(), diff --git a/kchart/kchartDataConfigPage.h b/kchart/kchartDataConfigPage.h index 77396fe5..b7b818ae 100644 --- a/kchart/kchartDataConfigPage.h +++ b/kchart/kchartDataConfigPage.h @@ -44,7 +44,7 @@ class KChartDataConfigPage : public TQWidget TQ_OBJECT public: - KChartDataConfigPage( KChartParams* params, TQWidget* tqparent, + KChartDataConfigPage( KChartParams* params, TQWidget* parent, KDChartTableData *dat); void init(); void defaults(); diff --git a/kchart/kchartDataEditor.cc b/kchart/kchartDataEditor.cc index 1448343b..db1ce1f3 100644 --- a/kchart/kchartDataEditor.cc +++ b/kchart/kchartDataEditor.cc @@ -33,8 +33,8 @@ namespace KChart // We don't provide very much generality, since this spinbox is used // here and here only. // -kchartDataSpinBox::kchartDataSpinBox(TQWidget *tqparent) - : TQSpinBox(tqparent) +kchartDataSpinBox::kchartDataSpinBox(TQWidget *parent) + : TQSpinBox(parent) { m_ignore = false; } @@ -85,7 +85,7 @@ bool kchartDataSpinBox::eventFilter( TQObject *obj, TQEvent *ev ) } } - // Pass the event on to the tqparent class. + // Pass the event on to the parent class. return TQSpinBox::eventFilter( obj, ev ); } @@ -96,8 +96,8 @@ bool kchartDataSpinBox::eventFilter( TQObject *obj, TQEvent *ev ) // Used for the keyboard navigation // -kchartDataTable::kchartDataTable(TQWidget *tqparent) - : TQTable(tqparent) +kchartDataTable::kchartDataTable(TQWidget *parent) + : TQTable(parent) { } @@ -163,8 +163,8 @@ bool kchartDataTable::eventFilter( TQObject *obj, TQEvent *ev ) #define COLUMNWIDTH 80 -kchartDataEditor::kchartDataEditor(TQWidget* tqparent) : - KDialogBase(tqparent, "dataeditor", true, i18n("KChart Data Editor"), +kchartDataEditor::kchartDataEditor(TQWidget* parent) : + KDialogBase(parent, "dataeditor", true, i18n("KChart Data Editor"), KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Apply, KDialogBase::Ok, true) { @@ -678,9 +678,9 @@ void kchartDataEditor::insertRow() // Ask user to make sure that (s)he really wants to remove a row or // column. // -static int askUserForConfirmation(TQWidget *tqparent) +static int askUserForConfirmation(TQWidget *parent) { - return KMessageBox::warningContinueCancel(tqparent, + return KMessageBox::warningContinueCancel(parent, i18n("You are about to shrink the data table and remove some values. " "This will lead to loss of existing data in the table " "and/or the headers.\n\n" diff --git a/kchart/kchartDataEditor.h b/kchart/kchartDataEditor.h index 8b8d5535..5410fbbc 100644 --- a/kchart/kchartDataEditor.h +++ b/kchart/kchartDataEditor.h @@ -94,7 +94,7 @@ class kchartDataEditor : public KDialogBase Q_OBJECT TQ_OBJECT public: - kchartDataEditor(TQWidget* tqparent = 0); + kchartDataEditor(TQWidget* parent = 0); void setData(KChartParams *params, KDChartTableData *dat); void getData(KChartParams *params, KDChartTableData *dat); void setRowLabels(const TQStringList &rowLabels); diff --git a/kchart/kchartFontConfigPage.cc b/kchart/kchartFontConfigPage.cc index 92b8450b..eef71cb6 100644 --- a/kchart/kchartFontConfigPage.cc +++ b/kchart/kchartFontConfigPage.cc @@ -82,9 +82,9 @@ namespace KChart { KChartFontConfigPage::KChartFontConfigPage( KChartParams* params, - TQWidget* tqparent, + TQWidget* parent, KDChartTableData *dat) : - TQWidget( tqparent ), m_params( params ), data(dat) + TQWidget( parent ), m_params( params ), data(dat) { TQGridLayout *grid = new TQGridLayout(this,4,3,KDialog::marginHint(), KDialog::spacingHint()); diff --git a/kchart/kchartFontConfigPage.h b/kchart/kchartFontConfigPage.h index 96f81395..7d503112 100644 --- a/kchart/kchartFontConfigPage.h +++ b/kchart/kchartFontConfigPage.h @@ -42,7 +42,7 @@ class KChartFontConfigPage : public TQWidget TQ_OBJECT public: - KChartFontConfigPage( KChartParams* params,TQWidget* tqparent, + KChartFontConfigPage( KChartParams* params,TQWidget* parent, KDChartTableData *dat); void init(); void apply(); diff --git a/kchart/kchartHeaderFooterConfigPage.cc b/kchart/kchartHeaderFooterConfigPage.cc index ad385f8b..c097c381 100644 --- a/kchart/kchartHeaderFooterConfigPage.cc +++ b/kchart/kchartHeaderFooterConfigPage.cc @@ -36,8 +36,8 @@ namespace KChart { KChartHeaderFooterConfigPage::KChartHeaderFooterConfigPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),_params( params ) + TQWidget* parent ) : + TQWidget( parent ),_params( params ) { TQGridLayout* tqlayout = new TQGridLayout( this, 4, 3 ); tqlayout->setSpacing( KDialog::spacingHint() ); diff --git a/kchart/kchartHeaderFooterConfigPage.h b/kchart/kchartHeaderFooterConfigPage.h index bc4cad1e..fddcfe4f 100644 --- a/kchart/kchartHeaderFooterConfigPage.h +++ b/kchart/kchartHeaderFooterConfigPage.h @@ -37,7 +37,7 @@ class KChartHeaderFooterConfigPage : public TQWidget TQ_OBJECT public: - KChartHeaderFooterConfigPage( KChartParams* params, TQWidget* tqparent ); + KChartHeaderFooterConfigPage( KChartParams* params, TQWidget* parent ); void init(); void apply(); protected slots: diff --git a/kchart/kchartLegendConfigPage.cc b/kchart/kchartLegendConfigPage.cc index 34edaf83..39d99963 100644 --- a/kchart/kchartLegendConfigPage.cc +++ b/kchart/kchartLegendConfigPage.cc @@ -45,8 +45,8 @@ namespace KChart KChartLegendConfigPage::KChartLegendConfigPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),_params( params ) + TQWidget* parent ) : + TQWidget( parent ),_params( params ) { //Layout for 4 blocks TQGridLayout* tqlayout = new TQGridLayout( this, 3, 2, KDialog::marginHint(), KDialog::spacingHint() ); diff --git a/kchart/kchartLegendConfigPage.h b/kchart/kchartLegendConfigPage.h index fe484184..8419baa8 100644 --- a/kchart/kchartLegendConfigPage.h +++ b/kchart/kchartLegendConfigPage.h @@ -43,7 +43,7 @@ class KChartLegendConfigPage : public TQWidget public: KChartLegendConfigPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); void init(); void apply(); public slots: diff --git a/kchart/kchartLine3dConfigPage.cc b/kchart/kchartLine3dConfigPage.cc index f1d57971..adf56a3d 100644 --- a/kchart/kchartLine3dConfigPage.cc +++ b/kchart/kchartLine3dConfigPage.cc @@ -35,8 +35,8 @@ namespace KChart { KChartLine3dConfigPage::KChartLine3dConfigPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),_params( params ) + TQWidget* parent ) : + TQWidget( parent ),_params( params ) { TQGridLayout *grid1 = new TQGridLayout(this,8,3,KDialog::marginHint(), KDialog::spacingHint()); diff --git a/kchart/kchartLine3dConfigPage.h b/kchart/kchartLine3dConfigPage.h index 130cd5e9..9a5ff85a 100644 --- a/kchart/kchartLine3dConfigPage.h +++ b/kchart/kchartLine3dConfigPage.h @@ -37,7 +37,7 @@ class KChartLine3dConfigPage : public TQWidget public: KChartLine3dConfigPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); void init(); void apply(); protected slots: diff --git a/kchart/kchartPageLayout.cc b/kchart/kchartPageLayout.cc index b678da7e..8fd9c9d0 100644 --- a/kchart/kchartPageLayout.cc +++ b/kchart/kchartPageLayout.cc @@ -30,8 +30,8 @@ namespace KChart { -KChartPageLayout::KChartPageLayout( KChartParams* _params, TQWidget* tqparent, const char* name ) - : KDialogBase( tqparent, name, TRUE,i18n("Page Layout"),KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::User1 | KDialogBase::Apply , KDialogBase::Ok,true ) +KChartPageLayout::KChartPageLayout( KChartParams* _params, TQWidget* parent, const char* name ) + : KDialogBase( parent, name, TRUE,i18n("Page Layout"),KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::User1 | KDialogBase::Apply , KDialogBase::Ok,true ) { params=_params; #if 0 diff --git a/kchart/kchartPageLayout.h b/kchart/kchartPageLayout.h index 119b2a5d..e054892f 100644 --- a/kchart/kchartPageLayout.h +++ b/kchart/kchartPageLayout.h @@ -34,7 +34,7 @@ class KChartPageLayout : public KDialogBase Q_OBJECT TQ_OBJECT public: - KChartPageLayout( KChartParams* _params, TQWidget* tqparent, const char* name); + KChartPageLayout( KChartParams* _params, TQWidget* parent, const char* name); public slots: void slotOk(); void slotApply(); diff --git a/kchart/kchartParameter3dConfigPage.cc b/kchart/kchartParameter3dConfigPage.cc index fa3a5862..760c9786 100644 --- a/kchart/kchartParameter3dConfigPage.cc +++ b/kchart/kchartParameter3dConfigPage.cc @@ -35,8 +35,8 @@ namespace KChart { KChartParameter3dConfigPage::KChartParameter3dConfigPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),m_params( params ) + TQWidget* parent ) : + TQWidget( parent ),m_params( params ) { TQGridLayout* tqlayout = new TQGridLayout(this, 2, 2,KDialog::marginHint(),KDialog::spacingHint()); diff --git a/kchart/kchartParameter3dConfigPage.h b/kchart/kchartParameter3dConfigPage.h index 54888fe7..a349f566 100644 --- a/kchart/kchartParameter3dConfigPage.h +++ b/kchart/kchartParameter3dConfigPage.h @@ -38,7 +38,7 @@ class KChartParameter3dConfigPage : public TQWidget public: KChartParameter3dConfigPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); void init(); void apply(); diff --git a/kchart/kchartParameterConfigPage.cc b/kchart/kchartParameterConfigPage.cc index 1b075d27..bffa3099 100644 --- a/kchart/kchartParameterConfigPage.cc +++ b/kchart/kchartParameterConfigPage.cc @@ -41,8 +41,8 @@ namespace KChart { KChartParameterConfigPage::KChartParameterConfigPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),_params( params ) + TQWidget* parent ) : + TQWidget( parent ),_params( params ) { // toplevel tqlayout TQVBoxLayout* toplevel = new TQVBoxLayout( this, 10 ); diff --git a/kchart/kchartParameterConfigPage.h b/kchart/kchartParameterConfigPage.h index afc448a1..da3eaba9 100644 --- a/kchart/kchartParameterConfigPage.h +++ b/kchart/kchartParameterConfigPage.h @@ -39,7 +39,7 @@ class KChartParameterConfigPage : public TQWidget TQ_OBJECT public: - KChartParameterConfigPage( KChartParams* params, TQWidget* tqparent ); + KChartParameterConfigPage( KChartParams* params, TQWidget* parent ); void init(); void apply(); public slots: diff --git a/kchart/kchartParameterPieConfigPage.cc b/kchart/kchartParameterPieConfigPage.cc index b516c980..632e46d1 100644 --- a/kchart/kchartParameterPieConfigPage.cc +++ b/kchart/kchartParameterPieConfigPage.cc @@ -42,8 +42,8 @@ namespace KChart { KChartParameterPieConfigPage::KChartParameterPieConfigPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),_params( params ) + TQWidget* parent ) : + TQWidget( parent ),_params( params ) { TQVBoxLayout *toplevel = new TQVBoxLayout( this, 10 ); TQVBoxLayout *grid1 = new TQVBoxLayout(this); diff --git a/kchart/kchartParameterPieConfigPage.h b/kchart/kchartParameterPieConfigPage.h index bcd08fee..cbefaaa1 100644 --- a/kchart/kchartParameterPieConfigPage.h +++ b/kchart/kchartParameterPieConfigPage.h @@ -43,7 +43,7 @@ class KChartParameterPieConfigPage : public TQWidget TQ_OBJECT public: - KChartParameterPieConfigPage( KChartParams* params,TQWidget* tqparent ); + KChartParameterPieConfigPage( KChartParams* params,TQWidget* parent ); void init(); void apply(); diff --git a/kchart/kchartParameterPolarConfigPage.cc b/kchart/kchartParameterPolarConfigPage.cc index 08f470e2..807cd54e 100644 --- a/kchart/kchartParameterPolarConfigPage.cc +++ b/kchart/kchartParameterPolarConfigPage.cc @@ -42,8 +42,8 @@ namespace KChart { KChartParameterPolarConfigPage::KChartParameterPolarConfigPage( KChartParams* params, - TQWidget* tqparent ) : - TQWidget( tqparent ),_params( params ) + TQWidget* parent ) : + TQWidget( parent ),_params( params ) { TQVBoxLayout *grid1 = new TQVBoxLayout(this); TQVButtonGroup* gb = new TQVButtonGroup( i18n( "Parameter" ), this ); diff --git a/kchart/kchartParameterPolarConfigPage.h b/kchart/kchartParameterPolarConfigPage.h index b3c84f0f..e30d9c62 100644 --- a/kchart/kchartParameterPolarConfigPage.h +++ b/kchart/kchartParameterPolarConfigPage.h @@ -39,7 +39,7 @@ class KChartParameterPolarConfigPage : public TQWidget TQ_OBJECT public: - KChartParameterPolarConfigPage( KChartParams* params,TQWidget* tqparent ); + KChartParameterPolarConfigPage( KChartParams* params,TQWidget* parent ); void init(); void apply(); private: diff --git a/kchart/kchartPieConfigPage.cc b/kchart/kchartPieConfigPage.cc index 68738337..9a71b9b1 100644 --- a/kchart/kchartPieConfigPage.cc +++ b/kchart/kchartPieConfigPage.cc @@ -40,9 +40,9 @@ namespace KChart { KChartPieConfigPage::KChartPieConfigPage( KChartParams* params, - TQWidget* tqparent, + TQWidget* parent, KDChartTableData* data) : - TQWidget( tqparent ),_params( params ) + TQWidget( parent ),_params( params ) { // col=_params->colPie; pos=-1; diff --git a/kchart/kchartPieConfigPage.h b/kchart/kchartPieConfigPage.h index 446276ac..82f04306 100644 --- a/kchart/kchartPieConfigPage.h +++ b/kchart/kchartPieConfigPage.h @@ -48,7 +48,7 @@ class KChartPieConfigPage : public TQWidget TQ_OBJECT public: - KChartPieConfigPage( KChartParams* params, TQWidget* tqparent, + KChartPieConfigPage( KChartParams* params, TQWidget* parent, KDChartTableData* data); void init(); void apply(); diff --git a/kchart/kchartPrinterDlg.cc b/kchart/kchartPrinterDlg.cc index f47288cf..9bd898d6 100644 --- a/kchart/kchartPrinterDlg.cc +++ b/kchart/kchartPrinterDlg.cc @@ -33,8 +33,8 @@ namespace KChart { - KChartPrinterDlg::KChartPrinterDlg( TQWidget *tqparent, const char *name ) - : KPrintDialogPage( tqparent, name ) + KChartPrinterDlg::KChartPrinterDlg( TQWidget *parent, const char *name ) + : KPrintDialogPage( parent, name ) { setTitle( i18n( "KChart Options" ) ); TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); diff --git a/kchart/kchartPrinterDlg.h b/kchart/kchartPrinterDlg.h index 49cecb6c..40d03c22 100644 --- a/kchart/kchartPrinterDlg.h +++ b/kchart/kchartPrinterDlg.h @@ -35,7 +35,7 @@ class KChartPrinterDlg : public KPrintDialogPage TQ_OBJECT public: /// Getting the common arguments. - KChartPrinterDlg( TQWidget *tqparent = 0, const char *name = 0 ); + KChartPrinterDlg( TQWidget *parent = 0, const char *name = 0 ); /// Reimplemented. void getOptions( TQMap<TQString, TQString>& opts, bool include_def = false ); diff --git a/kchart/kchartSubTypeChartPage.cc b/kchart/kchartSubTypeChartPage.cc index 3ffaca79..13585d7a 100644 --- a/kchart/kchartSubTypeChartPage.cc +++ b/kchart/kchartSubTypeChartPage.cc @@ -43,8 +43,8 @@ namespace KChart { KChartHiloSubTypeChartPage::KChartHiloSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ) : - KChartSubTypeChartPage( params, tqparent ) + TQWidget* parent ) : + KChartSubTypeChartPage( params, parent ) { TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); @@ -122,8 +122,8 @@ void KChartHiloSubTypeChartPage::apply() } KChartAreaSubTypeChartPage::KChartAreaSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ) : - KChartSubTypeChartPage( params, tqparent ) + TQWidget* parent ) : + KChartSubTypeChartPage( params, parent ) { TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); @@ -202,8 +202,8 @@ void KChartAreaSubTypeChartPage::apply() } KChartBarSubTypeChartPage::KChartBarSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ) : - KChartSubTypeChartPage( params, tqparent ) + TQWidget* parent ) : + KChartSubTypeChartPage( params, parent ) { TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); TQVBox *left = new TQVBox( this ); @@ -296,8 +296,8 @@ void KChartBarSubTypeChartPage::apply() } KChartLineSubTypeChartPage::KChartLineSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ) : - KChartSubTypeChartPage( params, tqparent ) + TQWidget* parent ) : + KChartSubTypeChartPage( params, parent ) { TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); @@ -375,8 +375,8 @@ void KChartLineSubTypeChartPage::apply() } KChartPolarSubTypeChartPage::KChartPolarSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ) : - KChartSubTypeChartPage( params, tqparent ) + TQWidget* parent ) : + KChartSubTypeChartPage( params, parent ) { TQHBoxLayout* toplevel = new TQHBoxLayout( this, 10 ); TQVButtonGroup* subtypeBG = new TQVButtonGroup( i18n( "Sub-type" ), this ); diff --git a/kchart/kchartSubTypeChartPage.h b/kchart/kchartSubTypeChartPage.h index 425dda50..93eade2c 100644 --- a/kchart/kchartSubTypeChartPage.h +++ b/kchart/kchartSubTypeChartPage.h @@ -39,8 +39,8 @@ class KChartSubTypeChartPage : public TQWidget TQ_OBJECT public: - KChartSubTypeChartPage( KChartParams* params, TQWidget* tqparent ) : - TQWidget( tqparent ), m_params( params ) {} + KChartSubTypeChartPage( KChartParams* params, TQWidget* parent ) : + TQWidget( parent ), m_params( params ) {} virtual void init() = 0; virtual void apply() = 0; @@ -55,7 +55,7 @@ class KChartLineSubTypeChartPage : public KChartSubTypeChartPage public: KChartLineSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); virtual void init(); virtual void apply(); @@ -77,7 +77,7 @@ class KChartAreaSubTypeChartPage : public KChartSubTypeChartPage public: KChartAreaSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); virtual void init(); virtual void apply(); @@ -97,7 +97,7 @@ class KChartBarSubTypeChartPage : public KChartSubTypeChartPage TQ_OBJECT public: - KChartBarSubTypeChartPage( KChartParams* params, TQWidget* tqparent ); + KChartBarSubTypeChartPage( KChartParams* params, TQWidget* parent ); virtual void init(); virtual void apply(); @@ -120,7 +120,7 @@ class KChartHiloSubTypeChartPage : public KChartSubTypeChartPage public: KChartHiloSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); virtual void init(); virtual void apply(); @@ -141,7 +141,7 @@ class KChartPolarSubTypeChartPage : public KChartSubTypeChartPage public: KChartPolarSubTypeChartPage( KChartParams* params, - TQWidget* tqparent ); + TQWidget* parent ); virtual void init(); virtual void apply(); diff --git a/kchart/kchartWizard.cc b/kchart/kchartWizard.cc index 634aa447..a2166f2e 100644 --- a/kchart/kchartWizard.cc +++ b/kchart/kchartWizard.cc @@ -21,9 +21,9 @@ namespace KChart { -KChartWizard::KChartWizard ( KChartPart* _chart, TQWidget *tqparent, const char* name, +KChartWizard::KChartWizard ( KChartPart* _chart, TQWidget *parent, const char* name, bool modal, WFlags f ) : - KWizard( tqparent, name, modal, f ), + KWizard( parent, name, modal, f ), m_chart( _chart ) { // First page: select the data range diff --git a/kchart/kchartWizard.h b/kchart/kchartWizard.h index 91dc310a..90cd02dd 100644 --- a/kchart/kchartWizard.h +++ b/kchart/kchartWizard.h @@ -22,7 +22,7 @@ class KChartWizard : public KWizard Q_OBJECT TQ_OBJECT public: - KChartWizard ( KChartPart* chart, TQWidget *tqparent, const char* name, + KChartWizard ( KChartPart* chart, TQWidget *parent, const char* name, bool modal = true, WFlags f = 0 ); ~KChartWizard(); diff --git a/kchart/kchartWizardLabelsLegendPage.cc b/kchart/kchartWizardLabelsLegendPage.cc index 8bab93f4..396264d8 100644 --- a/kchart/kchartWizardLabelsLegendPage.cc +++ b/kchart/kchartWizardLabelsLegendPage.cc @@ -17,8 +17,8 @@ namespace KChart { -KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( TQWidget* tqparent, KChartPart* chart ) : - TQWidget( tqparent ), +KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( TQWidget* parent, KChartPart* chart ) : + TQWidget( parent ), _chart( chart ) { #if 0 diff --git a/kchart/kchartWizardLabelsLegendPage.h b/kchart/kchartWizardLabelsLegendPage.h index 8144ea3e..173554c1 100644 --- a/kchart/kchartWizardLabelsLegendPage.h +++ b/kchart/kchartWizardLabelsLegendPage.h @@ -20,7 +20,7 @@ class KChartWizardLabelsLegendPage : public TQWidget TQ_OBJECT public: - KChartWizardLabelsLegendPage( TQWidget* tqparent, KChartPart* chart ); + KChartWizardLabelsLegendPage( TQWidget* parent, KChartPart* chart ); ~KChartWizardLabelsLegendPage(); #if 0 diff --git a/kchart/kchartWizardSelectChartSubTypePage.cc b/kchart/kchartWizardSelectChartSubTypePage.cc index 34751d1f..74804042 100644 --- a/kchart/kchartWizardSelectChartSubTypePage.cc +++ b/kchart/kchartWizardSelectChartSubTypePage.cc @@ -25,9 +25,9 @@ namespace KChart { -KChartWizardSelectChartSubTypePage::KChartWizardSelectChartSubTypePage( TQWidget* tqparent, +KChartWizardSelectChartSubTypePage::KChartWizardSelectChartSubTypePage( TQWidget* parent, KChartPart* chart ) : - TQWidget( tqparent ), + TQWidget( parent ), m_chart( chart ) { // FIXME: Use KChartPart::chartType() instead, when implemented. diff --git a/kchart/kchartWizardSelectChartSubTypePage.h b/kchart/kchartWizardSelectChartSubTypePage.h index 902876ef..cba9c779 100644 --- a/kchart/kchartWizardSelectChartSubTypePage.h +++ b/kchart/kchartWizardSelectChartSubTypePage.h @@ -19,7 +19,7 @@ class KChartWizardSelectChartSubTypePage : public TQWidget Q_OBJECT TQ_OBJECT public: - KChartWizardSelectChartSubTypePage( TQWidget* tqparent, KChartPart* chart ); + KChartWizardSelectChartSubTypePage( TQWidget* parent, KChartPart* chart ); void changeSubTypeName( KChartParams::ChartType _type); bool chartSubType; diff --git a/kchart/kchartWizardSelectChartTypePage.cc b/kchart/kchartWizardSelectChartTypePage.cc index ff2b8746..9928c2db 100644 --- a/kchart/kchartWizardSelectChartTypePage.cc +++ b/kchart/kchartWizardSelectChartTypePage.cc @@ -18,8 +18,8 @@ namespace KChart { -KChartButton::KChartButton(TQWidget *tqparent, const TQString & _text, const TQPixmap &_pixmap) - : TQVBox(tqparent) +KChartButton::KChartButton(TQWidget *parent, const TQString & _text, const TQPixmap &_pixmap) + : TQVBox(parent) { // The button m_button = new TQPushButton(this); @@ -40,9 +40,9 @@ KChartButton::~KChartButton() // ================================================================ -KChartWizardSelectChartTypePage::KChartWizardSelectChartTypePage( TQWidget* tqparent, +KChartWizardSelectChartTypePage::KChartWizardSelectChartTypePage( TQWidget* parent, KChartPart* chart ) - : TQWidget( tqparent ), + : TQWidget( parent ), m_chart( chart ) { m_typeBG = new TQButtonGroup( this ); @@ -82,8 +82,8 @@ KChartWizardSelectChartTypePage::KChartWizardSelectChartTypePage( TQWidget* tqpa connect( m_typeBG, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( chartTypeSelected( int ) ) ); - //// tqparent->resize( 425, 256 ); - // tqparent->resize(xstep*5+50, ystep*4 + 100); + //// parent->resize( 425, 256 ); + // parent->resize(xstep*5+50, ystep*4 + 100); } diff --git a/kchart/kchartWizardSelectChartTypePage.h b/kchart/kchartWizardSelectChartTypePage.h index ce105574..2fb8d612 100644 --- a/kchart/kchartWizardSelectChartTypePage.h +++ b/kchart/kchartWizardSelectChartTypePage.h @@ -24,7 +24,7 @@ class KChartButton : public TQVBox Q_OBJECT TQ_OBJECT public: - KChartButton(TQWidget* tqparent, const TQString &, const TQPixmap &); + KChartButton(TQWidget* parent, const TQString &, const TQPixmap &); ~KChartButton(); TQPushButton *button() const { return m_button;} @@ -38,7 +38,7 @@ class KChartWizardSelectChartTypePage : public TQWidget TQ_OBJECT public: - KChartWizardSelectChartTypePage( TQWidget* tqparent, KChartPart* chart ); + KChartWizardSelectChartTypePage( TQWidget* parent, KChartPart* chart ); public slots: void apply(); diff --git a/kchart/kchartWizardSelectDataFormatPage.cc b/kchart/kchartWizardSelectDataFormatPage.cc index cae8fddd..38606259 100644 --- a/kchart/kchartWizardSelectDataFormatPage.cc +++ b/kchart/kchartWizardSelectDataFormatPage.cc @@ -27,9 +27,9 @@ namespace KChart { -KChartWizardSelectDataFormatPage::KChartWizardSelectDataFormatPage( TQWidget* tqparent, +KChartWizardSelectDataFormatPage::KChartWizardSelectDataFormatPage( TQWidget* parent, KChartPart* chart ) : - TQWidget( tqparent ), + TQWidget( parent ), m_chart( chart ) { TQGridLayout *grid1 = new TQGridLayout(this, 6, 1, KDialog::marginHint(), diff --git a/kchart/kchartWizardSelectDataFormatPage.h b/kchart/kchartWizardSelectDataFormatPage.h index b40b350f..1e03cff7 100644 --- a/kchart/kchartWizardSelectDataFormatPage.h +++ b/kchart/kchartWizardSelectDataFormatPage.h @@ -21,7 +21,7 @@ class KChartWizardSelectDataFormatPage : public TQWidget Q_OBJECT TQ_OBJECT public: - KChartWizardSelectDataFormatPage( TQWidget* tqparent, KChartPart* chart ); + KChartWizardSelectDataFormatPage( TQWidget* parent, KChartPart* chart ); TQString dataArea() const; void setDataArea( const TQString &area ); diff --git a/kchart/kchartWizardSelectDataPage.cc b/kchart/kchartWizardSelectDataPage.cc index 0a802975..40dafc12 100644 --- a/kchart/kchartWizardSelectDataPage.cc +++ b/kchart/kchartWizardSelectDataPage.cc @@ -9,8 +9,8 @@ namespace KChart { -KChartWizardSelectDataPage::KChartWizardSelectDataPage( TQWidget* tqparent ) : - TQWidget( tqparent ) +KChartWizardSelectDataPage::KChartWizardSelectDataPage( TQWidget* parent ) : + TQWidget( parent ) { rangeED = new TQLineEdit( this, "LineEdit_1" ); rangeED->setGeometry( 10, 90, 380, 30 ); diff --git a/kchart/kchartWizardSelectDataPage.h b/kchart/kchartWizardSelectDataPage.h index 6c073d63..61b5fc57 100644 --- a/kchart/kchartWizardSelectDataPage.h +++ b/kchart/kchartWizardSelectDataPage.h @@ -13,7 +13,7 @@ class KChartWizardSelectDataPage : public TQWidget friend class KChartWizard; public: - KChartWizardSelectDataPage( TQWidget* tqparent ); + KChartWizardSelectDataPage( TQWidget* parent ); private: TQLineEdit* rangeED; diff --git a/kchart/kchartWizardSetupAxesPage.cc b/kchart/kchartWizardSetupAxesPage.cc index 3c48cbe9..76be1f0d 100644 --- a/kchart/kchartWizardSetupAxesPage.cc +++ b/kchart/kchartWizardSetupAxesPage.cc @@ -24,9 +24,9 @@ namespace KChart { -KChartWizardSetupAxesPage::KChartWizardSetupAxesPage( TQWidget* tqparent, +KChartWizardSetupAxesPage::KChartWizardSetupAxesPage( TQWidget* parent, KChartPart* chart ) : - TQWidget( tqparent ), + TQWidget( parent ), _chart( chart ) { chart3d=true; diff --git a/kchart/kchartWizardSetupAxesPage.h b/kchart/kchartWizardSetupAxesPage.h index a6b0823a..7ab41719 100644 --- a/kchart/kchartWizardSetupAxesPage.h +++ b/kchart/kchartWizardSetupAxesPage.h @@ -22,7 +22,7 @@ class KChartWizardSetupAxesPage : public TQWidget TQ_OBJECT public: - KChartWizardSetupAxesPage( TQWidget* tqparent, KChartPart* chart ); + KChartWizardSetupAxesPage( TQWidget* parent, KChartPart* chart ); ~KChartWizardSetupAxesPage(); bool chart3d; public slots: diff --git a/kchart/kchartWizardSetupDataPage.cc b/kchart/kchartWizardSetupDataPage.cc index 61a0745a..b2ba26ac 100644 --- a/kchart/kchartWizardSetupDataPage.cc +++ b/kchart/kchartWizardSetupDataPage.cc @@ -12,11 +12,11 @@ namespace KChart { -KChartWizardSetupDataPage::KChartWizardSetupDataPage( TQWidget* tqparent, +KChartWizardSetupDataPage::KChartWizardSetupDataPage( TQWidget* parent, KChartPart* chart) : - TQWidget( tqparent ), + TQWidget( parent ), _chart( chart ), - _parent( (KChartWizard*)tqparent ) + _parent( (KChartWizard*)parent ) { TQButtonGroup* tmpTQGroupBox; tmpTQGroupBox = new TQButtonGroup( this, "GroupBox_1" ); @@ -84,7 +84,7 @@ KChartWizardSetupDataPage::KChartWizardSetupDataPage( TQWidget* tqparent, preview->resize( tmpTQFrame->contentsRect().width(), tmpTQFrame->contentsRect().height() ); */ - //tqparent->resize( 400, 350 ); + //parent->resize( 400, 350 ); } diff --git a/kchart/kchartWizardSetupDataPage.h b/kchart/kchartWizardSetupDataPage.h index 2fc2aca4..ee6e5d46 100644 --- a/kchart/kchartWizardSetupDataPage.h +++ b/kchart/kchartWizardSetupDataPage.h @@ -19,7 +19,7 @@ class KChartWizardSetupDataPage : public TQWidget TQ_OBJECT public: - KChartWizardSetupDataPage( TQWidget* tqparent, KChartPart* chart ); + KChartWizardSetupDataPage( TQWidget* parent, KChartPart* chart ); ~KChartWizardSetupDataPage(); private slots: diff --git a/kchart/kchart_factory.cc b/kchart/kchart_factory.cc index 576be3bd..7c3fb0e7 100644 --- a/kchart/kchart_factory.cc +++ b/kchart/kchart_factory.cc @@ -21,8 +21,8 @@ KInstance *KChartFactory::s_global = 0; KAboutData *KChartFactory::s_aboutData = 0; -KChartFactory::KChartFactory( TQObject* tqparent, const char* name ) - : KoFactory( tqparent, name ) +KChartFactory::KChartFactory( TQObject* parent, const char* name ) + : KoFactory( parent, name ) { global(); } @@ -39,14 +39,14 @@ KChartFactory::~KChartFactory() KParts::Part* KChartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName, - TQObject* tqparent, + TQObject* parent, const char* name, const char *classname, const TQStringList & ) { bool bWantKoDocument = ( strcmp( classname, "KoDocument" ) == 0 ); - KChartPart *part = new KChartPart( parentWidget, widgetName, tqparent, name, + KChartPart *part = new KChartPart( parentWidget, widgetName, parent, name, !bWantKoDocument ); if ( !bWantKoDocument ) diff --git a/kchart/kchart_factory.h b/kchart/kchart_factory.h index 86767cfe..da36d4e3 100644 --- a/kchart/kchart_factory.h +++ b/kchart/kchart_factory.h @@ -22,12 +22,12 @@ class KChartFactory : public KoFactory Q_OBJECT TQ_OBJECT public: - KChartFactory( TQObject* tqparent = 0, const char* name = 0 ); + KChartFactory( TQObject* parent = 0, const char* name = 0 ); virtual ~KChartFactory(); virtual KParts::Part *createPartObject( TQWidget* = 0, const char * = 0, - TQObject* tqparent = 0, + TQObject* parent = 0, const char* name = 0, const char* classname = "KoDocument", const TQStringList &args = TQStringList() ); diff --git a/kchart/kchart_part.cc b/kchart/kchart_part.cc index a2728b6b..f0fda2f0 100644 --- a/kchart/kchart_part.cc +++ b/kchart/kchart_part.cc @@ -51,9 +51,9 @@ namespace KChart { KChartPart::KChartPart( TQWidget *parentWidget, const char *widgetName, - TQObject* tqparent, const char* name, + TQObject* parent, const char* name, bool singleViewMode ) - : KoChart::Part( parentWidget, widgetName, tqparent, name, singleViewMode ), + : KoChart::Part( parentWidget, widgetName, parent, name, singleViewMode ), m_params( 0 ), m_parentWidget( parentWidget ), m_rowLabels(), m_colLabels() @@ -240,9 +240,9 @@ void KChartPart::generateBarChartTemplate() } -KoView* KChartPart::createViewInstance( TQWidget* tqparent, const char* name ) +KoView* KChartPart::createViewInstance( TQWidget* parent, const char* name ) { - return new KChartView( this, tqparent, name ); + return new KChartView( this, parent, name ); } @@ -2294,7 +2294,7 @@ void KChartPart::slotModified() } -bool KChartPart::showEmbedInitDialog(TQWidget* /*tqparent*/) +bool KChartPart::showEmbedInitDialog(TQWidget* /*parent*/) { // Don't show an embed dialog return true; diff --git a/kchart/kchart_part.h b/kchart/kchart_part.h index 343a97f1..fb9a72ba 100644 --- a/kchart/kchart_part.h +++ b/kchart/kchart_part.h @@ -27,7 +27,7 @@ class KCHART_EXPORT KChartPart : public KoChart::Part public: KChartPart( TQWidget *parentWidget = 0, const char *widgetName = 0, - TQObject* tqparent = 0, const char* name = 0, + TQObject* parent = 0, const char* name = 0, bool singleViewMode = false ); ~KChartPart(); @@ -84,7 +84,7 @@ public: // Functions that generate templates (not used yet): void generateBarChartTemplate(); - virtual bool showEmbedInitDialog(TQWidget* tqparent); + virtual bool showEmbedInitDialog(TQWidget* parent); public slots: void slotModified(); @@ -94,7 +94,7 @@ signals: void docChanged(); protected: - virtual KoView* createViewInstance( TQWidget* tqparent, const char* name ); + virtual KoView* createViewInstance( TQWidget* parent, const char* name ); bool loadOldXML( const TQDomDocument& doc ); bool loadAuxiliary( const TQDomDocument& doc ); bool loadData( const TQDomDocument& doc, KDChartTableData& currentData ); diff --git a/kchart/kchart_view.cc b/kchart/kchart_view.cc index 358aecd8..5b1cc6b2 100644 --- a/kchart/kchart_view.cc +++ b/kchart/kchart_view.cc @@ -49,8 +49,8 @@ namespace KChart { -KChartView::KChartView( KChartPart* part, TQWidget* tqparent, const char* name ) - : KoView( part, tqparent, name ) +KChartView::KChartView( KChartPart* part, TQWidget* parent, const char* name ) + : KoView( part, parent, name ) { // No flicker diff --git a/kchart/kchart_view.h b/kchart/kchart_view.h index 9828ffca..eba4a62c 100644 --- a/kchart/kchart_view.h +++ b/kchart/kchart_view.h @@ -27,7 +27,7 @@ class KChartView : public KoView Q_OBJECT TQ_OBJECT public: - KChartView( KChartPart* part, TQWidget* tqparent = 0, const char* name = 0 ); + KChartView( KChartPart* part, TQWidget* parent = 0, const char* name = 0 ); ~KChartView(); void updateGuiTypeOfChart(); diff --git a/kchart/kdchart/KDChartCustomBox.cpp b/kchart/kdchart/KDChartCustomBox.cpp index d500356d..9b4d7855 100644 --- a/kchart/kdchart/KDChartCustomBox.cpp +++ b/kchart/kdchart/KDChartCustomBox.cpp @@ -347,12 +347,12 @@ qDebug("pdWidth: %i box myRect w: %i h %i",pdWidth,myRect.width(),myRect.hei void KDChartCustomBox::createCustomBoxNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDChartCustomBox* custombox ) { TQDomElement customBoxElement = document.createElement( elementName ); - tqparent.appendChild( customBoxElement ); + parent.appendChild( customBoxElement ); KDXML::createIntNode( document, customBoxElement, "Rotation", custombox->_rotation ); KDXML::createStringNode( document, customBoxElement, "ContentText", custombox->_content.text() ); diff --git a/kchart/kdchart/KDChartCustomBox.h b/kchart/kdchart/KDChartCustomBox.h index 17b47822..223920e4 100644 --- a/kchart/kdchart/KDChartCustomBox.h +++ b/kchart/kdchart/KDChartCustomBox.h @@ -368,12 +368,12 @@ public: in a DOM document. \param document the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param custombox the custom box to be represented */ static void createCustomBoxNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDChartCustomBox* custombox ); diff --git a/kchart/kdchart/KDChartParams.h b/kchart/kdchart/KDChartParams.h index 7ae8c27c..16722694 100644 --- a/kchart/kdchart/KDChartParams.h +++ b/kchart/kdchart/KDChartParams.h @@ -329,7 +329,7 @@ public: static void createFrameSettingsNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDChartFrameSettings* settings, uint areaId ); @@ -2418,18 +2418,18 @@ public: friend TQTextStream& operator>>( TQTextStream& s, KDChartParams& p ); public slots: - static void createChartValueNode( TQDomDocument& doc, TQDomNode& tqparent, + static void createChartValueNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQVariant& valY, const TQVariant& valX, const int& propID ); - static void createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent, + static void createColorMapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQMap< uint, TQColor >& map ); - static void createDoubleMapNode( TQDomDocument& doc, TQDomNode& tqparent, + static void createDoubleMapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQMap< int, double >& map ); - static void createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent, + static void createChartFontNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQFont& font, bool useRelFont, int relFont, diff --git a/kchart/kdchart/KDChartParams_frame.cpp b/kchart/kdchart/KDChartParams_frame.cpp index 30aec04a..2c8d92e9 100644 --- a/kchart/kdchart/KDChartParams_frame.cpp +++ b/kchart/kdchart/KDChartParams_frame.cpp @@ -248,18 +248,18 @@ bool KDChartParams::KDChartFrameSettings::readFrameSettingsNode( const TQDomElem object for use in a DOM document. \param document the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param settings the frame settings to be represented */ void KDChartParams::KDChartFrameSettings::createFrameSettingsNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDChartParams::KDChartFrameSettings* settings, uint areaId ) { TQDomElement frameSettingsElement = document.createElement( elementName ); - tqparent.appendChild( frameSettingsElement ); + parent.appendChild( frameSettingsElement ); if( settings->_frame ) KDFrame::createFrameNode( document, frameSettingsElement, "Frame", *settings->_frame ); diff --git a/kchart/kdchart/KDChartParams_io.cpp b/kchart/kdchart/KDChartParams_io.cpp index 2feaf179..4f17e653 100644 --- a/kchart/kdchart/KDChartParams_io.cpp +++ b/kchart/kdchart/KDChartParams_io.cpp @@ -2247,17 +2247,17 @@ bool KDChartParams::loadXML( const TQDomDocument& doc ) for use in a DOM document. \param doc the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param map the map of colors to be represented */ -void KDChartParams::createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent, +void KDChartParams::createColorMapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQMap< uint, TQColor >& map ) { TQDomElement mapElement = doc.createElement( elementName ); - tqparent.appendChild( mapElement ); + parent.appendChild( mapElement ); for( TQMap<uint,TQColor>::ConstIterator it = map.begin(); it != map.end(); ++it ) { // Dataset element @@ -2277,17 +2277,17 @@ void KDChartParams::createColorMapNode( TQDomDocument& doc, TQDomNode& tqparent, for use in a DOM document. \param doc the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param map the map of doubles to be represented */ -void KDChartParams::createDoubleMapNode( TQDomDocument& doc, TQDomNode& tqparent, +void KDChartParams::createDoubleMapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQMap< int, double >& map ) { TQDomElement mapElement = doc.createElement( elementName ); - tqparent.appendChild( mapElement ); + parent.appendChild( mapElement ); for( TQMap<int,double>::ConstIterator it = map.begin(); it != map.end(); ++it ) { // Dataset element @@ -2321,18 +2321,18 @@ void dataCoordToElementAttr(const TQVariant& val, TQDomElement& element, const T chart value for use in a DOM document. \param doc the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param data the chart value to be represented */ -void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& tqparent, +void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQVariant& valY, const TQVariant& valX, const int& propID ) { TQDomElement element = doc.createElement( elementName ); - tqparent.appendChild( element ); + parent.appendChild( element ); dataCoordToElementAttr( valY, element, "" ); // no postfix for Y value: backwards compat. dataCoordToElementAttr( valX, element, "X" ); element.setAttribute( "PropertySetID", @@ -2346,7 +2346,7 @@ void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& tqparen chart for use in a DOM document. \param doc the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param font the font to be resented \param useRelFont the specification whether the font size @@ -2354,14 +2354,14 @@ void KDChartParams::createChartValueNode( TQDomDocument& doc, TQDomNode& tqparen \param relFont the relative font size \param minFont the minimal font size in points, leave this parameter out if not needed */ -void KDChartParams::createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent, +void KDChartParams::createChartFontNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQFont& font, bool useRelFont, int relFont, int minFont ) { TQDomElement chartFontElement = doc.createElement( elementName ); - tqparent.appendChild( chartFontElement ); + parent.appendChild( chartFontElement ); KDXML::createFontNode( doc, chartFontElement, "Font", font ); KDXML::createBoolNode( doc, chartFontElement, "UseRelFontSize", useRelFont ); @@ -2379,7 +2379,7 @@ void KDChartParams::createChartFontNode( TQDomDocument& doc, TQDomNode& tqparent for use in a DOM document. \param doc the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param map the color map to be represented */ diff --git a/kchart/kdchart/KDChartPropertySet.h b/kchart/kdchart/KDChartPropertySet.h index a3e94953..cdd64f78 100644 --- a/kchart/kdchart/KDChartPropertySet.h +++ b/kchart/kdchart/KDChartPropertySet.h @@ -107,12 +107,12 @@ class KDCHART_EXPORT KDChartPropertySet :public TQObject This constructor may be used to initialize a property set and let it have all property IDs set to a specific value, e.g. you might pass KDCHART_PROPSET_NORMAL_DATA - as ID to make the default property set the tqparent of all + as ID to make the default property set the parent of all values. \param name (may be empty) a name describing this property set. - \param idParent the ID of the tqparent property set. Skip this paramter - to define a property set without specifying a tqparent. + \param idParent the ID of the parent property set. Skip this paramter + to define a property set without specifying a parent. */ KDChartPropertySet( const TQString& name, int idParent=KDChartPropertySet::UndefinedID ) : mOwnID( UndefinedID ) diff --git a/kchart/kdchart/KDChartWidget.cpp b/kchart/kdchart/KDChartWidget.cpp index c3e42b8b..d530ea19 100644 --- a/kchart/kdchart/KDChartWidget.cpp +++ b/kchart/kdchart/KDChartWidget.cpp @@ -65,12 +65,12 @@ and setData before using this chart otherwise only a simple default bar chart will be shown. - \param tqparent the widget tqparent; passed on to TQWidget + \param parent the widget parent; passed on to TQWidget \param name the widget name; passed on to TQWidget */ -KDChartWidget::KDChartWidget( TQWidget* tqparent, const char* name ) : -TQWidget( tqparent, name ), +KDChartWidget::KDChartWidget( TQWidget* parent, const char* name ) : +TQWidget( parent, name ), _params( 0 ), _data( 0 ), _activeData( false ), @@ -87,14 +87,14 @@ _mousePressedOnRegion( 0 ) \param params the specification of the chart \param data the data to be displayed as a chart - \param tqparent the widget tqparent; passed on to TQWidget + \param parent the widget parent; passed on to TQWidget \param name the widget name; passed on to TQWidget */ KDChartWidget::KDChartWidget( KDChartParams* params, KDChartTableDataBase* data, - TQWidget* tqparent, const char* name ) : -TQWidget( tqparent, name ), + TQWidget* parent, const char* name ) : +TQWidget( parent, name ), _params( params ), _data( data ), _activeData( false ), diff --git a/kchart/kdchart/KDChartWidget.h b/kchart/kdchart/KDChartWidget.h index 635e0bd9..a68951d5 100644 --- a/kchart/kdchart/KDChartWidget.h +++ b/kchart/kdchart/KDChartWidget.h @@ -53,10 +53,10 @@ class KDCHART_EXPORT KDChartWidget : public TQWidget TQ_PROPERTY( bool doubleBuffered READ isDoubleBuffered WRITE setDoubleBuffered ) public: - KDChartWidget( TQWidget* tqparent = 0, const char* name = 0 ); + KDChartWidget( TQWidget* parent = 0, const char* name = 0 ); KDChartWidget( KDChartParams* params, KDChartTableDataBase* data, - TQWidget* tqparent = 0, const char* name = 0 ); + TQWidget* parent = 0, const char* name = 0 ); ~KDChartWidget(); public slots: diff --git a/kchart/kdchart/KDDrawText.cpp b/kchart/kdchart/KDDrawText.cpp index a954a5bf..70283da6 100644 --- a/kchart/kdchart/KDDrawText.cpp +++ b/kchart/kdchart/KDDrawText.cpp @@ -356,9 +356,9 @@ void KDDrawText::drawRotatedTxt( TQPainter* painter, TQt::AlignLeft + TQt::AlignTop ); */ - TQBitmap tqmask; - tqmask = pm; - pm.setMask( tqmask ); + TQBitmap mask; + mask = pm; + pm.setMask( mask ); TQWMatrix m; m.rotate( degrees ); TQPixmap theRotatedPixmap = pm.xForm(m); diff --git a/kchart/kdchart/KDFrame.cpp b/kchart/kdchart/KDFrame.cpp index 23bdcc37..3904bf16 100644 --- a/kchart/kdchart/KDFrame.cpp +++ b/kchart/kdchart/KDFrame.cpp @@ -404,12 +404,12 @@ void KDFrame::setSimpleFrame( SimpleFrame frame, } -void KDFrame::createFrameNode( TQDomDocument& document, TQDomNode& tqparent, +void KDFrame::createFrameNode( TQDomDocument& document, TQDomNode& parent, const TQString& elementName, const KDFrame& frame ) { TQDomElement frameElement = document.createElement( elementName ); - tqparent.appendChild( frameElement ); + parent.appendChild( frameElement ); KDXML::createIntNode( document, frameElement, "ShadowWidth", frame._shadowWidth ); KDXML::createStringNode( document, frameElement, "CornerName", @@ -442,12 +442,12 @@ void KDFrame::createFrameNode( TQDomDocument& document, TQDomNode& tqparent, frame._cornerBR ); } -void KDFrame::createFrameProfileNode( TQDomDocument& document, TQDomNode& tqparent, +void KDFrame::createFrameProfileNode( TQDomDocument& document, TQDomNode& parent, const TQString& elementName, KDFrameProfile profile ) { TQDomElement profileElement = document.createElement( elementName ); - tqparent.appendChild( profileElement ); + parent.appendChild( profileElement ); for( const KDFrameProfileSection* section = profile.first(); section != 0; section = profile.next() ) KDFrameProfileSection::createFrameProfileSectionNode( document, @@ -458,12 +458,12 @@ void KDFrame::createFrameProfileNode( TQDomDocument& document, TQDomNode& tqpare void KDFrame::KDFrameCorner::createFrameCornerNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDFrameCorner& corner ) { TQDomElement cornerElement = document.createElement( elementName ); - tqparent.appendChild( cornerElement ); + parent.appendChild( cornerElement ); KDXML::createStringNode( document, cornerElement, "Style", KDFrame::cornerStyleToString( corner._style ) ); KDXML::createIntNode( document, cornerElement, "Width", diff --git a/kchart/kdchart/KDFrame.h b/kchart/kdchart/KDFrame.h index be31597e..78de8ffb 100644 --- a/kchart/kdchart/KDFrame.h +++ b/kchart/kdchart/KDFrame.h @@ -516,13 +516,13 @@ public: in a DOM document. \param document the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param corner the corner to be represented \endif */ static void createFrameCornerNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDFrameCorner& corner ); @@ -899,7 +899,7 @@ public: /** Default Constructor. Defines default values. - The constructor does *not* have a \c tqparent parameter since drawing + The constructor does *not* have a \c parent parameter since drawing of the frame is not done transparently but by (one or more) explicit calls of the frames paint() methode. See explanation given there to learn about the why and how of this... @@ -942,7 +942,7 @@ public: /* Constructor. Set up a frame by copying settings of another frame. - The constructor does *not* have a \c tqparent parameter since drawing + The constructor does *not* have a \c parent parameter since drawing of the frame is not done transparently but by (one or more) explicit calls of the frames paint() methode. See explanation given there to learn about the why and how of this... @@ -1011,11 +1011,11 @@ public: in a DOM document. \param document the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param frame the frame to be represented */ - static void createFrameNode( TQDomDocument& document, TQDomNode& tqparent, + static void createFrameNode( TQDomDocument& document, TQDomNode& parent, const TQString& elementName, const KDFrame& frame ); @@ -1024,12 +1024,12 @@ public: in a DOM document. \param document the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param profile the profile to be represented */ static void createFrameProfileNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, KDFrameProfile profile ); diff --git a/kchart/kdchart/KDFrameProfileSection.cpp b/kchart/kdchart/KDFrameProfileSection.cpp index 924e864b..38c6fa45 100644 --- a/kchart/kdchart/KDFrameProfileSection.cpp +++ b/kchart/kdchart/KDFrameProfileSection.cpp @@ -36,13 +36,13 @@ KDFrameProfileSection::~KDFrameProfileSection() void KDFrameProfileSection::createFrameProfileSectionNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDFrameProfileSection* section ) { TQDomElement sectionElement = document.createElement( elementName ); - tqparent.appendChild( sectionElement ); + parent.appendChild( sectionElement ); KDXML::createStringNode( document, sectionElement, "Direction", KDFrameProfileSection::directionToString( section->_direction ) ); KDXML::createStringNode( document, sectionElement, "Curvature", diff --git a/kchart/kdchart/KDFrameProfileSection.h b/kchart/kdchart/KDFrameProfileSection.h index 8ca011ec..9fe38adf 100644 --- a/kchart/kdchart/KDFrameProfileSection.h +++ b/kchart/kdchart/KDFrameProfileSection.h @@ -189,12 +189,12 @@ public: section for use in a DOM document. \param document the DOM document to which the node will belong - \param tqparent the tqparent node to which the new node will be appended + \param parent the parent node to which the new node will be appended \param elementName the name of the new node \param section the section to be represented */ static void createFrameProfileSectionNode( TQDomDocument& document, - TQDomNode& tqparent, + TQDomNode& parent, const TQString& elementName, const KDFrameProfileSection* section ); diff --git a/kchart/kdchart/KDXMLTools.cpp b/kchart/kdchart/KDXMLTools.cpp index bff4c720..bf03b362 100644 --- a/kchart/kdchart/KDXMLTools.cpp +++ b/kchart/kdchart/KDXMLTools.cpp @@ -33,24 +33,24 @@ namespace KDXML { - void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent, + void createBoolNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, bool value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( value ? "true" : "false" ); newElement.appendChild( elementContent ); } - void createOrientationNode( TQDomDocument& doc, TQDomNode& tqparent, + void createOrientationNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, Qt::Orientation value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( (Qt::Vertical == value) ? "vertical" : "horizontal" ); newElement.appendChild( elementContent ); @@ -58,59 +58,59 @@ namespace KDXML { - void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createSizeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQSize& value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); newElement.setAttribute( "Width", value.width() ); newElement.setAttribute( "Height", value.height() ); } - void createIntNode( TQDomDocument& doc, TQDomNode& tqparent, + void createIntNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, int value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( TQString::number( value ) ); newElement.appendChild( elementContent ); } - void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDoubleNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, double value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( TQString::number( value ) ); newElement.appendChild( elementContent ); } - void createStringNode( TQDomDocument& doc, TQDomNode& tqparent, + void createStringNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQString& text ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( text ); newElement.appendChild( elementContent ); } - void createColorNode( TQDomDocument& doc, TQDomNode& tqparent, + void createColorNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQColor& color ) { TQDomElement colorElement = doc.createElement( elementName ); - tqparent.appendChild( colorElement ); + parent.appendChild( colorElement ); colorElement.setAttribute( "Red", TQString::number( color.red() ) ); colorElement.setAttribute( "Green", @@ -120,12 +120,12 @@ namespace KDXML { } - void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent, + void createBrushNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQBrush& brush ) { TQDomElement brushElement = doc.createElement( elementName ); - tqparent.appendChild( brushElement ); + parent.appendChild( brushElement ); createColorNode( doc, brushElement, "Color", brush.color() ); createStringNode( doc, brushElement, "Style", KDXML::brushStyleToString( brush.style() ) ); @@ -134,11 +134,11 @@ namespace KDXML { } - void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent, + void createPixmapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPixmap& pixmap ) { TQDomElement pixmapElement = doc.createElement( elementName ); - tqparent.appendChild( pixmapElement ); + parent.appendChild( pixmapElement ); createStringNode( doc, pixmapElement, "Format", "XPM.GZ" ); if( pixmap.isNull() ){ @@ -172,11 +172,11 @@ namespace KDXML { } - void createRectNode( TQDomDocument& doc, TQDomNode& tqparent, + void createRectNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQRect& rect ) { TQDomElement rectElement = doc.createElement( elementName ); - tqparent.appendChild( rectElement ); + parent.appendChild( rectElement ); TQDomElement xElement = doc.createElement( "X" ); rectElement.appendChild( xElement ); TQDomText xContent = doc.createTextNode( TQString::number( rect.x() ) ); @@ -196,7 +196,7 @@ namespace KDXML { } - void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent, + void createStringListNodes( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQStringList* list ) { @@ -206,18 +206,18 @@ namespace KDXML { for( TQStringList::ConstIterator it = list->begin(); it != list->end(); ++it ) { TQDomElement element = doc.createElement( elementName ); - tqparent.appendChild( element ); + parent.appendChild( element ); TQDomText elementContent = doc.createTextNode( *it ); element.appendChild( elementContent ); } } - void createFontNode( TQDomDocument& doc, TQDomNode& tqparent, + void createFontNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQFont& font ) { TQDomElement fontElement = doc.createElement( elementName ); - tqparent.appendChild( fontElement ); + parent.appendChild( fontElement ); createStringNode( doc, fontElement, "Family", font.family() ); createIntNode( doc, fontElement, "PointSize", font.pointSize() ); createIntNode( doc, fontElement, "Weight", font.weight() ); @@ -229,44 +229,44 @@ namespace KDXML { } - void createPenNode( TQDomDocument& doc, TQDomNode& tqparent, + void createPenNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPen& pen ) { TQDomElement penElement = doc.createElement( elementName ); - tqparent.appendChild( penElement ); + parent.appendChild( penElement ); createIntNode( doc, penElement, "Width", pen.width() ); createColorNode( doc, penElement, "Color", pen.color() ); createStringNode( doc, penElement, "Style", penStyleToString( pen.style() ) ); } - void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDateTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDateTime& datetime ) { TQDomElement dateTimeElement = doc.createElement( elementName ); - tqparent.appendChild( dateTimeElement ); + parent.appendChild( dateTimeElement ); createDateNode( doc, dateTimeElement, "Date", datetime.date() ); createTimeNode( doc, dateTimeElement, "Time", datetime.time() ); } - void createDateNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDateNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDate& date ) { TQDomElement dateElement = doc.createElement( elementName ); - tqparent.appendChild( dateElement ); + parent.appendChild( dateElement ); dateElement.setAttribute( "Year", TQString::number( date.year() ) ); dateElement.setAttribute( "Month", TQString::number( date.month() ) ); dateElement.setAttribute( "Day", TQString::number( date.day() ) ); } - void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQTime& time ) { TQDomElement timeElement = doc.createElement( elementName ); - tqparent.appendChild( timeElement ); + parent.appendChild( timeElement ); timeElement.setAttribute( "Hour", TQString::number( time.hour() ) ); timeElement.setAttribute( "Minute", diff --git a/kchart/kdchart/KDXMLTools.h b/kchart/kdchart/KDXMLTools.h index c633fba2..4ebe6872 100644 --- a/kchart/kdchart/KDXMLTools.h +++ b/kchart/kdchart/KDXMLTools.h @@ -49,41 +49,41 @@ namespace KDXML { TQString brushStyleToString( Qt::BrushStyle style ); Qt::BrushStyle stringToBrushStyle( const TQString& style ); - void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent, + void createBoolNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, bool value ); - void createOrientationNode( TQDomDocument& doc, TQDomNode& tqparent, + void createOrientationNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, Qt::Orientation value ); - void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createSizeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQSize& value ); - void createIntNode( TQDomDocument& doc, TQDomNode& tqparent, + void createIntNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, int value ); - void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDoubleNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, double value ); - void createStringNode( TQDomDocument& doc, TQDomNode& tqparent, + void createStringNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQString& text ); - void createColorNode( TQDomDocument& doc, TQDomNode& tqparent, + void createColorNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQColor& color ); - void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent, + void createBrushNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQBrush& brush ); - void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent, + void createPixmapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPixmap& pixmap ); - void createRectNode( TQDomDocument& doc, TQDomNode& tqparent, + void createRectNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQRect& rect ); - void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent, + void createStringListNodes( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQStringList* thelist ); // PCH: This is required to avoid MSVC compiler warnings and errors. - void createFontNode( TQDomDocument& doc, TQDomNode& tqparent, + void createFontNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQFont& font ); - void createPenNode( TQDomDocument& doc, TQDomNode& tqparent, + void createPenNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPen& pen ); - void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDateTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDateTime& datetime ); - void createDateNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDateNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDate& date ); - void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQTime& time ); bool readIntNode( const TQDomElement& element, int& value ); bool readStringNode( const TQDomElement& element, TQString& value ); |