diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/kmymoneyglobalsettings.cpp | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
TQt4 port kmymoney
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/kmymoneyglobalsettings.cpp')
-rw-r--r-- | kmymoney2/kmymoneyglobalsettings.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kmymoney2/kmymoneyglobalsettings.cpp b/kmymoney2/kmymoneyglobalsettings.cpp index 2dcd964..8daaa2f 100644 --- a/kmymoney2/kmymoneyglobalsettings.cpp +++ b/kmymoney2/kmymoneyglobalsettings.cpp @@ -17,7 +17,7 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qregexp.h> +#include <tqregexp.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -29,7 +29,7 @@ #include <kmymoney/kmymoneyglobalsettings.h> -QFont KMyMoneyGlobalSettings::listCellFont(void) +TQFont KMyMoneyGlobalSettings::listCellFont(void) { if(useSystemFont()) { return KGlobalSettings::generalFont(); @@ -38,10 +38,10 @@ QFont KMyMoneyGlobalSettings::listCellFont(void) } } -QFont KMyMoneyGlobalSettings::listHeaderFont(void) +TQFont KMyMoneyGlobalSettings::listHeaderFont(void) { if(useSystemFont()) { - QFont font = KGlobalSettings::generalFont(); + TQFont font = KGlobalSettings::generalFont(); font.setBold(true); return font; } else { @@ -49,7 +49,7 @@ QFont KMyMoneyGlobalSettings::listHeaderFont(void) } } -QColor KMyMoneyGlobalSettings::listColor(void) +TQColor KMyMoneyGlobalSettings::listColor(void) { if(useSystemColors()) return KGlobalSettings::baseColor(); @@ -57,7 +57,7 @@ QColor KMyMoneyGlobalSettings::listColor(void) return KMyMoneySettings::listColor(); } -QColor KMyMoneyGlobalSettings::listBGColor(void) +TQColor KMyMoneyGlobalSettings::listBGColor(void) { if(useSystemColors()) return KGlobalSettings::alternateBackgroundColor(); @@ -65,19 +65,19 @@ QColor KMyMoneyGlobalSettings::listBGColor(void) return KMyMoneySettings::listBGColor(); } -QStringList KMyMoneyGlobalSettings::itemList(void) +TQStringList KMyMoneyGlobalSettings::itemList(void) { bool prevValue = self()->useDefaults(true); - QStringList all = QStringList::split(",", KMyMoneySettings::itemList()); + TQStringList all = TQStringList::split(",", KMyMoneySettings::itemList()); self()->useDefaults(prevValue); - QStringList list = QStringList::split(",", KMyMoneySettings::itemList()); + TQStringList list = TQStringList::split(",", KMyMoneySettings::itemList()); // now add all from 'all' that are missing in 'list' - QRegExp exp("-?(\\d+)"); - QStringList::iterator it_s; + TQRegExp exp("-?(\\d+)"); + TQStringList::iterator it_s; for(it_s = all.begin(); it_s != all.end(); ++it_s) { exp.search(*it_s); - if(!list.contains(exp.cap(1)) && !list.contains(QString("-%1").arg(exp.cap(1)))) { + if(!list.tqcontains(exp.cap(1)) && !list.tqcontains(TQString("-%1").tqarg(exp.cap(1)))) { list << *it_s; } } |