summaryrefslogtreecommitdiffstats
path: root/superkaramba/src/themelocale.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /superkaramba/src/themelocale.cpp
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'superkaramba/src/themelocale.cpp')
-rw-r--r--superkaramba/src/themelocale.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/superkaramba/src/themelocale.cpp b/superkaramba/src/themelocale.cpp
index 32886f6..bc388c2 100644
--- a/superkaramba/src/themelocale.cpp
+++ b/superkaramba/src/themelocale.cpp
@@ -46,7 +46,7 @@
# define W(flag, data) ((flag) ? SWAP (data) : (data))
#endif
-typedef Q_UINT32 nls_uint32;
+typedef TQ_UINT32 nls_uint32;
struct loaded_domain
{
@@ -137,7 +137,7 @@ void ThemeLocale::unload()
TQString ThemeLocale::translate(TQString text) const
{
if(text == 0)
- return TQString::null;
+ return TQString();
if(m_domain.data)
{
TQString result = TQString::fromUtf8(tl_nl_find_msg(&m_domain, text.ascii()));
@@ -157,12 +157,12 @@ void ThemeLocale::setLanguage(const TQStringList &languages)
++it)
{
TQString file =
- TQString("locale/%1/LC_MESSAGES/%2.mo").arg(*it).arg(m_theme->mo());
+ TQString("locale/%1/LC_MESSAGES/%2.mo").tqarg(*it).tqarg(m_theme->mo());
if(m_theme->fileExists(file))
{
TQBuffer buffer(m_theme->readThemeFile(file));
- tl_nl_load_domain(&buffer, buffer.size(), &m_domain);
+ tl_nl_load_domain(TQT_TQIODEVICE(&buffer), buffer.size(), &m_domain);
m_language = *it;
return;
}