diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kspread/KSpreadDocIface.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
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
Diffstat (limited to 'kspread/KSpreadDocIface.cc')
-rw-r--r-- | kspread/KSpreadDocIface.cc | 48 |
1 files changed, 24 insertions, 24 deletions
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 <kapplication.h> #include <dcopclient.h> -#include <qcolor.h> +#include <tqcolor.h> #include <kdebug.h> 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 ) :"<<calc<<endl; + kdDebug()<<"Error in setTypeOfCalc( const TQString & calc ) :"<<calc<<endl; doc->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; } } |