summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kchooseimportexportdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/dialogs/kchooseimportexportdlg.cpp
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-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/kchooseimportexportdlg.cpp')
-rw-r--r--kmymoney2/dialogs/kchooseimportexportdlg.cpp34
1 files changed, 15 insertions, 19 deletions
diff --git a/kmymoney2/dialogs/kchooseimportexportdlg.cpp b/kmymoney2/dialogs/kchooseimportexportdlg.cpp
index 0c390a8..1038bf1 100644
--- a/kmymoney2/dialogs/kchooseimportexportdlg.cpp
+++ b/kmymoney2/dialogs/kchooseimportexportdlg.cpp
@@ -19,17 +19,13 @@
***************************************************************************/
#include <kglobal.h>
#include <klocale.h>
-#if QT_VERSION > 300
#include <kstandarddirs.h>
-#else
-#include <kstddirs.h>
-#endif
-#include <qpixmap.h>
+#include <tqpixmap.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
#include <kglobal.h>
#include <kconfig.h>
@@ -37,10 +33,10 @@
#include "kchooseimportexportdlg.h"
-KChooseImportExportDlg::KChooseImportExportDlg(int type, QWidget *parent, const char *name )
- : KChooseImportExportDlgDecl(parent,name, true)
+KChooseImportExportDlg::KChooseImportExportDlg(int type, TQWidget *tqparent, const char *name )
+ : KChooseImportExportDlgDecl(tqparent,name, true)
{
- QString filename;
+ TQString filename;
if (type==0) { // import
topLabel->setText(i18n("Please choose the type of import you wish to perform. A simple explanation\n"
@@ -60,11 +56,11 @@ KChooseImportExportDlg::KChooseImportExportDlg(int type, QWidget *parent, const
readConfig();
slotTypeActivated(m_lastType);
- typeCombo->setCurrentItem(((m_lastType=="QIF") ? 0 : 1));
+ typeCombo->setCurrentItem(((m_lastType=="TQIF") ? 0 : 1));
- connect(typeCombo, SIGNAL(activated(const QString&)), this, SLOT(slotTypeActivated(const QString&)));
- connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
- connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
+ connect(typeCombo, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(slotTypeActivated(const TQString&)));
+ connect(okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()));
+ connect(cancelButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
}
KChooseImportExportDlg::~KChooseImportExportDlg()
@@ -72,10 +68,10 @@ KChooseImportExportDlg::~KChooseImportExportDlg()
writeConfig();
}
-void KChooseImportExportDlg::slotTypeActivated(const QString& text)
+void KChooseImportExportDlg::slotTypeActivated(const TQString& text)
{
- if (text=="QIF") {
- descriptionLabel->setText(i18n("QIF files are created by the popular accounting program Quicken.\n"
+ if (text=="TQIF") {
+ descriptionLabel->setText(i18n("TQIF files are created by the popular accounting program Quicken.\n"
"Another dialog will appear, if you choose this type, asking for further\n"
"information relevant to the Quicken format."));
} else {
@@ -85,7 +81,7 @@ void KChooseImportExportDlg::slotTypeActivated(const QString& text)
}
}
-QString KChooseImportExportDlg::importExportType(void)
+TQString KChooseImportExportDlg::importExportType(void)
{
return typeCombo->currentText();
}