summaryrefslogtreecommitdiffstats
path: root/kcalc/kcalc_const_button.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /kcalc/kcalc_const_button.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcalc/kcalc_const_button.cpp')
-rw-r--r--kcalc/kcalc_const_button.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kcalc/kcalc_const_button.cpp b/kcalc/kcalc_const_button.cpp
index e9c4216..071bb71 100644
--- a/kcalc/kcalc_const_button.cpp
+++ b/kcalc/kcalc_const_button.cpp
@@ -19,7 +19,7 @@
*/
-#include <qstring.h>
+#include <tqstring.h>
#include <kcmenumngr.h>
@@ -31,7 +31,7 @@
#include "kcalc_settings.h"
-KCalcConstButton::KCalcConstButton(QWidget *parent, int but_num, const char * name)
+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,8 +40,8 @@ KCalcConstButton::KCalcConstButton(QWidget *parent, int but_num, const char * na
}
-KCalcConstButton::KCalcConstButton(const QString &label, QWidget *parent, int but_num,
- const char * name, const QString &tooltip)
+KCalcConstButton::KCalcConstButton(const TQString &label, TQWidget *parent, int but_num,
+ const char * name, const TQString &tooltip)
: KCalcButton(label, parent, name, tooltip), _button_num(but_num)
{
addMode(ModeInverse, "Store", i18n("Write display data into memory"));
@@ -49,15 +49,15 @@ KCalcConstButton::KCalcConstButton(const QString &label, QWidget *parent, int bu
initPopupMenu();
}
-QString KCalcConstButton::constant(void) const
+TQString KCalcConstButton::constant(void) const
{
return KCalcSettings::valueConstant(_button_num);
}
void KCalcConstButton::setLabelAndTooltip(void)
{
- QString new_label = QString("C") + QString().setNum(_button_num + 1);
- QString new_tooltip;
+ TQString new_label = TQString("C") + TQString().setNum(_button_num + 1);
+ TQString new_tooltip;
new_label = (KCalcSettings::nameConstant(_button_num).isNull() ? new_label : KCalcSettings::nameConstant(_button_num));
@@ -74,8 +74,8 @@ void KCalcConstButton::initPopupMenu(void)
_popup->insertItem(i18n("Set Name"), 0);
_popup->insertItem(i18n("Choose From List"), tmp_menu, 1);
- connect(_popup, SIGNAL(activated(int)), SLOT(slotConfigureButton(int)));
- connect(tmp_menu, SIGNAL(activated(int)), SLOT(slotChooseScientificConst(int)));
+ connect(_popup, TQT_SIGNAL(activated(int)), TQT_SLOT(slotConfigureButton(int)));
+ connect(tmp_menu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotChooseScientificConst(int)));
KContextMenuManager::insert(this, _popup);
}
@@ -85,7 +85,7 @@ void KCalcConstButton::slotConfigureButton(int option)
if (option == 0)
{
bool yes_no;
- QString input = KInputDialog::text(i18n("New Name for Constant"), i18n("New name:"),
+ TQString input = KInputDialog::text(i18n("New Name for Constant"), i18n("New name:"),
text(), &yes_no, this, "nameUserConstants-Dialog");
if(yes_no) {
KCalcSettings::setNameConstant(_button_num, input);