summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kimportdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/kimportdlg.cpp')
-rw-r--r--kmymoney2/dialogs/kimportdlg.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/kmymoney2/dialogs/kimportdlg.cpp b/kmymoney2/dialogs/kimportdlg.cpp
index c9cc2d5..e8489d2 100644
--- a/kmymoney2/dialogs/kimportdlg.cpp
+++ b/kmymoney2/dialogs/kimportdlg.cpp
@@ -21,13 +21,13 @@
// ----------------------------------------------------------------------------
// QT Headers
-#include <qlineedit.h>
-#include <qtextstream.h>
-#include <qprogressbar.h>
-#include <qlabel.h>
-#include <qbuttongroup.h>
-#include <qpixmap.h>
-#include <qapplication.h>
+#include <tqlineedit.h>
+#include <tqtextstream.h>
+#include <tqprogressbar.h>
+#include <tqlabel.h>
+#include <tqbuttongroup.h>
+#include <tqpixmap.h>
+#include <tqapplication.h>
// ----------------------------------------------------------------------------
// KDE Headers
@@ -51,8 +51,8 @@
#include "mymoneyqifprofileeditor.h"
#include "../converter/mymoneyqifprofile.h"
-KImportDlg::KImportDlg(QWidget *parent, const char * name)
- : KImportDlgDecl(parent, name, TRUE)
+KImportDlg::KImportDlg(TQWidget *tqparent, const char * name)
+ : KImportDlgDecl(tqparent, name, TRUE)
{
// Set all the last used options
readConfig();
@@ -64,32 +64,32 @@ KImportDlg::KImportDlg(QWidget *parent, const char * name)
KIconLoader* il = KGlobal::iconLoader();
KGuiItem okButtenItem( i18n( "&Import" ),
- QIconSet(il->loadIcon("fileimport", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("fileimport", KIcon::Small, KIcon::SizeSmall)),
i18n("Start operation"),
i18n("Use this to start the import operation"));
m_qbuttonOk->setGuiItem(okButtenItem);
KGuiItem browseButtenItem( i18n( "&Browse..." ),
- QIconSet(il->loadIcon("fileopen", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("fileopen", KIcon::Small, KIcon::SizeSmall)),
i18n("Select filename"),
i18n("Use this to select a filename to export to"));
m_qbuttonBrowse->setGuiItem(browseButtenItem);
KGuiItem newButtenItem( i18n( "&New..." ),
- QIconSet(il->loadIcon("filenew", KIcon::Small, KIcon::SizeSmall)),
+ TQIconSet(il->loadIcon("filenew", KIcon::Small, KIcon::SizeSmall)),
i18n("Create a new profile"),
i18n("Use this to open the profile editor"));
m_profileEditorButton->setGuiItem(newButtenItem);
// connect the buttons to their functionality
- connect(m_qbuttonBrowse, SIGNAL( clicked() ), this, SLOT( slotBrowse() ) );
- connect(m_qbuttonOk, SIGNAL(clicked()), this, SLOT(slotOkClicked()));
- connect(m_qbuttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
- connect(m_profileEditorButton, SIGNAL(clicked()), this, SLOT(slotNewProfile()));
+ connect(m_qbuttonBrowse, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotBrowse() ) );
+ connect(m_qbuttonOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOkClicked()));
+ connect(m_qbuttonCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()));
+ connect(m_profileEditorButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewProfile()));
// connect the change signals to the check slot and perform initial check
- connect(m_qlineeditFile, SIGNAL(textChanged(const QString&)), this,
- SLOT(slotFileTextChanged(const QString&)));
+ connect(m_qlineeditFile, TQT_SIGNAL(textChanged(const TQString&)), this,
+ TQT_SLOT(slotFileTextChanged(const TQString&)));
// setup button enable status
slotFileTextChanged(m_qlineeditFile->text());
@@ -107,11 +107,11 @@ void KImportDlg::slotBrowse()
tmpprofile.loadProfile("Profile-" + profile());
KFileDialog dialog(KGlobalSettings::documentPath(),
- i18n("%1|Import files\n%2|All files (*.*)").arg(tmpprofile.filterFileType()).arg("*"),
+ i18n("%1|Import files\n%2|All files (*.*)").tqarg(tmpprofile.filterFileType()).tqarg("*"),
this, i18n("Import File..."), true);
dialog.setMode(KFile::File | KFile::ExistingOnly);
- if(dialog.exec() == QDialog::Accepted) {
+ if(dialog.exec() == TQDialog::Accepted) {
#if KDE_IS_VERSION(3,4,0)
m_qlineeditFile->setText(dialog.selectedURL().pathOrURL());
#else
@@ -145,9 +145,9 @@ void KImportDlg::writeConfig(void)
}
/** Make sure the text input is ok */
-void KImportDlg::slotFileTextChanged(const QString& text)
+void KImportDlg::slotFileTextChanged(const TQString& text)
{
- if (!text.isEmpty() && KIO::NetAccess::exists(text, true, qApp->mainWidget())) {
+ if (!text.isEmpty() && KIO::NetAccess::exists(text, true, tqApp->mainWidget())) {
// m_qcomboboxDateFormat->setEnabled(true);
m_qbuttonOk->setEnabled(true);
m_qlineeditFile->setText(text);
@@ -159,7 +159,7 @@ void KImportDlg::slotFileTextChanged(const QString& text)
void KImportDlg::slotNewProfile(void)
{
- MyMoneyQifProfileEditor* editor = new MyMoneyQifProfileEditor(true, this, "QIF Profile Editor");
+ MyMoneyQifProfileEditor* editor = new MyMoneyQifProfileEditor(true, this, "TQIF Profile Editor");
if(editor->exec()) {
m_profileComboBox->setCurrentText(editor->selectedProfile());
@@ -169,7 +169,7 @@ void KImportDlg::slotNewProfile(void)
delete editor;
}
-void KImportDlg::slotSelectProfile(const QString& profile)
+void KImportDlg::slotSelectProfile(const TQString& profile)
{
m_profileComboBox->setCurrentText(profile);
loadProfiles();
@@ -183,11 +183,11 @@ void KImportDlg::loadProfiles(const bool selectLast)
edit->slotOk();
delete edit;
- QString current = m_profileComboBox->currentText();
+ TQString current = m_profileComboBox->currentText();
m_profileComboBox->clear();
- QStringList list;
+ TQStringList list;
KConfig* config = KGlobal::config();
config->setGroup("Profiles");
@@ -201,20 +201,20 @@ void KImportDlg::loadProfiles(const bool selectLast)
}
m_profileComboBox->setCurrentItem(0);
- if(list.contains(current) > 0) {
+ if(list.tqcontains(current) > 0) {
m_profileComboBox->setCurrentText(current);
}
}
-void KImportDlg::addCategories(QStringList& strList, const QString& id, const QString& leadIn) const
+void KImportDlg::addCategories(TQStringList& strList, const TQString& id, const TQString& leadIn) const
{
MyMoneyFile *file = MyMoneyFile::instance();
- QString name;
+ TQString name;
MyMoneyAccount account = file->account(id);
- QStringList accList = account.accountList();
- QStringList::ConstIterator it_a;
+ TQStringList accList = account.accountList();
+ TQStringList::ConstIterator it_a;
for(it_a = accList.begin(); it_a != accList.end(); ++it_a) {
account = file->account(*it_a);