Revert "Rename a number of old tq methods that are no longer tq specific"

This reverts commit b877728731.
pull/1/head
Timothy Pearson 13 years ago
parent b877728731
commit 04bc759a8e

@ -132,7 +132,7 @@ ValueListViewItem::ValueListViewItem(TQListView *listView, const TQString &name,
void ValueListViewItem::valueChanged() void ValueListViewItem::valueChanged()
{ {
setText(1, m_value.toString()); setText(1, m_value.toString());
repaint(); tqrepaint();
} }
void ValueListViewItem::valueChanged(const Abakus::number_t &newValue) void ValueListViewItem::valueChanged(const Abakus::number_t &newValue)

@ -23,7 +23,7 @@
#include <tqpainter.h> #include <tqpainter.h>
#include <tqcolor.h> #include <tqcolor.h>
#include <tqfont.h> #include <tqfont.h>
#include <brush.h> #include <tqbrush.h>
#include <tqfontmetrics.h> #include <tqfontmetrics.h>
#include "dragsupport.h" #include "dragsupport.h"

@ -147,7 +147,7 @@ void ChoiceItem::paint( TQPainter* painter )
//int xPos = fm.width( item ); //int xPos = fm.width( item );
int xPos = TQMAX(fm.width(item), minNameWidth); int xPos = TQMAX(fm.width(item), minNameWidth);
if( !isSelected() ) if( !isSelected() )
painter->setPen( listBox()->palette().disabled().text().dark() ); painter->setPen( listBox()->tqpalette().disabled().text().dark() );
painter->drawText( 10 + xPos, yPos, desc ); painter->drawText( 10 + xPos, yPos, desc );
} }
@ -161,7 +161,7 @@ int EditorHighlighter::highlightParagraph ( const TQString & text, int )
{ {
if( !editor->isSyntaxHighlightEnabled() ) if( !editor->isSyntaxHighlightEnabled() )
{ {
setFormat( 0, text.length(), editor->colorGroup().text() ); setFormat( 0, text.length(), editor->tqcolorGroup().text() );
return 0; return 0;
} }
@ -224,7 +224,7 @@ Editor::Editor( TQWidget* parent, const char* name ):
d->autoCalcTimer = new TQTimer( this ); d->autoCalcTimer = new TQTimer( this );
d->matchingTimer = new TQTimer( this ); d->matchingTimer = new TQTimer( this );
setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ); tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
setWordWrap( NoWrap ); setWordWrap( NoWrap );
setHScrollBarMode( AlwaysOff ); setHScrollBarMode( AlwaysOff );
setVScrollBarMode( AlwaysOff ); setVScrollBarMode( AlwaysOff );
@ -261,7 +261,7 @@ Editor::~Editor()
delete d; delete d;
} }
TQSize Editor::sizeHint() const TQSize Editor::tqsizeHint() const
{ {
constPolish(); constPolish();
TQFontMetrics fm = fontMetrics(); TQFontMetrics fm = fontMetrics();
@ -503,7 +503,7 @@ void Editor::triggerAutoComplete()
TQStringList choices; TQStringList choices;
for( unsigned i=0; i<fnames.count(); i++ ) for( unsigned i=0; i<fnames.count(); i++ )
if( fnames[i].startsWith( id, false ) ) if( fnames[i].tqstartsWith( id, false ) )
{ {
TQString str = fnames[i]; TQString str = fnames[i];
@ -521,13 +521,13 @@ void Editor::triggerAutoComplete()
TQStringList values = ValueManager::instance()->valueNames(); TQStringList values = ValueManager::instance()->valueNames();
for(TQStringList::ConstIterator it = values.begin(); it != values.end(); ++it) for(TQStringList::ConstIterator it = values.begin(); it != values.end(); ++it)
if( (*it).startsWith( id, false ) ) if( (*it).tqstartsWith( id, false ) )
{ {
TQString choice = ValueManager::description(*it); TQString choice = ValueManager::description(*it);
if(choice.isEmpty()) if(choice.isEmpty())
choice = ValueManager::instance()->value(*it).toString(); choice = ValueManager::instance()->value(*it).toString();
vchoices.append( TQString("%1:%2").arg( *it, choice ) ); vchoices.append( TQString("%1:%2").tqarg( *it, choice ) );
} }
vchoices.sort(); vchoices.sort();
@ -627,7 +627,7 @@ void Editor::autoCalc()
Abakus::number_t result = parseString(str.latin1()); Abakus::number_t result = parseString(str.latin1());
if( Result::lastResult()->type() == Result::Value ) if( Result::lastResult()->type() == Result::Value )
{ {
TQString ss = TQString("Result: <b>%2</b>").arg(result.toString()); TQString ss = TQString("Result: <b>%2</b>").tqarg(result.toString());
d->autoCalcLabel->setText( ss ); d->autoCalcLabel->setText( ss );
d->autoCalcLabel->adjustSize(); d->autoCalcLabel->adjustSize();
@ -758,11 +758,11 @@ EditorCompletion::EditorCompletion( Editor* editor ): TQObject( editor )
d = new Private; d = new Private;
d->editor = editor; d->editor = editor;
d->completionPopup = new TQVBox( editor->topLevelWidget(), 0, WType_Popup ); d->completionPopup = new TQVBox( editor->tqtopLevelWidget(), 0, WType_Popup );
d->completionPopup->setFrameStyle( TQFrame::Box | TQFrame::Plain ); d->completionPopup->setFrameStyle( TQFrame::Box | TQFrame::Plain );
d->completionPopup->setLineWidth( 1 ); d->completionPopup->setLineWidth( 1 );
d->completionPopup->installEventFilter( this ); d->completionPopup->installEventFilter( this );
d->completionPopup->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum); d->completionPopup->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum);
d->completionListBox = new TQListBox( d->completionPopup ); d->completionListBox = new TQListBox( d->completionPopup );
d->completionPopup->setFocusProxy( d->completionListBox ); d->completionPopup->setFocusProxy( d->completionListBox );
@ -843,7 +843,7 @@ void EditorCompletion::showCompletion( const TQStringList &choices )
// size of the pop-up // size of the pop-up
d->completionPopup->setMaximumHeight( 120 ); d->completionPopup->setMaximumHeight( 120 );
d->completionPopup->resize( d->completionListBox->sizeHint() + d->completionPopup->resize( d->completionListBox->tqsizeHint() +
TQSize( d->completionListBox->verticalScrollBar()->width() + 4, TQSize( d->completionListBox->verticalScrollBar()->width() + 4,
d->completionListBox->horizontalScrollBar()->height() + 4 ) ); d->completionListBox->horizontalScrollBar()->height() + 4 ) );

@ -25,7 +25,7 @@
#include <tqobject.h> #include <tqobject.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <textedit.h> #include <tqtextedit.h>
#include "hmath.h" #include "hmath.h"
@ -49,8 +49,8 @@ class Editor : public TQTextEdit
Editor( TQWidget* parent = 0, const char* name = 0 ); Editor( TQWidget* parent = 0, const char* name = 0 );
~Editor(); ~Editor();
TQSize sizeHint() const; TQSize tqsizeHint() const;
TQSize xminimumSizeHint() const; TQSize xtqminimumSizeHint() const;
TQStringList history() const; TQStringList history() const;
void setHistory( const TQStringList& history ); void setHistory( const TQStringList& history );

@ -140,7 +140,7 @@ static Token::Op matchOperator( const TQString& text )
if( text.length() == 1 ) if( text.length() == 1 )
{ {
TQChar p = text[0]; TQChar p = text[0];
switch( p.unicode() ) switch( p.tqunicode() )
{ {
case '+': result = Token::Plus; break; case '+': result = Token::Plus; break;
case '-': result = Token::Minus; break; case '-': result = Token::Minus; break;

@ -31,7 +31,7 @@
#include <kactionclasses.h> #include <kactionclasses.h>
#include <kinputdialog.h> #include <kinputdialog.h>
#include <layout.h> #include <tqlayout.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
@ -54,20 +54,20 @@ MainWindow::MainWindow() : KMainWindow(0, "abakus-mainwindow"), m_popup(0), m_in
{ {
m_mainSplitter = new TQSplitter(this); m_mainSplitter = new TQSplitter(this);
TQWidget *box = new TQWidget(m_mainSplitter); TQWidget *box = new TQWidget(m_mainSplitter);
TQVBoxLayout *layout = new TQVBoxLayout(box); TQVBoxLayout *tqlayout = new TQVBoxLayout(box);
m_layout = layout; m_layout = tqlayout;
layout->setSpacing(6); tqlayout->setSpacing(6);
layout->setMargin(6); tqlayout->setMargin(6);
TQWidget *configBox = new TQWidget(box); TQWidget *configBox = new TQWidget(box);
layout->addWidget(configBox); tqlayout->addWidget(configBox);
TQHBoxLayout *configLayout = new TQHBoxLayout(configBox); TQHBoxLayout *configLayout = new TQHBoxLayout(configBox);
configLayout->addWidget(new TQWidget(configBox)); configLayout->addWidget(new TQWidget(configBox));
TQLabel *label = new TQLabel(i18n("History: "), configBox); TQLabel *label = new TQLabel(i18n("History: "), configBox);
label->setAlignment(AlignCenter); label->tqsetAlignment(AlignCenter);
configLayout->addWidget(label); configLayout->addWidget(label);
TQButtonGroup *buttonGroup = new TQButtonGroup(0); TQButtonGroup *buttonGroup = new TQButtonGroup(0);
@ -90,7 +90,7 @@ MainWindow::MainWindow() : KMainWindow(0, "abakus-mainwindow"), m_popup(0), m_in
connect(m_radians, TQT_SIGNAL(clicked()), TQT_SLOT(slotRadians())); connect(m_radians, TQT_SIGNAL(clicked()), TQT_SLOT(slotRadians()));
m_history = new TQVBox(box); m_history = new TQVBox(box);
layout->addWidget(m_history); tqlayout->addWidget(m_history);
m_history->setSpacing(6); m_history->setSpacing(6);
m_history->setMargin(0); m_history->setMargin(0);
@ -103,10 +103,10 @@ MainWindow::MainWindow() : KMainWindow(0, "abakus-mainwindow"), m_popup(0), m_in
TQT_SLOT(slotResultSelected(const TQString &))); TQT_SLOT(slotResultSelected(const TQString &)));
m_history->setStretchFactor(m_result, 1); m_history->setStretchFactor(m_result, 1);
layout->setStretchFactor(m_history, 1); tqlayout->setStretchFactor(m_history, 1);
TQHBox *editBox = new TQHBox(box); TQHBox *editBox = new TQHBox(box);
layout->addWidget(editBox); tqlayout->addWidget(editBox);
editBox->setSpacing(6); editBox->setSpacing(6);
m_edit = new Editor(editBox); m_edit = new Editor(editBox);
@ -222,7 +222,7 @@ void MainWindow::slotReturnPressed()
} }
else { else {
m_insert = false; m_insert = false;
resultVal = i18n("Error: %1").arg(RPNParser::errorString()); resultVal = i18n("Error: %1").tqarg(RPNParser::errorString());
} }
// Skip creating list view items if in compact mode. // Skip creating list view items if in compact mode.
@ -318,7 +318,7 @@ void MainWindow::slotUpdateSize()
if(m_newSize != TQSize(0, 0)) if(m_newSize != TQSize(0, 0))
resize(m_newSize); resize(m_newSize);
else else
resize(width(), minimumSize().height()); resize(width(), tqminimumSize().height());
} }
void MainWindow::slotDegrees() void MainWindow::slotDegrees()
@ -454,8 +454,8 @@ void MainWindow::saveConfig()
continue; continue;
list += TQString("%1=%2") list += TQString("%1=%2")
.arg(*it) .tqarg(*it)
.arg(ValueManager::instance()->value(*it).toString()); .tqarg(ValueManager::instance()->value(*it).toString());
} }
config.writeEntry("Saved Variables", list); config.writeEntry("Saved Variables", list);
@ -492,7 +492,7 @@ void MainWindow::saveConfig()
TQString var = manager->function(*it)->userFn->varName; TQString var = manager->function(*it)->userFn->varName;
TQString expr = fn->operand()->infixString(); TQString expr = fn->operand()->infixString();
saveList += TQString("set %1(%2) = %3").arg(*it).arg(var).arg(expr); saveList += TQString("set %1(%2) = %3").tqarg(*it).tqarg(var).tqarg(expr);
} }
config.writeEntry("FunctionList", saveList); config.writeEntry("FunctionList", saveList);
@ -631,7 +631,7 @@ void MainWindow::slotNewFunction(const TQString &name)
{ {
UserFunction *userFn = FunctionManager::instance()->function(name)->userFn; UserFunction *userFn = FunctionManager::instance()->function(name)->userFn;
UnaryFunction *fn = dynamic_cast<UnaryFunction *>(userFn->fn); UnaryFunction *fn = dynamic_cast<UnaryFunction *>(userFn->fn);
TQString fnName = TQString("%1(%2)").arg(name, userFn->varName); TQString fnName = TQString("%1(%2)").tqarg(name, userFn->varName);
TQString expr = fn->operand()->infixString(); TQString expr = fn->operand()->infixString();
new KListViewItem(m_fnList, fnName, expr); new KListViewItem(m_fnList, fnName, expr);
@ -640,7 +640,7 @@ void MainWindow::slotNewFunction(const TQString &name)
void MainWindow::slotRemoveFunction(const TQString &name) void MainWindow::slotRemoveFunction(const TQString &name)
{ {
UserFunction *userFn = FunctionManager::instance()->function(name)->userFn; UserFunction *userFn = FunctionManager::instance()->function(name)->userFn;
TQString fnName = TQString("%1(%2)").arg(name, userFn->varName); TQString fnName = TQString("%1(%2)").tqarg(name, userFn->varName);
TQListViewItem *item = 0; TQListViewItem *item = 0;
while((item = m_fnList->findItem(fnName, 0)) != 0) while((item = m_fnList->findItem(fnName, 0)) != 0)
@ -714,7 +714,7 @@ TQString MainWindow::interpolateExpression(const TQString &text, ResultListViewT
unsigned numPos = stackStr.mid(1).toUInt(); unsigned numPos = stackStr.mid(1).toUInt();
if(!m_result->getStackValue(numPos, value)) { if(!m_result->getStackValue(numPos, value)) {
new ResultListViewText(m_result, text, i18n("Marker %1 isn't set").arg(stackStr), after, true); new ResultListViewText(m_result, text, i18n("Marker %1 isn't set").tqarg(stackStr), after, true);
return TQString(); return TQString();
} }

@ -42,7 +42,7 @@ class ResultListViewText;
class AbakusIface; class AbakusIface;
// Main window class, handles events and layout and stuff // Main window class, handles events and tqlayout and stuff
class MainWindow : public KMainWindow class MainWindow : public KMainWindow
{ {
Q_OBJECT Q_OBJECT

@ -64,7 +64,7 @@ void UnaryFunction::applyMap(NodeFunctor &fn) const
TQString UnaryFunction::infixString() const TQString UnaryFunction::infixString() const
{ {
return TQString("%1(%2)").arg(name(), operand()->infixString()); return TQString("%1(%2)").tqarg(name(), operand()->infixString());
} }
BuiltinFunction::BuiltinFunction(const char *name, Node *operand) : BuiltinFunction::BuiltinFunction(const char *name, Node *operand) :
@ -210,7 +210,7 @@ void DerivativeFunction::applyMap(NodeFunctor &fn) const
TQString DerivativeFunction::infixString() const TQString DerivativeFunction::infixString() const
{ {
return TQString("deriv(%1, %2)").arg(m_operand->infixString(), m_where->infixString()); return TQString("deriv(%1, %2)").tqarg(m_operand->infixString(), m_where->infixString());
} }
UnaryOperator::UnaryOperator(Type type, Node *operand) UnaryOperator::UnaryOperator(Type type, Node *operand)
@ -233,9 +233,9 @@ void UnaryOperator::applyMap(NodeFunctor &fn) const
TQString UnaryOperator::infixString() const TQString UnaryOperator::infixString() const
{ {
if(dynamic_cast<BinaryOperator *>(operand())) if(dynamic_cast<BinaryOperator *>(operand()))
return TQString("-(%1)").arg(operand()->infixString()); return TQString("-(%1)").tqarg(operand()->infixString());
return TQString("-%1").arg(operand()->infixString()); return TQString("-%1").tqarg(operand()->infixString());
} }
Abakus::number_t UnaryOperator::derivative() const Abakus::number_t UnaryOperator::derivative() const
@ -312,10 +312,10 @@ TQString BinaryOperator::infixString() const
op = "Error"; op = "Error";
} }
TQString left = TQString(isSimpleNode(leftNode()) ? "%1" : "(%1)").arg(leftNode()->infixString()); TQString left = TQString(isSimpleNode(leftNode()) ? "%1" : "(%1)").tqarg(leftNode()->infixString());
TQString right = TQString(isSimpleNode(rightNode()) ? "%1" : "(%1)").arg(rightNode()->infixString()); TQString right = TQString(isSimpleNode(rightNode()) ? "%1" : "(%1)").tqarg(rightNode()->infixString());
return TQString("%1 %2 %3").arg(left, op, right); return TQString("%1 %2 %3").tqarg(left, op, right);
} }
Abakus::number_t BinaryOperator::derivative() const Abakus::number_t BinaryOperator::derivative() const

@ -31,7 +31,7 @@ typedef SharedPtr<Node> NodePtr;
/** /**
* A class that operates on a Node. Called recursively on a node and all * A class that operates on a Node. Called recursively on a node and all
* of its children. * of its tqchildren.
*/ */
class NodeFunctor class NodeFunctor
{ {
@ -50,7 +50,7 @@ class Node
// typically read-only. // typically read-only.
virtual void deleteNode(Node *node); virtual void deleteNode(Node *node);
// Calls functor() on all subchildren and this. // Calls functor() on all subtqchildren and this.
virtual void applyMap(NodeFunctor &fn) const = 0; virtual void applyMap(NodeFunctor &fn) const = 0;
// Returns an infix representation of the expression. // Returns an infix representation of the expression.

@ -78,7 +78,7 @@ TQString convertToString(const mpfr_ptr &number)
if(r.isEmpty()) if(r.isEmpty())
r = "0"; r = "0";
r.append(TQString("e%1").arg(exp - 1)); r.append(TQString("e%1").tqarg(exp - 1));
return sign + l + decimalSymbol + r; return sign + l + decimalSymbol + r;
} }
@ -190,7 +190,7 @@ TQString convertToString(const HNumber &num)
str.truncate(str.length() - 1); // Remove trailing period. str.truncate(str.length() - 1); // Remove trailing period.
if(parts.count() > 1 && parts[1] != "0") if(parts.count() > 1 && parts[1] != "0")
str += TQString("e%1").arg(parts[1]); str += TQString("e%1").tqarg(parts[1]);
return str; return str;
} }

@ -100,7 +100,7 @@ S: error '=' {
// Can't assign to a function. // Can't assign to a function.
S: FUNC '=' { S: FUNC '=' {
TQString s(i18n("You can't assign to function %1").arg($1->name())); TQString s(i18n("You can't assign to function %1").tqarg($1->name()));
Result::setLastResult(s); Result::setLastResult(s);
YYABORT; YYABORT;
@ -116,14 +116,14 @@ ASSIGN: '(' { --gCheckIdents; } IDENT ')' '=' {
// since normally functions and variables with the same name can coexist, but // since normally functions and variables with the same name can coexist, but
// I don't want to duplicate code all over the place. // I don't want to duplicate code all over the place.
S: SET DERIV { S: SET DERIV {
TQString s(i18n("Function %1 is built-in and cannot be overridden.").arg("deriv")); TQString s(i18n("Function %1 is built-in and cannot be overridden.").tqarg("deriv"));
Result::setLastResult(s); Result::setLastResult(s);
YYABORT; YYABORT;
} }
S: DERIV '=' { S: DERIV '=' {
TQString s(i18n("Function %1 is built-in and cannot be overridden.").arg("deriv")); TQString s(i18n("Function %1 is built-in and cannot be overridden.").tqarg("deriv"));
Result::setLastResult(s); Result::setLastResult(s);
YYABORT; YYABORT;
@ -139,7 +139,7 @@ S: SET FUNC ASSIGN EXP {
FunctionManager *manager = FunctionManager::instance(); FunctionManager *manager = FunctionManager::instance();
if(manager->isFunction(funcName) && !manager->isFunctionUserDefined(funcName)) { if(manager->isFunction(funcName) && !manager->isFunctionUserDefined(funcName)) {
TQString s(i18n("Function %1 is built-in and cannot be overridden.").arg(funcName)); TQString s(i18n("Function %1 is built-in and cannot be overridden.").tqarg(funcName));
Result::setLastResult(s); Result::setLastResult(s);
YYABORT; YYABORT;
@ -150,7 +150,7 @@ S: SET FUNC ASSIGN EXP {
BaseFunction *newFn = new UserDefinedFunction(funcName.ascii(), $4); BaseFunction *newFn = new UserDefinedFunction(funcName.ascii(), $4);
if(!manager->addFunction(newFn, ident)) { if(!manager->addFunction(newFn, ident)) {
TQString s(i18n("Unable to define function %1 because it is recursive.").arg(funcName)); TQString s(i18n("Unable to define function %1 because it is recursive.").tqarg(funcName));
Result::setLastResult(s); Result::setLastResult(s);
YYABORT; YYABORT;
@ -188,14 +188,14 @@ S: REMOVE FUNC '(' ')' {
// Can't remove an ident using remove-func syntax. // Can't remove an ident using remove-func syntax.
S: REMOVE IDENT '(' ')' { S: REMOVE IDENT '(' ')' {
// This is an error // This is an error
Result::setLastResult(Result(i18n("Function %1 is not defined.").arg($2->name()))); Result::setLastResult(Result(i18n("Function %1 is not defined.").tqarg($2->name())));
YYABORT; YYABORT;
} }
// This happens when the user tries to remove a function that's not defined. // This happens when the user tries to remove a function that's not defined.
S: REMOVE IDENT '(' IDENT ')' { S: REMOVE IDENT '(' IDENT ')' {
// This is an error // This is an error
Result::setLastResult(Result(i18n("Function %1 is not defined.").arg($2->name()))); Result::setLastResult(Result(i18n("Function %1 is not defined.").tqarg($2->name())));
YYABORT; YYABORT;
} }
@ -211,9 +211,9 @@ S: REMOVE IDENT {
else { else {
TQString s; TQString s;
if(manager->isValueSet($2->name())) if(manager->isValueSet($2->name()))
s = i18n("Can't remove predefined variable %1.").arg($2->name()); s = i18n("Can't remove predefined variable %1.").tqarg($2->name());
else else
s = i18n("Can't remove undefined variable %1.").arg($2->name()); s = i18n("Can't remove undefined variable %1.").tqarg($2->name());
Result::setLastResult(s); Result::setLastResult(s);
@ -228,7 +228,7 @@ S: SET IDENT '=' EXP {
if($2->name() == "pi" && $4->value() == Abakus::number_t("3.0")) if($2->name() == "pi" && $4->value() == Abakus::number_t("3.0"))
Result::setLastResult(i18n("This isn't Indiana, you can't just change pi")); Result::setLastResult(i18n("This isn't Indiana, you can't just change pi"));
else else
Result::setLastResult(i18n("%1 is a constant").arg($2->name())); Result::setLastResult(i18n("%1 is a constant").tqarg($2->name()));
YYABORT; YYABORT;
} }
@ -247,7 +247,7 @@ S: IDENT '=' EXP {
if($1->name() == "pi" && $3->value() == Abakus::number_t("3.0")) if($1->name() == "pi" && $3->value() == Abakus::number_t("3.0"))
Result::setLastResult(i18n("This isn't Indiana, you can't just change pi")); Result::setLastResult(i18n("This isn't Indiana, you can't just change pi"));
else else
Result::setLastResult(i18n("%1 is a constant").arg($1->name())); Result::setLastResult(i18n("%1 is a constant").tqarg($1->name()));
YYABORT; YYABORT;
} }
@ -259,13 +259,13 @@ S: IDENT '=' EXP {
} }
S: NUMBER '=' { S: NUMBER '=' {
Result::setLastResult(i18n("Can't assign to %1").arg($1->value().toString())); Result::setLastResult(i18n("Can't assign to %1").tqarg($1->value().toString()));
YYABORT; YYABORT;
} }
// Can't call this as a function. // Can't call this as a function.
TERM: IDENT '(' { TERM: IDENT '(' {
Result::setLastResult(i18n("%1 isn't a function (or operator expected)").arg($1->name())); Result::setLastResult(i18n("%1 isn't a function (or operator expected)").tqarg($1->name()));
YYABORT; YYABORT;
} }
@ -351,7 +351,7 @@ TERM: NUMBER '(' EXP ')' {
TERM: NUMBER IDENT { TERM: NUMBER IDENT {
if(gCheckIdents > 0 && !ValueManager::instance()->isValueSet($2->name())) { if(gCheckIdents > 0 && !ValueManager::instance()->isValueSet($2->name())) {
Result::setLastResult(i18n("Unknown variable %1").arg($2->name())); Result::setLastResult(i18n("Unknown variable %1").tqarg($2->name()));
YYABORT; YYABORT;
} }
@ -362,7 +362,7 @@ VALUE: IDENT {
if(gCheckIdents <= 0 || ValueManager::instance()->isValueSet($1->name())) if(gCheckIdents <= 0 || ValueManager::instance()->isValueSet($1->name()))
$$ = $1; $$ = $1;
else { else {
Result::setLastResult(i18n("Unknown variable %1").arg($1->name())); Result::setLastResult(i18n("Unknown variable %1").tqarg($1->name()));
YYABORT; YYABORT;
} }
} }

@ -20,7 +20,7 @@
#include <kpopupmenu.h> #include <kpopupmenu.h>
#include <klocale.h> #include <klocale.h>
#include <clipboard.h> #include <tqclipboard.h>
#include <tqapplication.h> #include <tqapplication.h>
#include <tqevent.h> #include <tqevent.h>
#include <tqcursor.h> #include <tqcursor.h>
@ -129,7 +129,7 @@ void ResultListView::slotCopyResult()
if(!m_itemRightClicked) if(!m_itemRightClicked)
return; return;
TQClipboard *clipboard = TQApplication::clipboard(); TQClipboard *clipboard = TQApplication::tqclipboard();
clipboard->setText(m_itemRightClicked->resultText(), TQClipboard::Clipboard); clipboard->setText(m_itemRightClicked->resultText(), TQClipboard::Clipboard);
} }

@ -22,7 +22,7 @@
#include <tqpainter.h> #include <tqpainter.h>
#include <tqfontmetrics.h> #include <tqfontmetrics.h>
#include <tqfont.h> #include <tqfont.h>
#include <palette.h> #include <tqpalette.h>
#include "resultlistviewtext.h" #include "resultlistviewtext.h"
@ -54,7 +54,7 @@ ResultListViewText::ResultListViewText(KListView *listView,
for (; item && item != this; item = static_cast<ResultListViewText *>(item->itemBelow())) { for (; item && item != this; item = static_cast<ResultListViewText *>(item->itemBelow())) {
if(!item->wasError()) { if(!item->wasError()) {
item->setStackPosition(item->stackPosition() + 1); item->setStackPosition(item->stackPosition() + 1);
item->repaint(); item->tqrepaint();
} }
} }
} }
@ -67,7 +67,7 @@ ResultListViewText::ResultListViewText(KListView *listView,
void ResultListViewText::setStackPosition(unsigned pos) void ResultListViewText::setStackPosition(unsigned pos)
{ {
setText(ShortcutColumn, TQString("$%1").arg(pos)); setText(ShortcutColumn, TQString("$%1").tqarg(pos));
m_stackPosition = pos; m_stackPosition = pos;
} }

@ -115,7 +115,7 @@ Abakus::number_t RPNParser::rpnParseString(const TQString &text)
case Func: case Func:
if(m_stack.count() < 1) { if(m_stack.count() < 1) {
m_error = true; m_error = true;
m_errorStr = i18n("Insufficient operands for function %1").arg(*it); m_errorStr = i18n("Insufficient operands for function %1").tqarg(*it);
return Abakus::number_t::nan(); return Abakus::number_t::nan();
} }
@ -150,7 +150,7 @@ Abakus::number_t RPNParser::rpnParseString(const TQString &text)
case Unknown: case Unknown:
m_error = true; m_error = true;
m_errorStr = i18n("Unknown token %1").arg(*it); m_errorStr = i18n("Unknown token %1").tqarg(*it);
return Abakus::number_t::nan(); return Abakus::number_t::nan();
break; break;

Loading…
Cancel
Save