summaryrefslogtreecommitdiffstats
path: root/kcalc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit625904bd3097f9749450428904ca14ff2531824d (patch)
treea45c43d5de71cb720078fa1272a4339815a919be /kcalc
parent6335dc55802871b5a43492f217b6edbb420204c4 (diff)
downloadtdeutils-625904bd3097f9749450428904ca14ff2531824d.tar.gz
tdeutils-625904bd3097f9749450428904ca14ff2531824d.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcalc')
-rw-r--r--kcalc/dlabel.cpp4
-rw-r--r--kcalc/dlabel.h2
-rw-r--r--kcalc/kcalc.cpp72
-rw-r--r--kcalc/kcalc.h12
-rw-r--r--kcalc/kcalc_button.cpp8
-rw-r--r--kcalc/kcalc_button.h12
-rw-r--r--kcalc/kcalc_const_button.cpp8
-rw-r--r--kcalc/kcalc_const_button.h4
-rw-r--r--kcalc/kcalc_const_menu.cpp4
-rw-r--r--kcalc/kcalc_const_menu.h2
-rw-r--r--kcalc/kcalcdisplay.cpp4
-rw-r--r--kcalc/kcalcdisplay.h2
12 files changed, 67 insertions, 67 deletions
diff --git a/kcalc/dlabel.cpp b/kcalc/dlabel.cpp
index 84f07e8..157a387 100644
--- a/kcalc/dlabel.cpp
+++ b/kcalc/dlabel.cpp
@@ -34,9 +34,9 @@
-DispLogic::DispLogic(TQWidget *tqparent, const char *name,
+DispLogic::DispLogic(TQWidget *parent, const char *name,
KActionCollection *coll)
- :KCalcDisplay(tqparent,name), _history_index(0)
+ :KCalcDisplay(parent,name), _history_index(0)
{
KNumber::setDefaultFloatOutput(true);
KNumber::setDefaultFractionalInput(true);
diff --git a/kcalc/dlabel.h b/kcalc/dlabel.h
index e2d0395..f4ce5d4 100644
--- a/kcalc/dlabel.h
+++ b/kcalc/dlabel.h
@@ -41,7 +41,7 @@ Q_OBJECT
TQ_OBJECT
public:
- DispLogic(TQWidget *tqparent, const char *name,
+ DispLogic(TQWidget *parent, const char *name,
KActionCollection *coll);
~DispLogic();
diff --git a/kcalc/kcalc.cpp b/kcalc/kcalc.cpp
index 0a68046..34f4fb3 100644
--- a/kcalc/kcalc.cpp
+++ b/kcalc/kcalc.cpp
@@ -78,8 +78,8 @@ static const char description[] = I18N_NOOP("KDE Calculator");
static const char version[] = KCALCVERSION;
-KCalculator::KCalculator(TQWidget *tqparent, const char *name)
- : KMainWindow(tqparent, name), inverse(false),
+KCalculator::KCalculator(TQWidget *parent, const char *name)
+ : KMainWindow(parent, name), inverse(false),
hyp_mode(false), memory_num(0.0), calc_display(NULL),
mInternalSpacing(4), core()
{
@@ -471,12 +471,12 @@ void KCalculator::setupStatusbar(void)
statusBar()->setItemAlignment(3, AlignCenter);
}
-TQWidget* KCalculator::setupNumericKeys(TQWidget *tqparent)
+TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
{
Q_CHECK_PTR(mSmallPage);
Q_CHECK_PTR(mLargePage);
- TQWidget *thisPage = new TQWidget(tqparent);
+ TQWidget *thisPage = new TQWidget(parent);
KCalcButton *tmp_pb;
@@ -741,33 +741,33 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *tqparent)
return thisPage;
}
-void KCalculator::setupLogicKeys(TQWidget *tqparent)
+void KCalculator::setupLogicKeys(TQWidget *parent)
{
- Q_CHECK_PTR(tqparent);
+ Q_CHECK_PTR(parent);
KCalcButton *tmp_pb;
- tmp_pb = new KCalcButton("AND", tqparent, "AND-Button", i18n("Bitwise AND"));
+ tmp_pb = new KCalcButton("AND", parent, "AND-Button", i18n("Bitwise AND"));
pbLogic.insert("AND", tmp_pb);
tmp_pb->setAccel(Key_Ampersand);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotANDclicked(void)));
- tmp_pb = new KCalcButton("OR", tqparent, "OR-Button", i18n("Bitwise OR"));
+ tmp_pb = new KCalcButton("OR", parent, "OR-Button", i18n("Bitwise OR"));
pbLogic.insert("OR", tmp_pb);
tmp_pb->setAccel(Key_Bar);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotORclicked(void)));
- tmp_pb = new KCalcButton("XOR", tqparent, "XOR-Button", i18n("Bitwise XOR"));
+ tmp_pb = new KCalcButton("XOR", parent, "XOR-Button", i18n("Bitwise XOR"));
pbLogic.insert("XOR", tmp_pb);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotXORclicked(void)));
- tmp_pb = new KCalcButton("Cmp", tqparent, "One-Complement-Button",
+ tmp_pb = new KCalcButton("Cmp", parent, "One-Complement-Button",
i18n("One's complement"));
pbLogic.insert("One-Complement", tmp_pb);
tmp_pb->setAccel(Key_AsciiTilde);
@@ -775,7 +775,7 @@ void KCalculator::setupLogicKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotNegateclicked(void)));
- tmp_pb = new KCalcButton("Lsh", tqparent, "LeftBitShift-Button",
+ tmp_pb = new KCalcButton("Lsh", parent, "LeftBitShift-Button",
i18n("Left bit shift"));
tmp_pb->setAccel(Key_Less);
pbLogic.insert("LeftShift", tmp_pb);
@@ -784,7 +784,7 @@ void KCalculator::setupLogicKeys(TQWidget *tqparent)
connect(tmp_pb, TQT_SIGNAL(clicked(void)),
TQT_SLOT(slotLeftShiftclicked(void)));
- tmp_pb = new KCalcButton("Rsh", tqparent, "RightBitShift-Button",
+ tmp_pb = new KCalcButton("Rsh", parent, "RightBitShift-Button",
i18n("Right bit shift"));
tmp_pb->setAccel(Key_Greater);
pbLogic.insert("RightShift", tmp_pb);
@@ -794,13 +794,13 @@ void KCalculator::setupLogicKeys(TQWidget *tqparent)
TQT_SLOT(slotRightShiftclicked(void)));
}
-void KCalculator::setupScientificKeys(TQWidget *tqparent)
+void KCalculator::setupScientificKeys(TQWidget *parent)
{
- Q_CHECK_PTR(tqparent);
+ Q_CHECK_PTR(parent);
KCalcButton *tmp_pb;
- tmp_pb = new KCalcButton("Hyp", tqparent, "Hyp-Button", i18n("Hyperbolic mode"));
+ tmp_pb = new KCalcButton("Hyp", parent, "Hyp-Button", i18n("Hyperbolic mode"));
pbScientific.insert("HypMode", tmp_pb);
tmp_pb->setAccel(Key_H);
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@@ -808,7 +808,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
connect(tmp_pb, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotHyptoggled(bool)));
tmp_pb->setToggleButton(true);
- tmp_pb = new KCalcButton(tqparent, "Sin-Button");
+ tmp_pb = new KCalcButton(parent, "Sin-Button");
pbScientific.insert("Sine", tmp_pb);
tmp_pb->addMode(ModeNormal, "Sin", i18n("Sine"));
tmp_pb->addMode(ModeInverse, "Asin", i18n("Arc sine"));
@@ -822,7 +822,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotSinclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Cos-Button");
+ tmp_pb = new KCalcButton(parent, "Cos-Button");
pbScientific.insert("Cosine", tmp_pb);
tmp_pb->addMode(ModeNormal, "Cos", i18n("Cosine"));
tmp_pb->addMode(ModeInverse, "Acos", i18n("Arc cosine"));
@@ -836,7 +836,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotCosclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Tan-Button");
+ tmp_pb = new KCalcButton(parent, "Tan-Button");
pbScientific.insert("Tangent", tmp_pb);
tmp_pb->addMode(ModeNormal, "Tan", i18n("Tangent"));
tmp_pb->addMode(ModeInverse, "Atan", i18n("Arc tangent"));
@@ -850,7 +850,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)),TQT_SLOT(slotTanclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Ln-Button");
+ tmp_pb = new KCalcButton(parent, "Ln-Button");
tmp_pb->addMode(ModeNormal, "Ln", i18n("Natural log"));
tmp_pb->addMode(ModeInverse, "e<sup> x </sup>", i18n("Exponential function"),
true);
@@ -862,7 +862,7 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotLnclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Log-Button");
+ tmp_pb = new KCalcButton(parent, "Log-Button");
tmp_pb->addMode(ModeNormal, "Log", i18n("Logarithm to base 10"));
tmp_pb->addMode(ModeInverse, "10<sup> x </sup>", i18n("10 to the power of x"),
true);
@@ -876,13 +876,13 @@ void KCalculator::setupScientificKeys(TQWidget *tqparent)
}
-void KCalculator::setupStatisticKeys(TQWidget *tqparent)
+void KCalculator::setupStatisticKeys(TQWidget *parent)
{
- Q_CHECK_PTR(tqparent);
+ Q_CHECK_PTR(parent);
KCalcButton *tmp_pb;
- tmp_pb = new KCalcButton(tqparent, "Stat.NumData-Button");
+ tmp_pb = new KCalcButton(parent, "Stat.NumData-Button");
tmp_pb->addMode(ModeNormal, "N", i18n("Number of data entered"));
tmp_pb->addMode(ModeInverse, TQString::fromUtf8("\xce\xa3")
+ "x", i18n("Sum of all data items"));
@@ -894,7 +894,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatNumclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Stat.Median-Button");
+ tmp_pb = new KCalcButton(parent, "Stat.Median-Button");
tmp_pb->addMode(ModeNormal, "Med", i18n("Median"));
pbStat.insert("Median", tmp_pb);
mStatButtonList.append(tmp_pb);
@@ -903,7 +903,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetAccelDisplayMode(bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatMedianclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Stat.Mean-Button");
+ tmp_pb = new KCalcButton(parent, "Stat.Mean-Button");
tmp_pb->addMode(ModeNormal, "Mea", i18n("Mean"));
tmp_pb->addMode(ModeInverse, TQString::fromUtf8("\xce\xa3")
+ "x<sup>2</sup>",
@@ -916,7 +916,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatMeanclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Stat.StandardDeviation-Button");
+ tmp_pb = new KCalcButton(parent, "Stat.StandardDeviation-Button");
tmp_pb->addMode(ModeNormal, TQString::fromUtf8("σ",-1) + "<sub>N-1</sub>",
i18n("Sample standard deviation"), true);
tmp_pb->addMode(ModeInverse, TQString::fromUtf8("σ",-1) + "<sub>N</sub>",
@@ -929,7 +929,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatStdDevclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Stat.DataInput-Button");
+ tmp_pb = new KCalcButton(parent, "Stat.DataInput-Button");
tmp_pb->addMode(ModeNormal, "Dat", i18n("Enter data"));
tmp_pb->addMode(ModeInverse, "CDat", i18n("Delete last data item"));
pbStat.insert("InputData", tmp_pb);
@@ -940,7 +940,7 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatDataInputclicked(void)));
- tmp_pb = new KCalcButton(tqparent, "Stat.ClearData-Button");
+ tmp_pb = new KCalcButton(parent, "Stat.ClearData-Button");
tmp_pb->addMode(ModeNormal, "CSt", i18n("Clear data store"));
pbStat.insert("ClearData", tmp_pb);
mStatButtonList.append(tmp_pb);
@@ -949,16 +949,16 @@ void KCalculator::setupStatisticKeys(TQWidget *tqparent)
connect(tmp_pb, TQT_SIGNAL(clicked(void)), TQT_SLOT(slotStatClearDataclicked(void)));
}
-void KCalculator::setupConstantsKeys(TQWidget *tqparent)
+void KCalculator::setupConstantsKeys(TQWidget *parent)
{
- Q_CHECK_PTR(tqparent);
+ Q_CHECK_PTR(parent);
ConstButtonGroup = new TQButtonGroup(0, "Const-Button-Group");
connect(ConstButtonGroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotConstclicked(int)));
KCalcConstButton *tmp_pb;
- tmp_pb = new KCalcConstButton(tqparent, 0, "C1");
+ tmp_pb = new KCalcConstButton(parent, 0, "C1");
tmp_pb->setAccel(ALT + Key_1);
pbConstant[0] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@@ -967,7 +967,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 0);
- tmp_pb = new KCalcConstButton(tqparent, 1, "C2");
+ tmp_pb = new KCalcConstButton(parent, 1, "C2");
tmp_pb->setAccel(ALT + Key_2);
pbConstant[1] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@@ -976,7 +976,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 1);
- tmp_pb = new KCalcConstButton(tqparent, 2, "C3");
+ tmp_pb = new KCalcConstButton(parent, 2, "C3");
tmp_pb->setAccel(ALT + Key_3);
pbConstant[2] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@@ -985,7 +985,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 2);
- tmp_pb = new KCalcConstButton(tqparent, 3, "C4");
+ tmp_pb = new KCalcConstButton(parent, 3, "C4");
tmp_pb->setAccel(ALT + Key_4);
pbConstant[3] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@@ -994,7 +994,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 3);
- tmp_pb = new KCalcConstButton(tqparent, 4, "C5");
+ tmp_pb = new KCalcConstButton(parent, 4, "C5");
tmp_pb->setAccel(ALT + Key_5);
pbConstant[4] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
@@ -1003,7 +1003,7 @@ void KCalculator::setupConstantsKeys(TQWidget *tqparent)
tmp_pb, TQT_SLOT(slotSetMode(ButtonModeFlags,bool)));
ConstButtonGroup->insert(tmp_pb, 4);
- tmp_pb = new KCalcConstButton(tqparent, 5, "C6");
+ tmp_pb = new KCalcConstButton(parent, 5, "C6");
tmp_pb->setAccel(ALT + Key_6);
pbConstant[5] = tmp_pb;
connect(TQT_TQOBJECT(this), TQT_SIGNAL(switchShowAccels(bool)),
diff --git a/kcalc/kcalc.h b/kcalc/kcalc.h
index 4cb058d..4abceb7 100644
--- a/kcalc/kcalc.h
+++ b/kcalc/kcalc.h
@@ -64,7 +64,7 @@ class KCalculator : public KMainWindow
TQ_OBJECT
public:
- KCalculator(TQWidget *tqparent = 0, const char *name = 0);
+ KCalculator(TQWidget *parent = 0, const char *name = 0);
~KCalculator();
signals:
@@ -77,11 +77,11 @@ private:
void updateGeometry();
void setupMainActions(void);
void setupStatusbar(void);
- TQWidget *setupNumericKeys(TQWidget *tqparent);
- void setupLogicKeys(TQWidget *tqparent);
- void setupScientificKeys(TQWidget *tqparent);
- void setupStatisticKeys(TQWidget *tqparent);
- void setupConstantsKeys(TQWidget *tqparent);
+ TQWidget *setupNumericKeys(TQWidget *parent);
+ void setupLogicKeys(TQWidget *parent);
+ void setupScientificKeys(TQWidget *parent);
+ void setupStatisticKeys(TQWidget *parent);
+ void setupConstantsKeys(TQWidget *parent);
void keyPressEvent(TQKeyEvent *e);
void keyReleaseEvent(TQKeyEvent *e);
void set_precision();
diff --git a/kcalc/kcalc_button.cpp b/kcalc/kcalc_button.cpp
index 8e69f6d..277e5bd 100644
--- a/kcalc/kcalc_button.cpp
+++ b/kcalc/kcalc_button.cpp
@@ -30,16 +30,16 @@
#include "kcalc_button.h"
-KCalcButton::KCalcButton(TQWidget * tqparent, const char * name)
- : KPushButton(tqparent, name), _show_accel_mode(false),
+KCalcButton::KCalcButton(TQWidget * parent, const char * name)
+ : KPushButton(parent, name), _show_accel_mode(false),
_mode_flags(ModeNormal)
{
setAutoDefault(false);
}
-KCalcButton::KCalcButton(const TQString &label, TQWidget * tqparent,
+KCalcButton::KCalcButton(const TQString &label, TQWidget * parent,
const char * name, const TQString &tooltip)
- : KPushButton(label, tqparent, name), _show_accel_mode(false), _mode_flags(ModeNormal)
+ : KPushButton(label, parent, name), _show_accel_mode(false), _mode_flags(ModeNormal)
{
setAutoDefault(false);
addMode(ModeNormal, label, tooltip);
diff --git a/kcalc/kcalc_button.h b/kcalc/kcalc_button.h
index 60a7c30..ba70769 100644
--- a/kcalc/kcalc_button.h
+++ b/kcalc/kcalc_button.h
@@ -64,8 +64,8 @@ Q_OBJECT
TQ_OBJECT
public:
- KCalcButton(TQWidget *tqparent, const char * name = 0);
- KCalcButton(const TQString &label, TQWidget *tqparent, const char * name = 0,
+ KCalcButton(TQWidget *parent, const char * name = 0);
+ KCalcButton(const TQString &label, TQWidget *parent, const char * name = 0,
const TQString &tooltip = TQString());
void addMode(ButtonModeFlags mode, TQString label, TQString tooltip, bool is_label_richtext = false);
@@ -93,11 +93,11 @@ Q_OBJECT
TQ_OBJECT
public:
- KSquareButton(TQWidget *tqparent, const char * name = 0)
- : KCalcButton(tqparent, name) { };
- KSquareButton(const TQString &label, TQWidget *tqparent, const char * name = 0,
+ KSquareButton(TQWidget *parent, const char * name = 0)
+ : KCalcButton(parent, name) { };
+ KSquareButton(const TQString &label, TQWidget *parent, const char * name = 0,
const TQString &tooltip = TQString())
- : KCalcButton(label, tqparent, name, tooltip) { };
+ : KCalcButton(label, parent, name, tooltip) { };
protected:
virtual void drawButtonLabel(TQPainter *paint);
diff --git a/kcalc/kcalc_const_button.cpp b/kcalc/kcalc_const_button.cpp
index a8eb989..071bb71 100644
--- a/kcalc/kcalc_const_button.cpp
+++ b/kcalc/kcalc_const_button.cpp
@@ -31,8 +31,8 @@
#include "kcalc_settings.h"
-KCalcConstButton::KCalcConstButton(TQWidget *tqparent, int but_num, const char * name)
- : KCalcButton(tqparent, name), _button_num(but_num)
+KCalcConstButton::KCalcConstButton(TQWidget *parent, int but_num, const char * name)
+ : KCalcButton(parent, name), _button_num(but_num)
{
addMode(ModeInverse, "Store", i18n("Write display data into memory"));
@@ -40,9 +40,9 @@ KCalcConstButton::KCalcConstButton(TQWidget *tqparent, int but_num, const char *
}
-KCalcConstButton::KCalcConstButton(const TQString &label, TQWidget *tqparent, int but_num,
+KCalcConstButton::KCalcConstButton(const TQString &label, TQWidget *parent, int but_num,
const char * name, const TQString &tooltip)
- : KCalcButton(label, tqparent, name, tooltip), _button_num(but_num)
+ : KCalcButton(label, parent, name, tooltip), _button_num(but_num)
{
addMode(ModeInverse, "Store", i18n("Write display data into memory"));
diff --git a/kcalc/kcalc_const_button.h b/kcalc/kcalc_const_button.h
index 916d7f6..182ab97 100644
--- a/kcalc/kcalc_const_button.h
+++ b/kcalc/kcalc_const_button.h
@@ -35,9 +35,9 @@ Q_OBJECT
public:
- KCalcConstButton(TQWidget *tqparent, int but_num, const char * name = 0);
+ KCalcConstButton(TQWidget *parent, int but_num, const char * name = 0);
- KCalcConstButton(const TQString &label, TQWidget *tqparent, int but_num, const char * name = 0,
+ KCalcConstButton(const TQString &label, TQWidget *parent, int but_num, const char * name = 0,
const TQString &tooltip = TQString());
TQString constant(void) const;
diff --git a/kcalc/kcalc_const_menu.cpp b/kcalc/kcalc_const_menu.cpp
index 7984daf..f758c9f 100644
--- a/kcalc/kcalc_const_menu.cpp
+++ b/kcalc/kcalc_const_menu.cpp
@@ -49,8 +49,8 @@ const struct science_constant KCalcConstMenu::Constants[] = {
{"N_A", I18N_NOOP("Avogadro's Number"), "", "6.0221415e23", Thermodynamics}
};
-KCalcConstMenu::KCalcConstMenu(TQWidget * tqparent, const char * name)
- : TQPopupMenu(tqparent, name)
+KCalcConstMenu::KCalcConstMenu(TQWidget * parent, const char * name)
+ : TQPopupMenu(parent, name)
{
TQPopupMenu *math_menu = new TQPopupMenu(this, "mathematical constants");
TQPopupMenu *em_menu = new TQPopupMenu(this, "electromagnetic constants");
diff --git a/kcalc/kcalc_const_menu.h b/kcalc/kcalc_const_menu.h
index 92d9386..be01f42 100644
--- a/kcalc/kcalc_const_menu.h
+++ b/kcalc/kcalc_const_menu.h
@@ -42,7 +42,7 @@ class KCalcConstMenu : public TQPopupMenu
TQ_OBJECT
public:
- KCalcConstMenu(TQWidget * tqparent = 0, const char * name = 0);
+ KCalcConstMenu(TQWidget * parent = 0, const char * name = 0);
static const struct science_constant Constants[];
diff --git a/kcalc/kcalcdisplay.cpp b/kcalc/kcalcdisplay.cpp
index bc87197..83e0924 100644
--- a/kcalc/kcalcdisplay.cpp
+++ b/kcalc/kcalcdisplay.cpp
@@ -39,8 +39,8 @@
#include "kcalcdisplay.moc"
-KCalcDisplay::KCalcDisplay(TQWidget *tqparent, const char *name)
- :TQLabel(tqparent,name), _beep(false), _groupdigits(false), _button(0), _lit(false),
+KCalcDisplay::KCalcDisplay(TQWidget *parent, const char *name)
+ :TQLabel(parent,name), _beep(false), _groupdigits(false), _button(0), _lit(false),
_num_base(NB_DECIMAL), _precision(9),
_fixed_precision(-1), _display_amount(0),
selection_timer(new TQTimer)
diff --git a/kcalc/kcalcdisplay.h b/kcalc/kcalcdisplay.h
index 4c0371c..d12ba2f 100644
--- a/kcalc/kcalcdisplay.h
+++ b/kcalc/kcalcdisplay.h
@@ -82,7 +82,7 @@ Q_OBJECT
TQ_OBJECT
public:
- KCalcDisplay(TQWidget *tqparent=0, const char *name=0);
+ KCalcDisplay(TQWidget *parent=0, const char *name=0);
~KCalcDisplay();
protected: