diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /kspread/plugins/calculator/main.cpp | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/plugins/calculator/main.cpp')
-rw-r--r-- | kspread/plugins/calculator/main.cpp | 22 |
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(); |