From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspread/KSpreadDocIface.cc | 48 +++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kspread/KSpreadDocIface.cc') diff --git a/kspread/KSpreadDocIface.cc b/kspread/KSpreadDocIface.cc index 13ab0a0c..a4374800 100644 --- a/kspread/KSpreadDocIface.cc +++ b/kspread/KSpreadDocIface.cc @@ -33,7 +33,7 @@ #include #include -#include +#include #include using namespace KSpread; @@ -50,12 +50,12 @@ DCOPRef DocIface::map() doc->map()->dcopObject()->objId() ); } -void DocIface::changeDefaultGridPenColor( const QColor &_col) +void DocIface::changeDefaultGridPenColor( const TQColor &_col) { doc->setGridColor(_col); } -QColor DocIface::pageBorderColor() const +TQColor DocIface::pageBorderColor() const { return doc->pageBorderColor(); } @@ -105,13 +105,13 @@ void DocIface::setShowTabBar(bool _show) doc->refreshInterface(); } -void DocIface::changePageBorderColor( const QColor & _color) +void DocIface::changePageBorderColor( const TQColor & _color) { doc->changePageBorderColor( _color); doc->refreshInterface(); } -void DocIface::addIgnoreWordAll( const QString &word) +void DocIface::addIgnoreWordAll( const TQString &word) { doc->addIgnoreWordAll( word ); } @@ -121,12 +121,12 @@ void DocIface::clearIgnoreWordAll( ) doc->clearIgnoreWordAll(); } -QStringList DocIface::spellListIgnoreAll() const +TQStringList DocIface::spellListIgnoreAll() const { return doc->spellListIgnoreAll(); } -void DocIface::addStringCompletion(const QString & stringCompletion) +void DocIface::addStringCompletion(const TQString & stringCompletion) { doc->addStringCompletion( stringCompletion ); } @@ -137,30 +137,30 @@ int DocIface::zoom() const } -QString DocIface::moveToValue()const +TQString DocIface::moveToValue()const { switch(doc->getMoveToValue()) { case Bottom: - return QString("bottom"); + return TQString("bottom"); break; case Left: - return QString("left"); + return TQString("left"); break; case Top: - return QString("top"); + return TQString("top"); break; case Right: - return QString("right"); + return TQString("right"); break; case BottomFirst: - return QString("bottomFirst"); + return TQString("bottomFirst"); break; } - return QString::null; + return TQString(); } -void DocIface::setMoveToValue(const QString & move) +void DocIface::setMoveToValue(const TQString & move) { if ( move.lower()=="bottom" ) doc->setMoveToValue(Bottom); @@ -174,7 +174,7 @@ void DocIface::setMoveToValue(const QString & move) doc->setMoveToValue(BottomFirst); } -void DocIface::setTypeOfCalc( const QString & calc ) +void DocIface::setTypeOfCalc( const TQString & calc ) { if ( calc.lower()=="sum") doc->setTypeOfCalc(SumOfNumber ); @@ -189,32 +189,32 @@ void DocIface::setTypeOfCalc( const QString & calc ) else if ( calc.lower()=="none") doc->setTypeOfCalc(NoneCalc ); else - kdDebug()<<"Error in setTypeOfCalc( const QString & calc ) :"<refreshInterface(); } -QString DocIface::typeOfCalc() const +TQString DocIface::typeOfCalc() const { switch( doc->getTypeOfCalc() ) { case SumOfNumber: - return QString("sum"); + return TQString("sum"); break; case Min: - return QString("min"); + return TQString("min"); break; case Max: - return QString("max"); + return TQString("max"); break; case Average: - return QString("average"); + return TQString("average"); break; case Count: - return QString("count"); + return TQString("count"); break; case NoneCalc: default: - return QString("none"); + return TQString("none"); break; } } -- cgit v1.2.1