summaryrefslogtreecommitdiffstats
path: root/kspread/plugins/calculator/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/plugins/calculator/main.cpp')
-rw-r--r--kspread/plugins/calculator/main.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kspread/plugins/calculator/main.cpp b/kspread/plugins/calculator/main.cpp
index c6efb99f..2f1a0b89 100644
--- a/kspread/plugins/calculator/main.cpp
+++ b/kspread/plugins/calculator/main.cpp
@@ -43,8 +43,8 @@ K_EXPORT_COMPONENT_FACTORY( libkspreadcalc, CalcFactory )
KInstance* CalcFactory::s_global = 0;
-CalcFactory::CalcFactory( TQObject* tqparent, const char* name )
- : KLibFactory( tqparent, name )
+CalcFactory::CalcFactory( TQObject* parent, const char* name )
+ : KLibFactory( parent, name )
{
s_global = new KInstance( "kspreadcalc" );
}
@@ -54,15 +54,15 @@ CalcFactory::~CalcFactory()
delete s_global;
}
-TQObject* CalcFactory::createObject( TQObject* tqparent, const char* name, const char* /*classname*/, const TQStringList & )
+TQObject* CalcFactory::createObject( TQObject* parent, const char* name, const char* /*classname*/, const TQStringList & )
{
- if ( !tqparent->inherits("KSpread::View") )
+ if ( !parent->inherits("KSpread::View") )
{
- kdError() << "CalcFactory: KSpread::View expected. Parent is " << tqparent->className() << endl;
+ kdError() << "CalcFactory: KSpread::View expected. Parent is " << parent->className() << endl;
return 0;
}
- TQObject *obj = new Calculator( (View*)tqparent, name );
+ TQObject *obj = new Calculator( (View*)parent, name );
return obj;
}
@@ -77,14 +77,14 @@ KInstance* CalcFactory::global()
*
***************************************************/
-Calculator::Calculator( View* tqparent, const char* name )
- : KParts::Plugin( tqparent, name )
+Calculator::Calculator( View* parent, const char* name )
+ : KParts::Plugin( parent, name )
{
m_calc = 0;
- m_view = tqparent;
+ m_view = parent;
KGlobal::locale()->insertCatalogue("kspreadcalc_calc");
- tqparent->installEventFilter( this );
+ parent->installEventFilter( this );
(void)new KAction( i18n("Calculator"), SmallIcon("kcalc", CalcFactory::global()),
0, this, TQT_SLOT( showCalculator() ), actionCollection(), "kspreadcalc");
@@ -99,7 +99,7 @@ void Calculator::showCalculator()
return;
}
- m_calc = new TQtCalculator( this, (View*)tqparent() );
+ m_calc = new TQtCalculator( this, (View*)parent() );
m_calc->setFixedSize( 9 + 100 + 9 + 233 + 9, 239);
m_calc->show();
m_calc->raise();