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/kspread_functions_information.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/kspread_functions_information.cc')
-rw-r--r-- | kspread/kspread_functions_information.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kspread/kspread_functions_information.cc b/kspread/kspread_functions_information.cc index d64266a7..52ae0f99 100644 --- a/kspread/kspread_functions_information.cc +++ b/kspread/kspread_functions_information.cc @@ -25,7 +25,7 @@ #include <config.h> #include <sys/utsname.h> -#include <qdir.h> +#include <tqdir.h> #include <kdebug.h> #include <klocale.h> @@ -110,20 +110,20 @@ void RegisterInformationFunctions() // Function: INFO Value func_info (valVector args, ValueCalc *calc, FuncExtra *) { - QString type = calc->conv()->asString (args[0]).asString().lower(); + TQString type = calc->conv()->asString (args[0]).asString().lower(); if (type == "directory") - return Value (QDir::currentDirPath()); + return Value (TQDir::currentDirPath()); if (type == "release") - return Value (QString (VERSION)); + return Value (TQString (VERSION)); if ( type == "numfile" ) return Value ((int) Doc::documents().count()); if (type == "recalc") { - QString result; + TQString result; if (calc->doc()) { if (calc->doc()->delayCalculation()) result = i18n ("Manual"); @@ -146,7 +146,7 @@ Value func_info (valVector args, ValueCalc *calc, FuncExtra *) if (type == "system") { struct utsname name; if (uname (&name) >= 0) - return Value (QString (name.sysname)); + return Value (TQString (name.sysname)); } if (type == "totmem") @@ -158,8 +158,8 @@ Value func_info (valVector args, ValueCalc *calc, FuncExtra *) struct utsname name; if (uname (&name) >= 0) { - QString os = QString("%1 %2 (%3)").arg( name.sysname ). - arg( name.release ).arg( name.machine ); + TQString os = TQString("%1 %2 (%3)").tqarg( name.sysname ). + tqarg( name.release ).tqarg( name.machine ); return Value (os); } } |