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/dialogs/kgncimportoptionsdlg.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/dialogs/kgncimportoptionsdlg.cpp')
-rw-r--r-- | kmymoney2/dialogs/kgncimportoptionsdlg.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/dialogs/kgncimportoptionsdlg.cpp b/kmymoney2/dialogs/kgncimportoptionsdlg.cpp index e11ff69..9aaf5b6 100644 --- a/kmymoney2/dialogs/kgncimportoptionsdlg.cpp +++ b/kmymoney2/dialogs/kgncimportoptionsdlg.cpp @@ -17,11 +17,11 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qcheckbox.h> -#include <qlineedit.h> -#include <qlayout.h> -#include <qapplication.h> -#include <qcombobox.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> +#include <tqlayout.h> +#include <tqapplication.h> +#include <tqcombobox.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -35,8 +35,8 @@ #include "kgncimportoptionsdlg.h" // dialog constructor -KGncImportOptionsDlg::KGncImportOptionsDlg(QWidget *parent, const char *name) - : KGncImportOptionsDlgDecl(parent, name) +KGncImportOptionsDlg::KGncImportOptionsDlg(TQWidget *tqparent, const char *name) + : KGncImportOptionsDlgDecl(tqparent, name) { buttonInvestGroup->setRadioButtonExclusive (true); buttonInvestGroup->setButton (0); @@ -50,7 +50,7 @@ KGncImportOptionsDlg::KGncImportOptionsDlg(QWidget *parent, const char *name) checkDebugXML->setChecked (false); checkAnonymize->setChecked (false); - connect (checkDecode, SIGNAL(toggled(bool)), this, SLOT(slotDecodeOptionChanged(bool))); + connect (checkDecode, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotDecodeOptionChanged(bool))); } KGncImportOptionsDlg::~KGncImportOptionsDlg() @@ -71,12 +71,12 @@ void KGncImportOptionsDlg::slotDecodeOptionChanged(bool isOn) { // try to get the others in some sort of order of likelihood void KGncImportOptionsDlg::buildCodecList () { - m_localeCodec = QTextCodec::codecForLocale(); + m_localeCodec = TQTextCodec::codecForLocale(); m_codecList.setAutoDelete (true); // retrieve all codec pointers - QTextCodec *codec; + TQTextCodec *codec; unsigned int i; - for (i = 0; (codec = QTextCodec::codecForIndex(i)); i++) { + for (i = 0; (codec = TQTextCodec::codecForIndex(i)); i++) { int rank; if (codec == m_localeCodec) rank = 999; // ensure locale rank comes first else rank = codec->heuristicNameMatch(m_localeCodec->name()); @@ -86,7 +86,7 @@ void KGncImportOptionsDlg::buildCodecList () { } m_codecList.sort(); for (i = 0; i < m_codecList.count(); i++) { - QString name (m_codecList.at(i)->second->name()); + TQString name (m_codecList.at(i)->second->name()); comboDecode->insertItem (name); } } @@ -102,8 +102,8 @@ int codecDataList::compareItems (void *a, void *b) { return (1); } // ranks are equal, sort on name, case insensitive - QString sa(pa->second->name()); - QString sb(pb->second->name()); + TQString sa(pa->second->name()); + TQString sb(pb->second->name()); if (sa.lower() > sb.lower()) { return (1); } else { @@ -112,7 +112,7 @@ int codecDataList::compareItems (void *a, void *b) { } // return selected codec or 0 -QTextCodec* KGncImportOptionsDlg::decodeOption(void) { +TQTextCodec* KGncImportOptionsDlg::decodeOption(void) { if (!checkDecode->isChecked()) { return (0); } else { |