summaryrefslogtreecommitdiffstats
path: root/kcalc/kcalc_const_menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcalc/kcalc_const_menu.cpp')
-rw-r--r--kcalc/kcalc_const_menu.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kcalc/kcalc_const_menu.cpp b/kcalc/kcalc_const_menu.cpp
index 77bb02e..f758c9f 100644
--- a/kcalc/kcalc_const_menu.cpp
+++ b/kcalc/kcalc_const_menu.cpp
@@ -26,37 +26,37 @@
#define NUM_CONST 17
const struct science_constant KCalcConstMenu::Constants[] = {
- {QString::fromUtf8("π"), I18N_NOOP("Pi"), "",
+ {TQString::fromUtf8("π"), I18N_NOOP("Pi"), "",
"3.1415926535897932384626433832795028841971693993751"
"05820974944592307816406286208998628034825342117068", Mathematics},
{"e", I18N_NOOP("Euler Number"), "",
"2.7182818284590452353602874713526624977572470936999"
"59574966967627724076630353547594571382178525166427", Mathematics},
- {QString::fromUtf8("φ"), I18N_NOOP("Golden Ratio"), "", "1.61803398874989484820458683436563811", Mathematics},
+ {TQString::fromUtf8("φ"), I18N_NOOP("Golden Ratio"), "", "1.61803398874989484820458683436563811", Mathematics},
{"c", I18N_NOOP("Light Speed"), "", "2.99792458e8", Electromagnetic},
{"h", I18N_NOOP("Planck's Constant"), "", "6.6260693e-34", Nuclear},
{"G", I18N_NOOP("Constant of Gravitation"), "", "6.6742e-11", Gravitation},
{"g", I18N_NOOP("Earth Acceleration"), "", "9.80665", Gravitation},
{"e", I18N_NOOP("Elementary Charge"), "", "1.60217653e-19", ConstantCategory(Electromagnetic|Nuclear)},
{"Z_0", I18N_NOOP("Impedance of Vacuum"), "", "376.730313461", Electromagnetic},
- {QString::fromUtf8("α"), I18N_NOOP("Fine-Structure Constant"), "", "7.297352568e-3", Nuclear},
- {QString::fromUtf8("μ")+"_0", I18N_NOOP("Permeability of Vacuum"), "", "1.2566370614e-6", Electromagnetic},
- {QString::fromUtf8("ε")+"_0", I18N_NOOP("Permittivity of vacuum"), "", "8.854187817e-12", Electromagnetic},
+ {TQString::fromUtf8("α"), I18N_NOOP("Fine-Structure Constant"), "", "7.297352568e-3", Nuclear},
+ {TQString::fromUtf8("μ")+"_0", I18N_NOOP("Permeability of Vacuum"), "", "1.2566370614e-6", Electromagnetic},
+ {TQString::fromUtf8("ε")+"_0", I18N_NOOP("Permittivity of vacuum"), "", "8.854187817e-12", Electromagnetic},
{"k", I18N_NOOP("Boltzmann Constant"), "", "1.3806505e-23", Thermodynamics},
{"1u", I18N_NOOP("Atomic Mass Unit"), "", "1.66053886e-27", Thermodynamics},
{"R", I18N_NOOP("Molar Gas Constant"), "", "8.314472", Thermodynamics},
- {QString::fromUtf8("σ"), I18N_NOOP("Stefan-Boltzmann Constant"), "", "5.670400e-8", Thermodynamics},
+ {TQString::fromUtf8("σ"), I18N_NOOP("Stefan-Boltzmann Constant"), "", "5.670400e-8", Thermodynamics},
{"N_A", I18N_NOOP("Avogadro's Number"), "", "6.0221415e23", Thermodynamics}
};
-KCalcConstMenu::KCalcConstMenu(QWidget * parent, const char * name)
- : QPopupMenu(parent, name)
+KCalcConstMenu::KCalcConstMenu(TQWidget * parent, const char * name)
+ : TQPopupMenu(parent, name)
{
- QPopupMenu *math_menu = new QPopupMenu(this, "mathematical constants");
- QPopupMenu *em_menu = new QPopupMenu(this, "electromagnetic constants");
- QPopupMenu *nuclear_menu = new QPopupMenu(this, "nuclear constants");
- QPopupMenu *thermo_menu = new QPopupMenu(this, "thermodynamics constants");
- QPopupMenu *gravitation_menu = new QPopupMenu(this, "gravitation constants");
+ TQPopupMenu *math_menu = new TQPopupMenu(this, "mathematical constants");
+ TQPopupMenu *em_menu = new TQPopupMenu(this, "electromagnetic constants");
+ TQPopupMenu *nuclear_menu = new TQPopupMenu(this, "nuclear constants");
+ TQPopupMenu *thermo_menu = new TQPopupMenu(this, "thermodynamics constants");
+ TQPopupMenu *gravitation_menu = new TQPopupMenu(this, "gravitation constants");
insertItem(i18n("Mathematics"), math_menu);
insertItem(i18n("Electromagnetism"), em_menu);
@@ -64,11 +64,11 @@ KCalcConstMenu::KCalcConstMenu(QWidget * parent, const char * name)
insertItem(i18n("Thermodynamics"), thermo_menu);
insertItem(i18n("Gravitation"), gravitation_menu);
- connect(math_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(em_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(nuclear_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(thermo_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
- connect(gravitation_menu, SIGNAL(activated(int)), this, SLOT(slotPassActivate(int)));
+ connect(math_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(em_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(nuclear_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(thermo_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
+ connect(gravitation_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPassActivate(int)));
for (int i = 0; i<NUM_CONST; i++) {