diff options
author | Michele Calgaro <[email protected]> | 2024-01-04 10:29:46 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-07 14:51:21 +0900 |
commit | 3a528d873ff72828fb9b19bed38a2b869b449089 (patch) | |
tree | 9b72c543b078fb622b3dbcdf1c397ae899433638 /kmymoney2/dialogs | |
parent | 04ddc8237ccd12dcc44de5d1f67a99bba019eb2a (diff) | |
download | kmymoney-3a528d873ff72828fb9b19bed38a2b869b449089.tar.gz kmymoney-3a528d873ff72828fb9b19bed38a2b869b449089.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit e84ff3d61520e4200f987d3a0b6bea570b2e8b32)
Diffstat (limited to 'kmymoney2/dialogs')
44 files changed, 446 insertions, 446 deletions
diff --git a/kmymoney2/dialogs/investtransactioneditor.cpp b/kmymoney2/dialogs/investtransactioneditor.cpp index 9e26734..469423d 100644 --- a/kmymoney2/dialogs/investtransactioneditor.cpp +++ b/kmymoney2/dialogs/investtransactioneditor.cpp @@ -198,45 +198,45 @@ void InvestTransactionEditor::createEditWidgets(void) { KMyMoneyActivityCombo* activity = new KMyMoneyActivityCombo(); m_editWidgets["activity"] = activity; - connect(activity, TQT_SIGNAL(activitySelected(MyMoneySplit::investTransactionTypeE)), this, TQT_SLOT(slotUpdateActivity(MyMoneySplit::investTransactionTypeE))); - connect(activity, TQT_SIGNAL(activitySelected(MyMoneySplit::investTransactionTypeE)), this, TQT_SLOT(slotUpdateButtonState())); + connect(activity, TQ_SIGNAL(activitySelected(MyMoneySplit::investTransactionTypeE)), this, TQ_SLOT(slotUpdateActivity(MyMoneySplit::investTransactionTypeE))); + connect(activity, TQ_SIGNAL(activitySelected(MyMoneySplit::investTransactionTypeE)), this, TQ_SLOT(slotUpdateButtonState())); m_editWidgets["postdate"] = new kMyMoneyDateInput; - connect(m_editWidgets["postdate"], TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotUpdateButtonState())); + connect(m_editWidgets["postdate"], TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotUpdateButtonState())); KMyMoneySecurity* security = new KMyMoneySecurity; security->setHint(i18n("Security")); m_editWidgets["security"] = security; - connect(security, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdateSecurity(const TQString&))); - connect(security, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(security, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SLOT(slotCreateSecurity(const TQString&, TQString&))); - connect(security, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); + connect(security, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdateSecurity(const TQString&))); + connect(security, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(security, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SLOT(slotCreateSecurity(const TQString&, TQString&))); + connect(security, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); KMyMoneyCategory* asset = new KMyMoneyCategory(0, 0, false); asset->setHint(i18n("Asset account")); m_editWidgets["asset-account"] = asset; - connect(asset, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(asset, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); + connect(asset, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(asset, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); KMyMoneyCategory* fees = new KMyMoneyCategory(0, 0, true); fees->setHint(i18n("Fees")); m_editWidgets["fee-account"] = fees; - connect(fees, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdateFeeCategory(const TQString&))); - connect(fees, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(fees, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateFeeVisibility(const TQString&))); - connect(fees, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SLOT(slotCreateFeeCategory(const TQString&, TQString&))); - connect(fees, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); - connect(fees->splitButton(), TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditFeeSplits())); + connect(fees, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdateFeeCategory(const TQString&))); + connect(fees, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(fees, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateFeeVisibility(const TQString&))); + connect(fees, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SLOT(slotCreateFeeCategory(const TQString&, TQString&))); + connect(fees, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); + connect(fees->splitButton(), TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditFeeSplits())); KMyMoneyCategory* interest = new KMyMoneyCategory(0, 0, true); interest->setHint(i18n("Interest")); m_editWidgets["interest-account"] = interest; - connect(interest, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdateInterestCategory(const TQString&))); - connect(interest, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(interest, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateInterestVisibility(const TQString&))); - connect(interest, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SLOT(slotCreateInterestCategory(const TQString&, TQString&))); - connect(interest, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); - connect(interest->splitButton(), TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditInterestSplits())); + connect(interest, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdateInterestCategory(const TQString&))); + connect(interest, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(interest, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateInterestVisibility(const TQString&))); + connect(interest, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SLOT(slotCreateInterestCategory(const TQString&, TQString&))); + connect(interest, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); + connect(interest->splitButton(), TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditInterestSplits())); KTextEdit* memo = new KTextEdit; memo->setTabChangesFocus(true); @@ -246,36 +246,36 @@ void InvestTransactionEditor::createEditWidgets(void) value->setHint(i18n("Shares")); value->setResetButtonVisible(false); m_editWidgets["shares"] = value; - connect(value, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(value, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateTotalAmount())); + connect(value, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(value, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateTotalAmount())); value = new kMyMoneyEdit; value->setHint(i18n("Price")); value->setResetButtonVisible(false); value->setPrecision(KMyMoneyGlobalSettings::pricePrecision()); m_editWidgets["price"] = value; - connect(value, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(value, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateTotalAmount())); + connect(value, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(value, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateTotalAmount())); value = new kMyMoneyEdit; // TODO once we have the selected transactions as array of Transaction // we can allow multiple splits for fee and interest value->setResetButtonVisible(false); m_editWidgets["fee-amount"] = value; - connect(value, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(value, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateTotalAmount())); + connect(value, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(value, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateTotalAmount())); value = new kMyMoneyEdit; // TODO once we have the selected transactions as array of Transaction // we can allow multiple splits for fee and interest value->setResetButtonVisible(false); m_editWidgets["interest-amount"] = value; - connect(value, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(value, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateTotalAmount())); + connect(value, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(value, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateTotalAmount())); KMyMoneyReconcileCombo* reconcile = new KMyMoneyReconcileCombo; m_editWidgets["status"] = reconcile; - connect(reconcile, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); + connect(reconcile, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); KMyMoneyRegister::TQWidgetContainer::iterator it_w; for(it_w = m_editWidgets.begin(); it_w != m_editWidgets.end(); ++it_w) { @@ -327,12 +327,12 @@ void InvestTransactionEditor::createEditWidgets(void) int InvestTransactionEditor::slotEditFeeSplits(void) { - return editSplits("fee-account", "fee-amount", m_feeSplits, false, TQT_SLOT(slotEditFeeSplits())); + return editSplits("fee-account", "fee-amount", m_feeSplits, false, TQ_SLOT(slotEditFeeSplits())); } int InvestTransactionEditor::slotEditInterestSplits(void) { - return editSplits("interest-account", "interest-amount", m_interestSplits, true, TQT_SLOT(slotEditInterestSplits())); + return editSplits("interest-account", "interest-amount", m_interestSplits, true, TQ_SLOT(slotEditInterestSplits())); } int InvestTransactionEditor::editSplits(const TQString& categoryWidgetName, const TQString& amountWidgetName, TQValueList<MyMoneySplit>& splits, bool isIncome, const char* slotEditSplits) @@ -381,7 +381,7 @@ int InvestTransactionEditor::editSplits(const TQString& categoryWidgetName, cons 0, m_priceInfo, m_regForm); - // connect(dlg, TQT_SIGNAL(newCategory(MyMoneyAccount&)), this, TQT_SIGNAL(newCategory(MyMoneyAccount&))); + // connect(dlg, TQ_SIGNAL(newCategory(MyMoneyAccount&)), this, TQ_SIGNAL(newCategory(MyMoneyAccount&))); if((rc = dlg->exec()) == TQDialog::Accepted) { transaction = dlg->transaction(); @@ -529,13 +529,13 @@ void InvestTransactionEditor::slotReloadEditWidgets(void) aSet.clear(); aSet.addAccountGroup(MyMoneyAccount::Income); aSet.load(interest->selector()); - setupCategoryWidget(interest, m_interestSplits, id, TQT_SLOT(slotEditInterestSplits())); + setupCategoryWidget(interest, m_interestSplits, id, TQ_SLOT(slotEditInterestSplits())); // fee-account aSet.clear(); aSet.addAccountGroup(MyMoneyAccount::Expense); aSet.load(fees->selector()); - setupCategoryWidget(fees, m_feeSplits, id, TQT_SLOT(slotEditFeeSplits())); + setupCategoryWidget(fees, m_feeSplits, id, TQ_SLOT(slotEditFeeSplits())); // security aSet.clear(); @@ -609,14 +609,14 @@ void InvestTransactionEditor::loadEditWidgets(KMyMoneyRegister::Action /* action aSet.clear(); aSet.addAccountGroup(MyMoneyAccount::Income); aSet.load(interest->selector()); - setupCategoryWidget(interest, m_interestSplits, id, TQT_SLOT(slotEditInterestSplits())); + setupCategoryWidget(interest, m_interestSplits, id, TQ_SLOT(slotEditInterestSplits())); slotUpdateInterestVisibility(interest->currentText()); // fee-account aSet.clear(); aSet.addAccountGroup(MyMoneyAccount::Expense); aSet.load(fees->selector()); - setupCategoryWidget(fees, m_feeSplits, id, TQT_SLOT(slotEditFeeSplits())); + setupCategoryWidget(fees, m_feeSplits, id, TQ_SLOT(slotEditFeeSplits())); slotUpdateFeeVisibility(fees->currentText()); // memo diff --git a/kmymoney2/dialogs/kaccountselectdlg.cpp b/kmymoney2/dialogs/kaccountselectdlg.cpp index 199cc2e..15cea8c 100644 --- a/kmymoney2/dialogs/kaccountselectdlg.cpp +++ b/kmymoney2/dialogs/kaccountselectdlg.cpp @@ -85,12 +85,12 @@ KAccountSelectDlg::KAccountSelectDlg(const KMyMoneyUtils::categoryTypeE accountT m_kButtonAbort->setGuiItem(abortButtenItem); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotReloadWidget())); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotReloadWidget())); - connect(m_createButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCreateAccount())); - connect(m_qbuttonOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); - connect(m_qbuttonCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(m_kButtonAbort, TQT_SIGNAL(clicked()), this, TQT_SLOT(abort())); + connect(m_createButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCreateAccount())); + connect(m_qbuttonOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); + connect(m_qbuttonCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(m_kButtonAbort, TQ_SIGNAL(clicked()), this, TQ_SLOT(abort())); } KAccountSelectDlg::~KAccountSelectDlg() diff --git a/kmymoney2/dialogs/kbackupdlg.cpp b/kmymoney2/dialogs/kbackupdlg.cpp index bb9fc53..235d5bb 100644 --- a/kmymoney2/dialogs/kbackupdlg.cpp +++ b/kmymoney2/dialogs/kbackupdlg.cpp @@ -64,9 +64,9 @@ KBackupDlg::KBackupDlg( TQWidget* parent, const char* name/*, bool modal*/) i18n("Use this to browse to the mount point.")); chooseButton->setGuiItem(chooseButtenItem); - connect(chooseButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseButtonClicked())); - connect(btnOK,TQT_SIGNAL(clicked()),this,TQT_SLOT(accept())); - connect(btnCancel,TQT_SIGNAL(clicked()),this,TQT_SLOT(reject())); + connect(chooseButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(chooseButtonClicked())); + connect(btnOK,TQ_SIGNAL(clicked()),this,TQ_SLOT(accept())); + connect(btnCancel,TQ_SIGNAL(clicked()),this,TQ_SLOT(reject())); } KBackupDlg::~KBackupDlg() diff --git a/kmymoney2/dialogs/kbalancechartdlg.cpp b/kmymoney2/dialogs/kbalancechartdlg.cpp index 64ee282..8bc02a4 100644 --- a/kmymoney2/dialogs/kbalancechartdlg.cpp +++ b/kmymoney2/dialogs/kbalancechartdlg.cpp @@ -210,8 +210,8 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, TQWidget* pare buttonClose->setGuiItem(KStdGuiItem::Close); Layout1->addWidget( buttonClose ); - // connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); - connect( buttonClose, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); + // connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) ); + connect( buttonClose, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) ); resize( TQSize(700, 500).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); diff --git a/kmymoney2/dialogs/kchooseimportexportdlg.cpp b/kmymoney2/dialogs/kchooseimportexportdlg.cpp index 029f168..40ea1ba 100644 --- a/kmymoney2/dialogs/kchooseimportexportdlg.cpp +++ b/kmymoney2/dialogs/kchooseimportexportdlg.cpp @@ -63,9 +63,9 @@ KChooseImportExportDlg::KChooseImportExportDlg(int type, TQWidget *parent, const slotTypeActivated(m_lastType); typeCombo->setCurrentItem(((m_lastType=="QIF") ? 0 : 1)); - 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())); + connect(typeCombo, TQ_SIGNAL(activated(const TQString&)), this, TQ_SLOT(slotTypeActivated(const TQString&))); + connect(okButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); + connect(cancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); } KChooseImportExportDlg::~KChooseImportExportDlg() diff --git a/kmymoney2/dialogs/kcsvprogressdlg.cpp b/kmymoney2/dialogs/kcsvprogressdlg.cpp index c8c4f99..9de4733 100644 --- a/kmymoney2/dialogs/kcsvprogressdlg.cpp +++ b/kmymoney2/dialogs/kcsvprogressdlg.cpp @@ -71,11 +71,11 @@ KCsvProgressDlg::KCsvProgressDlg(int type, MyMoneyAccount *account, TQWidget *pa readConfig(); - connect(m_qbuttonBrowse, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotBrowseClicked())); - connect(m_qbuttonRun, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRunClicked())); - connect(m_qlineeditFile, TQT_SIGNAL(textChanged(const TQString&)), this, - TQT_SLOT(slotFileTextChanged(const TQString&))); - connect(m_qbuttonOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); + connect(m_qbuttonBrowse, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotBrowseClicked())); + connect(m_qbuttonRun, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRunClicked())); + connect(m_qlineeditFile, TQ_SIGNAL(textChanged(const TQString&)), this, + TQ_SLOT(slotFileTextChanged(const TQString&))); + connect(m_qbuttonOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); } /** Simple destructor */ @@ -119,8 +119,8 @@ void KCsvProgressDlg::performExport(void) if (m_mymoneyaccount) { // Connect to the provided signals in MyMoneyAccount // These signals will be emitted at appropriate times. - connect(m_mymoneyaccount, TQT_SIGNAL(signalProgressCount(int)), m_qprogressbar, TQT_SLOT(setTotalSteps(int))); - connect(m_mymoneyaccount, TQT_SIGNAL(signalProgress(int)), this, TQT_SLOT(slotSetProgress(int))); + connect(m_mymoneyaccount, TQ_SIGNAL(signalProgressCount(int)), m_qprogressbar, TQ_SLOT(setTotalSteps(int))); + connect(m_mymoneyaccount, TQ_SIGNAL(signalProgress(int)), this, TQ_SLOT(slotSetProgress(int))); int nTransCount = 0; @@ -164,8 +164,8 @@ void KCsvProgressDlg::performImport(void) if (m_mymoneyaccount) { // Connect to the provided signals in MyMoneyAccount // These signals will be emitted at appropriate times. - connect(m_mymoneyaccount, TQT_SIGNAL(signalProgressCount(int)), m_qprogressbar, TQT_SLOT(setTotalSteps(int))); - connect(m_mymoneyaccount, TQT_SIGNAL(signalProgress(int)), this, TQT_SLOT(slotSetProgress(int))); + connect(m_mymoneyaccount, TQ_SIGNAL(signalProgressCount(int)), m_qprogressbar, TQ_SLOT(setTotalSteps(int))); + connect(m_mymoneyaccount, TQ_SIGNAL(signalProgress(int)), this, TQ_SLOT(slotSetProgress(int))); int nTransCount = 0; diff --git a/kmymoney2/dialogs/kcurrencycalculator.cpp b/kmymoney2/dialogs/kcurrencycalculator.cpp index bd44f4c..8ae6c52 100644 --- a/kmymoney2/dialogs/kcurrencycalculator.cpp +++ b/kmymoney2/dialogs/kcurrencycalculator.cpp @@ -161,13 +161,13 @@ KCurrencyCalculator::KCurrencyCalculator(const MyMoneySecurity& from, const MyMo m_conversionRate->setPrecision(KMyMoneyGlobalSettings::pricePrecision()); - connect(m_amountButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetToAmount())); - connect(m_rateButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetExchangeRate())); + connect(m_amountButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSetToAmount())); + connect(m_rateButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSetExchangeRate())); - connect(m_toAmount, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateResult(const TQString&))); - connect(m_conversionRate, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateRate(const TQString&))); - connect(m_cancelButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(m_okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); + connect(m_toAmount, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateResult(const TQString&))); + connect(m_conversionRate, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateRate(const TQString&))); + connect(m_cancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(m_okButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); // use this as the default m_amountButton->animateClick(); diff --git a/kmymoney2/dialogs/kcurrencyeditdlg.cpp b/kmymoney2/dialogs/kcurrencyeditdlg.cpp index 6424a0e..c63e8b0 100644 --- a/kmymoney2/dialogs/kcurrencyeditdlg.cpp +++ b/kmymoney2/dialogs/kcurrencyeditdlg.cpp @@ -69,18 +69,18 @@ KCurrencyEditDlg::KCurrencyEditDlg(TQWidget *parent, const char *name ) : // FIXME: the online source table currently has no functionality m_onlineSourceTable->hide(); - connect(m_currencyList, TQT_SIGNAL(rightButtonPressed(TQListViewItem* , const TQPoint&, int)), - this, TQT_SLOT(slotListClicked(TQListViewItem*, const TQPoint&, int))); - connect(m_currencyList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectCurrency(TQListViewItem*))); + connect(m_currencyList, TQ_SIGNAL(rightButtonPressed(TQListViewItem* , const TQPoint&, int)), + this, TQ_SLOT(slotListClicked(TQListViewItem*, const TQPoint&, int))); + connect(m_currencyList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(slotSelectCurrency(TQListViewItem*))); - connect(m_currencyList, TQT_SIGNAL(itemRenamed(TQListViewItem*,int,const TQString&)), this, TQT_SIGNAL(renameCurrency(TQListViewItem*,int,const TQString&))); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotLoadCurrencies())); + connect(m_currencyList, TQ_SIGNAL(itemRenamed(TQListViewItem*,int,const TQString&)), this, TQ_SIGNAL(renameCurrency(TQListViewItem*,int,const TQString&))); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotLoadCurrencies())); slotLoadCurrencies(); - connect(m_baseCurrencyButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSelectBaseCurrency())); - connect(buttonClose, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClose())); + connect(m_baseCurrencyButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSelectBaseCurrency())); + connect(buttonClose, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClose())); // FIXME: currently, no online help available buttonHelp->hide(); @@ -89,7 +89,7 @@ KCurrencyEditDlg::KCurrencyEditDlg(TQWidget *parent, const char *name ) : m_description->hide(); resize(width()-1, height()-1); - TQTimer::singleShot(10, this, TQT_SLOT(timerDone())); + TQTimer::singleShot(10, this, TQ_SLOT(timerDone())); } void KCurrencyEditDlg::timerDone(void) diff --git a/kmymoney2/dialogs/keditequityentrydlg.cpp b/kmymoney2/dialogs/keditequityentrydlg.cpp index edfe43f..1ae9ec0 100644 --- a/kmymoney2/dialogs/keditequityentrydlg.cpp +++ b/kmymoney2/dialogs/keditequityentrydlg.cpp @@ -49,15 +49,15 @@ KEditEquityEntryDlg::KEditEquityEntryDlg(const MyMoneySecurity& selectedSecurity { m_selectedSecurity = selectedSecurity; - connect(btnOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOKClicked())); - connect(btnCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(edtEquityName, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotDataChanged())); - connect(edtMarketSymbol, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(slotDataChanged())); - connect(edtFraction, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotDataChanged())); - connect(btnAddEntry, TQT_SIGNAL(clicked()), kpvPriceHistory, TQT_SLOT(slotAddPrice())); - connect(btnEditEntry, TQT_SIGNAL(clicked()), kpvPriceHistory, TQT_SLOT(slotEditPrice())); - connect(btnRemoveEntry, TQT_SIGNAL(clicked()), kpvPriceHistory, TQT_SLOT(slotDeletePrice())); - connect(kpvPriceHistory, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectionChanged(TQListViewItem*))); + connect(btnOK, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotOKClicked())); + connect(btnCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(edtEquityName, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotDataChanged())); + connect(edtMarketSymbol, TQ_SIGNAL(textChanged(const TQString &)), this, TQ_SLOT(slotDataChanged())); + connect(edtFraction, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotDataChanged())); + connect(btnAddEntry, TQ_SIGNAL(clicked()), kpvPriceHistory, TQ_SLOT(slotAddPrice())); + connect(btnEditEntry, TQ_SIGNAL(clicked()), kpvPriceHistory, TQ_SLOT(slotEditPrice())); + connect(btnRemoveEntry, TQ_SIGNAL(clicked()), kpvPriceHistory, TQ_SLOT(slotDeletePrice())); + connect(kpvPriceHistory, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(slotSelectionChanged(TQListViewItem*))); //fill in the fields with what we know. edtEquityName->setText(m_selectedSecurity.name()); @@ -88,7 +88,7 @@ KEditEquityEntryDlg::KEditEquityEntryDlg(const MyMoneySecurity& selectedSecurity // force a resize to optimize the layout of all widgets resize(width()-1, height()-1); - TQTimer::singleShot(10, this, TQT_SLOT(slotTimerDone())); + TQTimer::singleShot(10, this, TQ_SLOT(slotTimerDone())); } KEditEquityEntryDlg::~KEditEquityEntryDlg() diff --git a/kmymoney2/dialogs/keditloanwizard.cpp b/kmymoney2/dialogs/keditloanwizard.cpp index 6d126a5..80c9e8f 100644 --- a/kmymoney2/dialogs/keditloanwizard.cpp +++ b/kmymoney2/dialogs/keditloanwizard.cpp @@ -98,9 +98,9 @@ KEditLoanWizard::KEditLoanWizard(const MyMoneyAccount& account, TQWidget *parent setAppropriate(m_editSelectionPage, true); // setup connections - connect(m_effectiveChangeDateEdit, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotCheckPageFinished())); - connect(m_newPaymentEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished())); - connect(m_newInterestRateEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished())); + connect(m_effectiveChangeDateEdit, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotCheckPageFinished())); + connect(m_newPaymentEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished())); + connect(m_newInterestRateEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished())); // make sure, we show the correct start page showPage(m_editIntroPage); diff --git a/kmymoney2/dialogs/keditscheduledlg.cpp b/kmymoney2/dialogs/keditscheduledlg.cpp index e67e680..78102e3 100644 --- a/kmymoney2/dialogs/keditscheduledlg.cpp +++ b/kmymoney2/dialogs/keditscheduledlg.cpp @@ -144,18 +144,18 @@ KEditScheduleDlg::KEditScheduleDlg(const MyMoneySchedule& schedule, TQWidget *pa m_FinalPaymentEdit->setDate(d->m_schedule.endDate()); } - connect(m_RemainingEdit, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotRemainingChanged(int))); - connect(m_FinalPaymentEdit, TQT_SIGNAL(dateChanged(const TQDate&)), - this, TQT_SLOT(slotEndDateChanged(const TQDate&))); - connect(m_frequencyEdit, TQT_SIGNAL(itemSelected(int)), - this, TQT_SLOT(slotFrequencyChanged(int))); - connect(m_frequencyNoEdit, TQT_SIGNAL(valueChanged(int)), - this, TQT_SLOT(slotOccurenceMultiplierChanged(int))); - connect(buttonHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotShowHelp())); + connect(m_RemainingEdit, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotRemainingChanged(int))); + connect(m_FinalPaymentEdit, TQ_SIGNAL(dateChanged(const TQDate&)), + this, TQ_SLOT(slotEndDateChanged(const TQDate&))); + connect(m_frequencyEdit, TQ_SIGNAL(itemSelected(int)), + this, TQ_SLOT(slotFrequencyChanged(int))); + connect(m_frequencyNoEdit, TQ_SIGNAL(valueChanged(int)), + this, TQ_SLOT(slotOccurenceMultiplierChanged(int))); + connect(buttonHelp, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotShowHelp())); // force the initial height to be as small as possible - TQTimer::singleShot(0, this, TQT_SLOT(slotSetupSize())); + TQTimer::singleShot(0, this, TQ_SLOT(slotSetupSize())); // we just hide the variation field for now and enable the logic // once we have a respective member in the MyMoneySchedule object @@ -190,16 +190,16 @@ TransactionEditor* KEditScheduleDlg::startEdit(void) } if(editor) { - connect(editor, TQT_SIGNAL(transactionDataSufficient(bool)), buttonOk, TQT_SLOT(setEnabled(bool))); - connect(editor, TQT_SIGNAL(escapePressed()), buttonCancel, TQT_SLOT(animateClick())); - connect(editor, TQT_SIGNAL(returnPressed()), buttonOk, TQT_SLOT(animateClick())); + connect(editor, TQ_SIGNAL(transactionDataSufficient(bool)), buttonOk, TQ_SLOT(setEnabled(bool))); + connect(editor, TQ_SIGNAL(escapePressed()), buttonCancel, TQ_SLOT(animateClick())); + connect(editor, TQ_SIGNAL(returnPressed()), buttonOk, TQ_SLOT(animateClick())); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), editor, TQT_SLOT(slotReloadEditWidgets())); - // connect(editor, TQT_SIGNAL(finishEdit(const KMyMoneyRegister::SelectedTransactions&)), this, TQT_SLOT(slotLeaveEditMode(const KMyMoneyRegister::SelectedTransactions&))); - connect(editor, TQT_SIGNAL(createPayee(const TQString&, TQString&)), kmymoney2, TQT_SLOT(slotPayeeNew(const TQString&, TQString&))); - connect(editor, TQT_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQT_SLOT(slotCategoryNew(MyMoneyAccount&, const MyMoneyAccount&))); - connect(editor, TQT_SIGNAL(createSecurity(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQT_SLOT(slotInvestmentNew(MyMoneyAccount&, const MyMoneyAccount&))); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), editor, TQT_SLOT(slotReloadEditWidgets())); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), editor, TQ_SLOT(slotReloadEditWidgets())); + // connect(editor, TQ_SIGNAL(finishEdit(const KMyMoneyRegister::SelectedTransactions&)), this, TQ_SLOT(slotLeaveEditMode(const KMyMoneyRegister::SelectedTransactions&))); + connect(editor, TQ_SIGNAL(createPayee(const TQString&, TQString&)), kmymoney2, TQ_SLOT(slotPayeeNew(const TQString&, TQString&))); + connect(editor, TQ_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQ_SLOT(slotCategoryNew(MyMoneyAccount&, const MyMoneyAccount&))); + connect(editor, TQ_SIGNAL(createSecurity(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQ_SLOT(slotInvestmentNew(MyMoneyAccount&, const MyMoneyAccount&))); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), editor, TQ_SLOT(slotReloadEditWidgets())); // create the widgets, place them in the parent and load them with data // setup tab order @@ -281,7 +281,7 @@ TransactionEditor* KEditScheduleDlg::startEdit(void) // connect the postdate modification signal to our update routine kMyMoneyDateInput* dateEdit = dynamic_cast<kMyMoneyDateInput*>(editor->haveWidget("postdate")); if(dateEdit) - connect(dateEdit, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotPostDateChanged(const TQDate&))); + connect(dateEdit, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotPostDateChanged(const TQDate&))); m_nameEdit->setFocus(); @@ -300,7 +300,7 @@ TransactionEditor* KEditScheduleDlg::startEdit(void) d->m_editor = editor; slotSetPaymentMethod(d->m_schedule.paymentType()); - connect(m_paymentMethodEdit, TQT_SIGNAL(itemSelected(int)), this, TQT_SLOT(slotSetPaymentMethod(int))); + connect(m_paymentMethodEdit, TQ_SIGNAL(itemSelected(int)), this, TQ_SLOT(slotSetPaymentMethod(int))); } return editor; diff --git a/kmymoney2/dialogs/kendingbalancedlg.cpp b/kmymoney2/dialogs/kendingbalancedlg.cpp index f84c254..aa11c6e 100644 --- a/kmymoney2/dialogs/kendingbalancedlg.cpp +++ b/kmymoney2/dialogs/kendingbalancedlg.cpp @@ -135,16 +135,16 @@ KEndingBalanceDlg::KEndingBalanceDlg(const MyMoneyAccount& account, TQWidget *pa removePage(m_adjustmentTransactionPage); // connect the signals with the slots - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotReloadEditWidgets())); - connect(m_payeeEdit, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SIGNAL(createPayee(const TQString&, TQString&))); - connect(m_interestCategoryEdit, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SLOT(slotCreateInterestCategory(const TQString&, TQString&))); - connect(m_chargesCategoryEdit, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SLOT(slotCreateChargesCategory(const TQString&, TQString&))); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotReloadEditWidgets())); + connect(m_payeeEdit, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SIGNAL(createPayee(const TQString&, TQString&))); + connect(m_interestCategoryEdit, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SLOT(slotCreateInterestCategory(const TQString&, TQString&))); + connect(m_chargesCategoryEdit, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SLOT(slotCreateChargesCategory(const TQString&, TQString&))); - connect(m_interestEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished(void))); - connect(m_interestCategoryEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished(void))); - connect(m_chargesEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished(void))); - connect(m_chargesCategoryEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished(void))); - connect(m_statementDate, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotUpdateBalances())); + connect(m_interestEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished(void))); + connect(m_interestCategoryEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished(void))); + connect(m_chargesEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished(void))); + connect(m_chargesCategoryEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished(void))); + connect(m_statementDate, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotUpdateBalances())); slotReloadEditWidgets(); @@ -408,10 +408,10 @@ KEndingBalanceLoanDlg::KEndingBalanceLoanDlg(const MyMoneyAccount& account, TQWi removePage(m_interestChargeCheckings); // connect the signals with the slots - connect(m_amortizationTotalEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished(void))); - connect(m_interestTotalEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished(void))); - connect(m_accountEdit, TQT_SIGNAL(stateChanged(void)), this, TQT_SLOT(slotCheckPageFinished(void))); - connect(m_categoryEdit, TQT_SIGNAL(stateChanged(void)), this, TQT_SLOT(slotCheckPageFinished(void))); + connect(m_amortizationTotalEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished(void))); + connect(m_interestTotalEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished(void))); + connect(m_accountEdit, TQ_SIGNAL(stateChanged(void)), this, TQ_SLOT(slotCheckPageFinished(void))); + connect(m_categoryEdit, TQ_SIGNAL(stateChanged(void)), this, TQ_SLOT(slotCheckPageFinished(void))); } KEndingBalanceLoanDlg::~KEndingBalanceLoanDlg() diff --git a/kmymoney2/dialogs/kenterscheduledlg.cpp b/kmymoney2/dialogs/kenterscheduledlg.cpp index bae7247..7fc026b 100644 --- a/kmymoney2/dialogs/kenterscheduledlg.cpp +++ b/kmymoney2/dialogs/kenterscheduledlg.cpp @@ -107,12 +107,12 @@ KEnterScheduleDlg::KEnterScheduleDlg(TQWidget *parent, const MyMoneySchedule& sc m_scheduleName->setText(d->m_schedule.name()); m_type->setText(KMyMoneyUtils::scheduleTypeToString(d->m_schedule.type())); - connect(buttonHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotShowHelp())); - connect(buttonIgnore, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotIgnore())); - connect(buttonSkip, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSkip())); + connect(buttonHelp, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotShowHelp())); + connect(buttonIgnore, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotIgnore())); + connect(buttonSkip, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSkip())); // force the initial height to be as small as possible - TQTimer::singleShot(0, this, TQT_SLOT(slotSetupSize())); + TQTimer::singleShot(0, this, TQ_SLOT(slotSetupSize())); } KEnterScheduleDlg::~KEnterScheduleDlg() @@ -210,16 +210,16 @@ TransactionEditor* KEnterScheduleDlg::startEdit(void) } if(editor) { - connect(editor, TQT_SIGNAL(transactionDataSufficient(bool)), buttonOk, TQT_SLOT(setEnabled(bool))); - connect(editor, TQT_SIGNAL(escapePressed()), buttonCancel, TQT_SLOT(animateClick())); - connect(editor, TQT_SIGNAL(returnPressed()), buttonOk, TQT_SLOT(animateClick())); - - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), editor, TQT_SLOT(slotReloadEditWidgets())); - // connect(editor, TQT_SIGNAL(finishEdit(const KMyMoneyRegister::SelectedTransactions&)), this, TQT_SLOT(slotLeaveEditMode(const KMyMoneyRegister::SelectedTransactions&))); - connect(editor, TQT_SIGNAL(createPayee(const TQString&, TQString&)), kmymoney2, TQT_SLOT(slotPayeeNew(const TQString&, TQString&))); - connect(editor, TQT_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQT_SLOT(slotCategoryNew(MyMoneyAccount&, const MyMoneyAccount&))); - connect(editor, TQT_SIGNAL(createSecurity(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQT_SLOT(slotInvestmentNew(MyMoneyAccount&, const MyMoneyAccount&))); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), editor, TQT_SLOT(slotReloadEditWidgets())); + connect(editor, TQ_SIGNAL(transactionDataSufficient(bool)), buttonOk, TQ_SLOT(setEnabled(bool))); + connect(editor, TQ_SIGNAL(escapePressed()), buttonCancel, TQ_SLOT(animateClick())); + connect(editor, TQ_SIGNAL(returnPressed()), buttonOk, TQ_SLOT(animateClick())); + + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), editor, TQ_SLOT(slotReloadEditWidgets())); + // connect(editor, TQ_SIGNAL(finishEdit(const KMyMoneyRegister::SelectedTransactions&)), this, TQ_SLOT(slotLeaveEditMode(const KMyMoneyRegister::SelectedTransactions&))); + connect(editor, TQ_SIGNAL(createPayee(const TQString&, TQString&)), kmymoney2, TQ_SLOT(slotPayeeNew(const TQString&, TQString&))); + connect(editor, TQ_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQ_SLOT(slotCategoryNew(MyMoneyAccount&, const MyMoneyAccount&))); + connect(editor, TQ_SIGNAL(createSecurity(MyMoneyAccount&, const MyMoneyAccount&)), kmymoney2, TQ_SLOT(slotInvestmentNew(MyMoneyAccount&, const MyMoneyAccount&))); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), editor, TQ_SLOT(slotReloadEditWidgets())); // create the widgets, place them in the parent and load them with data // setup tab order diff --git a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp index adbe044..5c32d2b 100644 --- a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp +++ b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp @@ -137,25 +137,25 @@ KEquityPriceUpdateDlg::KEquityPriceUpdateDlg(TQWidget *parent, const TQString& s addPricePair(currencyIds, true); } - connect(btnOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); - connect(btnCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(btnUpdateSelected, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpdateSelectedClicked())); - connect(btnUpdateAll, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpdateAllClicked())); - - connect(&m_webQuote,TQT_SIGNAL(quote(const TQString&, const TQString&,const TQDate&, const double&)), - this,TQT_SLOT(slotReceivedQuote(const TQString&, const TQString&,const TQDate&, const double&))); - connect(&m_webQuote,TQT_SIGNAL(failed(const TQString&, const TQString&)), - this,TQT_SLOT(slotQuoteFailed(const TQString&, const TQString&))); - connect(&m_webQuote,TQT_SIGNAL(status(const TQString&)), - this,TQT_SLOT(logStatusMessage(const TQString&))); - connect(&m_webQuote,TQT_SIGNAL(error(const TQString&)), - this,TQT_SLOT(logErrorMessage(const TQString&))); - - connect(lvEquityList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotUpdateSelection())); + connect(btnOK, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); + connect(btnCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(btnUpdateSelected, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotUpdateSelectedClicked())); + connect(btnUpdateAll, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotUpdateAllClicked())); + + connect(&m_webQuote,TQ_SIGNAL(quote(const TQString&, const TQString&,const TQDate&, const double&)), + this,TQ_SLOT(slotReceivedQuote(const TQString&, const TQString&,const TQDate&, const double&))); + connect(&m_webQuote,TQ_SIGNAL(failed(const TQString&, const TQString&)), + this,TQ_SLOT(slotQuoteFailed(const TQString&, const TQString&))); + connect(&m_webQuote,TQ_SIGNAL(status(const TQString&)), + this,TQ_SLOT(logStatusMessage(const TQString&))); + connect(&m_webQuote,TQ_SIGNAL(error(const TQString&)), + this,TQ_SLOT(logErrorMessage(const TQString&))); + + connect(lvEquityList, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotUpdateSelection())); // Not implemented yet. btnConfigure->hide(); - //connect(btnConfigure, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConfigureClicked())); + //connect(btnConfigure, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotConfigureClicked())); if ( !securityId.isEmpty() ) { @@ -163,7 +163,7 @@ KEquityPriceUpdateDlg::KEquityPriceUpdateDlg(TQWidget *parent, const TQString& s btnUpdateAll->hide(); // delete layout1; - TQTimer::singleShot(100,this,TQT_SLOT(slotUpdateAllClicked())); + TQTimer::singleShot(100,this,TQ_SLOT(slotUpdateAllClicked())); } // Hide OK button until we have received the first update diff --git a/kmymoney2/dialogs/kexportdlg.cpp b/kmymoney2/dialogs/kexportdlg.cpp index 5170a19..215250a 100644 --- a/kmymoney2/dialogs/kexportdlg.cpp +++ b/kmymoney2/dialogs/kexportdlg.cpp @@ -82,19 +82,19 @@ KExportDlg::KExportDlg(TQWidget *parent) // connect the buttons to their functionality - connect(m_qbuttonBrowse, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotBrowse() ) ); - connect(m_profileEditorButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewProfile())); - connect(m_qbuttonOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOkClicked())); - connect(m_qbuttonCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); + connect(m_qbuttonBrowse, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotBrowse() ) ); + connect(m_profileEditorButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNewProfile())); + connect(m_qbuttonOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotOkClicked())); + connect(m_qbuttonCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); // connect the change signals to the check slot and perform initial check - connect(m_qlineeditFile, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(checkData())); - connect(m_qcheckboxAccount, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(checkData())); - connect(m_qcheckboxCategories, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(checkData())); - connect(m_accountComboBox, TQT_SIGNAL(accountSelected(const TQString&)), this, TQT_SLOT(checkData(const TQString&))); - connect(m_profileComboBox, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(checkData())); - connect(m_kmymoneydateStart, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(checkData())); - connect(m_kmymoneydateEnd, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(checkData())); + connect(m_qlineeditFile, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(checkData())); + connect(m_qcheckboxAccount, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(checkData())); + connect(m_qcheckboxCategories, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(checkData())); + connect(m_accountComboBox, TQ_SIGNAL(accountSelected(const TQString&)), this, TQ_SLOT(checkData(const TQString&))); + connect(m_profileComboBox, TQ_SIGNAL(highlighted(int)), this, TQ_SLOT(checkData())); + connect(m_kmymoneydateStart, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(checkData())); + connect(m_kmymoneydateEnd, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(checkData())); checkData(TQString()); } diff --git a/kmymoney2/dialogs/kfindtransactiondlg.cpp b/kmymoney2/dialogs/kfindtransactiondlg.cpp index 9d8b743..9a5c386 100644 --- a/kmymoney2/dialogs/kfindtransactiondlg.cpp +++ b/kmymoney2/dialogs/kfindtransactiondlg.cpp @@ -68,7 +68,7 @@ KFindTransactionDlg::KFindTransactionDlg(TQWidget *parent, const char *name) : m_tabWidget->setTabEnabled(m_resultPage, false); // 'cause we don't have a separate setupTextPage - connect(m_textEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateSelections())); + connect(m_textEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateSelections())); setupAccountsPage(); setupCategoriesPage(); @@ -97,24 +97,24 @@ KFindTransactionDlg::KFindTransactionDlg(TQWidget *parent, const char *name) : m_register->setupRegister(MyMoneyAccount(), cols); m_register->setSelectionMode(TQTable::Single); - connect(m_register, TQT_SIGNAL(editTransaction()), this, TQT_SLOT(slotSelectTransaction())); - connect(m_register, TQT_SIGNAL(headerClicked()), this, TQT_SLOT(slotSortOptions())); + connect(m_register, TQ_SIGNAL(editTransaction()), this, TQ_SLOT(slotSelectTransaction())); + connect(m_register, TQ_SIGNAL(headerClicked()), this, TQ_SLOT(slotSortOptions())); slotUpdateSelections(); // setup the connections - connect(m_searchButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSearch())); - connect(m_resetButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReset())); - connect(m_resetButton, TQT_SIGNAL(clicked()), m_accountsView, TQT_SLOT(slotSelectAllAccounts())); - connect(m_resetButton, TQT_SIGNAL(clicked()), m_categoriesView, TQT_SLOT(slotSelectAllAccounts())); - connect(m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteLater())); - connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotShowHelp())); + connect(m_searchButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSearch())); + connect(m_resetButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotReset())); + connect(m_resetButton, TQ_SIGNAL(clicked()), m_accountsView, TQ_SLOT(slotSelectAllAccounts())); + connect(m_resetButton, TQ_SIGNAL(clicked()), m_categoriesView, TQ_SLOT(slotSelectAllAccounts())); + connect(m_closeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteLater())); + connect(m_helpButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotShowHelp())); // only allow searches when a selection has been made - connect(this, TQT_SIGNAL(selectionEmpty(bool)), m_searchButton, TQT_SLOT(setDisabled(bool))); + connect(this, TQ_SIGNAL(selectionEmpty(bool)), m_searchButton, TQ_SLOT(setDisabled(bool))); // get signal about engine changes - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotRefreshView())); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotRefreshView())); slotUpdateSelections(); @@ -287,7 +287,7 @@ void KFindTransactionDlg::setupAccountsPage(void) //set the accountset to show closed account if the settings say so accountSet.setHideClosedAccounts(KMyMoneyGlobalSettings::hideClosedAccounts()); accountSet.load(m_accountsView); - connect(m_accountsView, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(slotUpdateSelections())); + connect(m_accountsView, TQ_SIGNAL(stateChanged()), this, TQ_SLOT(slotUpdateSelections())); } void KFindTransactionDlg::selectAllItems(TQListView* view, const bool state) @@ -327,7 +327,7 @@ void KFindTransactionDlg::setupCategoriesPage(void) categorySet.addAccountGroup(MyMoneyAccount::Income); categorySet.addAccountGroup(MyMoneyAccount::Expense); categorySet.load(m_categoriesView); - connect(m_categoriesView, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(slotUpdateSelections())); + connect(m_categoriesView, TQ_SIGNAL(stateChanged()), this, TQ_SLOT(slotUpdateSelections())); } void KFindTransactionDlg::selectAllSubItems(TQListViewItem* item, const bool state) @@ -359,9 +359,9 @@ void KFindTransactionDlg::setupDatePage(void) MyMoneyTransactionFilter::translateDateRange(static_cast<MyMoneyTransactionFilter::dateOptionE>(i), m_startDates[i], m_endDates[i]); } - connect(m_dateRange, TQT_SIGNAL(itemSelected(int)), this, TQT_SLOT(slotDateRangeChanged(int))); - connect(m_fromDate, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotDateChanged())); - connect(m_toDate, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotDateChanged())); + connect(m_dateRange, TQ_SIGNAL(itemSelected(int)), this, TQ_SLOT(slotDateRangeChanged(int))); + connect(m_fromDate, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotDateChanged())); + connect(m_toDate, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotDateChanged())); slotDateRangeChanged(MyMoneyTransactionFilter::allDates); } @@ -403,12 +403,12 @@ void KFindTransactionDlg::slotDateChanged(void) void KFindTransactionDlg::setupAmountPage(void) { - connect(m_amountButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAmountSelected())); - connect(m_amountRangeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAmountRangeSelected())); + connect(m_amountButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAmountSelected())); + connect(m_amountRangeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAmountRangeSelected())); - connect(m_amountEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateSelections())); - connect(m_amountFromEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateSelections())); - connect(m_amountToEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateSelections())); + connect(m_amountEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateSelections())); + connect(m_amountFromEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateSelections())); + connect(m_amountToEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateSelections())); m_amountButton->setChecked(true); slotAmountSelected(); @@ -438,9 +438,9 @@ void KFindTransactionDlg::setupPayeesPage(void) loadPayees(); m_emptyPayeesButton->setChecked(false); - connect(m_allPayeesButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSelectAllPayees())); - connect(m_clearPayeesButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeselectAllPayees())); - connect(m_emptyPayeesButton, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(slotUpdateSelections())); + connect(m_allPayeesButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotSelectAllPayees())); + connect(m_clearPayeesButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDeselectAllPayees())); + connect(m_emptyPayeesButton, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(slotUpdateSelections())); } void KFindTransactionDlg::loadPayees(void) @@ -453,7 +453,7 @@ void KFindTransactionDlg::loadPayees(void) // load view for(it_l = list.begin(); it_l != list.end(); ++it_l) { KMyMoneyCheckListItem* item = new KMyMoneyCheckListItem(m_payeesView, (*it_l).name(), TQString(), (*it_l).id()); - connect(item, TQT_SIGNAL(stateChanged(bool)), this, TQT_SLOT(slotUpdateSelections())); + connect(item, TQ_SIGNAL(stateChanged(bool)), this, TQ_SLOT(slotUpdateSelections())); item->setOn(true); } } @@ -469,15 +469,15 @@ void KFindTransactionDlg::slotDeselectAllPayees(void) void KFindTransactionDlg::setupDetailsPage(void) { - connect(m_typeBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateSelections())); - connect(m_stateBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateSelections())); - connect(m_validityBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateSelections())); + connect(m_typeBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotUpdateSelections())); + connect(m_stateBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotUpdateSelections())); + connect(m_validityBox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotUpdateSelections())); - connect(m_nrButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNrSelected())); - connect(m_nrRangeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNrRangeSelected())); - connect(m_nrEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateSelections())); - connect(m_nrFromEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateSelections())); - connect(m_nrToEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateSelections())); + connect(m_nrButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNrSelected())); + connect(m_nrRangeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNrRangeSelected())); + connect(m_nrEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateSelections())); + connect(m_nrFromEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateSelections())); + connect(m_nrToEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateSelections())); m_nrButton->setChecked(true); slotNrSelected(); @@ -726,7 +726,7 @@ void KFindTransactionDlg::loadView(void) m_tabWidget->setTabEnabled(m_resultPage, true); m_tabWidget->setCurrentPage(m_tabWidget->indexOf(m_resultPage)); - TQTimer::singleShot(10, this, TQT_SLOT(slotRightSize())); + TQTimer::singleShot(10, this, TQ_SLOT(slotRightSize())); } void KFindTransactionDlg::slotRightSize(void) diff --git a/kmymoney2/dialogs/kgncimportoptionsdlg.cpp b/kmymoney2/dialogs/kgncimportoptionsdlg.cpp index c1edb47..0ad0bca 100644 --- a/kmymoney2/dialogs/kgncimportoptionsdlg.cpp +++ b/kmymoney2/dialogs/kgncimportoptionsdlg.cpp @@ -54,7 +54,7 @@ KGncImportOptionsDlg::KGncImportOptionsDlg(TQWidget *parent, const char *name) checkDebugXML->setChecked (false); checkAnonymize->setChecked (false); - connect (checkDecode, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotDecodeOptionChanged(bool))); + connect (checkDecode, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotDecodeOptionChanged(bool))); } KGncImportOptionsDlg::~KGncImportOptionsDlg() diff --git a/kmymoney2/dialogs/kgncpricesourcedlg.cpp b/kmymoney2/dialogs/kgncpricesourcedlg.cpp index 9a1e2bb..663d831 100644 --- a/kmymoney2/dialogs/kgncpricesourcedlg.cpp +++ b/kmymoney2/dialogs/kgncpricesourcedlg.cpp @@ -46,8 +46,8 @@ KGncPriceSourceDlg::KGncPriceSourceDlg(TQWidget *parent, const char *name) } KGncPriceSourceDlg::KGncPriceSourceDlg(const TQString &stockName, const TQString &gncSource){ // signals and slots connections - connect( buttonGroup5, TQT_SIGNAL( released(int) ), this, TQT_SLOT( buttonPressed(int) ) ); - connect( buttonHelp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotHelp() ) ); + connect( buttonGroup5, TQ_SIGNAL( released(int) ), this, TQ_SLOT( buttonPressed(int) ) ); + connect( buttonHelp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotHelp() ) ); // initialize data fields textStockName->setText (i18n ("Investment: %1").arg(stockName)); textGncSource->setText (i18n ("Quote source: %1").arg(gncSource)); diff --git a/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp b/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp index 992c1b2..3e3ccc3 100644 --- a/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp +++ b/kmymoney2/dialogs/kgpgkeyselectiondlg.cpp @@ -67,9 +67,9 @@ KGpgKeySelectionDlg::KGpgKeySelectionDlg(TQWidget *parent, const char *name) : topLayout->addLayout(ledBox); - connect(m_listBox, TQT_SIGNAL(changed()), this, TQT_SLOT(slotIdChanged())); - connect(m_listBox, TQT_SIGNAL(added(const TQString&)), this, TQT_SLOT(slotKeyListChanged())); - connect(m_listBox, TQT_SIGNAL(removed(const TQString&)), this, TQT_SLOT(slotKeyListChanged())); + connect(m_listBox, TQ_SIGNAL(changed()), this, TQ_SLOT(slotIdChanged())); + connect(m_listBox, TQ_SIGNAL(added(const TQString&)), this, TQ_SLOT(slotKeyListChanged())); + connect(m_listBox, TQ_SIGNAL(removed(const TQString&)), this, TQ_SLOT(slotKeyListChanged())); } void KGpgKeySelectionDlg::setKeys(const TQStringList& list) diff --git a/kmymoney2/dialogs/kimportdlg.cpp b/kmymoney2/dialogs/kimportdlg.cpp index 503f987..38ddad8 100644 --- a/kmymoney2/dialogs/kimportdlg.cpp +++ b/kmymoney2/dialogs/kimportdlg.cpp @@ -86,14 +86,14 @@ KImportDlg::KImportDlg(TQWidget *parent, const char * name) m_profileEditorButton->setGuiItem(newButtenItem); // connect the buttons to their functionality - 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(m_qbuttonBrowse, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotBrowse() ) ); + connect(m_qbuttonOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotOkClicked())); + connect(m_qbuttonCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(m_profileEditorButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNewProfile())); // connect the change signals to the check slot and perform initial check - connect(m_qlineeditFile, TQT_SIGNAL(textChanged(const TQString&)), this, - TQT_SLOT(slotFileTextChanged(const TQString&))); + connect(m_qlineeditFile, TQ_SIGNAL(textChanged(const TQString&)), this, + TQ_SLOT(slotFileTextChanged(const TQString&))); // setup button enable status slotFileTextChanged(m_qlineeditFile->text()); diff --git a/kmymoney2/dialogs/kloadtemplatedlg.cpp b/kmymoney2/dialogs/kloadtemplatedlg.cpp index ed075b4..e026ca0 100644 --- a/kmymoney2/dialogs/kloadtemplatedlg.cpp +++ b/kmymoney2/dialogs/kloadtemplatedlg.cpp @@ -40,7 +40,7 @@ KLoadTemplateDlg::KLoadTemplateDlg(TQWidget* parent, const char* name) : buttonCancel->setGuiItem(KStdGuiItem::cancel()); buttonHelp->setGuiItem(KStdGuiItem::help()); - connect(buttonHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); + connect(buttonHelp, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotHelp())); } TQValueList<MyMoneyTemplate> KLoadTemplateDlg::templates(void) const diff --git a/kmymoney2/dialogs/kmymoneypricedlg.cpp b/kmymoney2/dialogs/kmymoneypricedlg.cpp index 758c072..6c19ec1 100644 --- a/kmymoney2/dialogs/kmymoneypricedlg.cpp +++ b/kmymoney2/dialogs/kmymoneypricedlg.cpp @@ -85,19 +85,19 @@ KMyMoneyPriceDlg::KMyMoneyPriceDlg(TQWidget* parent, const char *name) : i18n("Use this to close the dialog and return to the application.")); m_closeButton->setGuiItem(okButtenItem); - connect(m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); - connect(m_editButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditPrice())); - connect(m_priceList, TQT_SIGNAL(editPrice()), this, TQT_SLOT(slotEditPrice())); - connect(m_deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeletePrice())); - connect(m_priceList, TQT_SIGNAL(deletePrice()), this, TQT_SLOT(slotDeletePrice())); - connect(m_newButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewPrice())); - connect(m_priceList, TQT_SIGNAL(newPrice()), this, TQT_SLOT(slotNewPrice())); - connect(m_priceList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectPrice(TQListViewItem*))); - connect(m_onlineQuoteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOnlinePriceUpdate())); - connect(m_priceList, TQT_SIGNAL(onlinePriceUpdate()), this, TQT_SLOT(slotOnlinePriceUpdate())); - - connect(m_showAllPrices, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotLoadWidgets())); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotLoadWidgets())); + connect(m_closeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); + connect(m_editButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditPrice())); + connect(m_priceList, TQ_SIGNAL(editPrice()), this, TQ_SLOT(slotEditPrice())); + connect(m_deleteButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDeletePrice())); + connect(m_priceList, TQ_SIGNAL(deletePrice()), this, TQ_SLOT(slotDeletePrice())); + connect(m_newButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNewPrice())); + connect(m_priceList, TQ_SIGNAL(newPrice()), this, TQ_SLOT(slotNewPrice())); + connect(m_priceList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(slotSelectPrice(TQListViewItem*))); + connect(m_onlineQuoteButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotOnlinePriceUpdate())); + connect(m_priceList, TQ_SIGNAL(onlinePriceUpdate()), this, TQ_SLOT(slotOnlinePriceUpdate())); + + connect(m_showAllPrices, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotLoadWidgets())); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotLoadWidgets())); slotLoadWidgets(); slotSelectPrice(0); diff --git a/kmymoney2/dialogs/kmymoneysplittable.cpp b/kmymoney2/dialogs/kmymoneysplittable.cpp index 4a71553..028b714 100644 --- a/kmymoney2/dialogs/kmymoneysplittable.cpp +++ b/kmymoney2/dialogs/kmymoneysplittable.cpp @@ -98,17 +98,17 @@ kMyMoneySplitTable::kMyMoneySplitTable(TQWidget *parent, const char *name ) : m_contextMenu = new TDEPopupMenu(this); TDEIconLoader *il = TDEGlobal::iconLoader(); m_contextMenu->insertTitle(il->loadIcon("transaction", TDEIcon::MainToolbar), i18n("Split Options")); - m_contextMenu->insertItem(il->loadIcon("edit", TDEIcon::Small), i18n("Edit..."), this, TQT_SLOT(slotStartEdit())); - m_contextMenuDuplicate = m_contextMenu->insertItem(il->loadIcon("edit-copy", TDEIcon::Small), i18n("Duplicate"), this, TQT_SLOT(slotDuplicateSplit())); + m_contextMenu->insertItem(il->loadIcon("edit", TDEIcon::Small), i18n("Edit..."), this, TQ_SLOT(slotStartEdit())); + m_contextMenuDuplicate = m_contextMenu->insertItem(il->loadIcon("edit-copy", TDEIcon::Small), i18n("Duplicate"), this, TQ_SLOT(slotDuplicateSplit())); m_contextMenuDelete = m_contextMenu->insertItem(il->loadIcon("delete", TDEIcon::Small), i18n("Delete ..."), - this, TQT_SLOT(slotDeleteSplit())); + this, TQ_SLOT(slotDeleteSplit())); - connect(this, TQT_SIGNAL(clicked(int, int, int, const TQPoint&)), - this, TQT_SLOT(slotSetFocus(int, int, int, const TQPoint&))); + connect(this, TQ_SIGNAL(clicked(int, int, int, const TQPoint&)), + this, TQ_SLOT(slotSetFocus(int, int, int, const TQPoint&))); - connect(this, TQT_SIGNAL(transactionChanged(const MyMoneyTransaction&)), - this, TQT_SLOT(slotUpdateData(const MyMoneyTransaction&))); + connect(this, TQ_SIGNAL(transactionChanged(const MyMoneyTransaction&)), + this, TQ_SLOT(slotUpdateData(const MyMoneyTransaction&))); } kMyMoneySplitTable::~kMyMoneySplitTable() @@ -335,7 +335,7 @@ bool kMyMoneySplitTable::eventFilter(TQObject *o, TQEvent *e) } if(terminate) { - TQTimer::singleShot(0, this, TQT_SLOT(slotEndEditKeyboard())); + TQTimer::singleShot(0, this, TQ_SLOT(slotEndEditKeyboard())); } break; @@ -343,7 +343,7 @@ bool kMyMoneySplitTable::eventFilter(TQObject *o, TQEvent *e) // we cannot call the slot directly, as it destroys the caller of // this method :-( So we let the event handler take care of calling // the respective slot using a timeout. - TQTimer::singleShot(0, this, TQT_SLOT(slotCancelEdit())); + TQTimer::singleShot(0, this, TQ_SLOT(slotCancelEdit())); break; default: @@ -465,7 +465,7 @@ void kMyMoneySplitTable::contentsMouseDoubleClickEvent( TQMouseEvent *e ) editWidget->selectAll(); // we need to call setFocus on the edit widget from the // main loop again to get the keyboard focus to the widget also - TQTimer::singleShot(0, editWidget, TQT_SLOT(setFocus())); + TQTimer::singleShot(0, editWidget, TQ_SLOT(setFocus())); } } @@ -819,7 +819,7 @@ void kMyMoneySplitTable::destroyEditWidgets(void) { MYMONEYTRACER(tracer); - disconnect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotLoadEditWidgets())); + disconnect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotLoadEditWidgets())); clearCellWidget(m_currentRow, 0); clearCellWidget(m_currentRow, 1); @@ -845,8 +845,8 @@ TQWidget* kMyMoneySplitTable::createEditWidgets(void) m_editCategory = new KMyMoneyCategory(); m_editCategory->setHint(i18n("Category")); m_editCategory->setFont(cellFont); - connect(m_editCategory, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SIGNAL(createCategory(const TQString&, TQString&))); - connect(m_editCategory, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); + connect(m_editCategory, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SIGNAL(createCategory(const TQString&, TQString&))); + connect(m_editCategory, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); m_editMemo = new kMyMoneyLineEdit(0, 0, false, AlignLeft|AlignVCenter); m_editMemo->setHint(i18n("Memo")); @@ -868,8 +868,8 @@ TQWidget* kMyMoneySplitTable::createEditWidgets(void) l->addWidget(m_registerCancelButton); l->addStretch(2); - connect(m_registerEnterButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEndEdit())); - connect(m_registerCancelButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCancelEdit())); + connect(m_registerEnterButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEndEdit())); + connect(m_registerCancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCancelEdit())); // setup tab order addToTabOrder(m_editCategory); @@ -908,7 +908,7 @@ TQWidget* kMyMoneySplitTable::createEditWidgets(void) // load e.g. the category widget with the account list slotLoadEditWidgets(); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotLoadEditWidgets())); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotLoadEditWidgets())); // setup the keyboard filter for all widgets for(TQWidget* w = m_tabOrderWidgets.first(); w; w = m_tabOrderWidgets.next()) { diff --git a/kmymoney2/dialogs/knewaccountdlg.cpp b/kmymoney2/dialogs/knewaccountdlg.cpp index 4d86d4d..97d82de 100644 --- a/kmymoney2/dialogs/knewaccountdlg.cpp +++ b/kmymoney2/dialogs/knewaccountdlg.cpp @@ -366,29 +366,29 @@ KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bo cancelButton->setGuiItem(KStdGuiItem::cancel()); createButton->setGuiItem(KStdGuiItem::ok()); - connect(cancelButton, TQT_SIGNAL(clicked()), TQT_SLOT(reject())); - connect(createButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(okClicked())); - connect(m_qlistviewParentAccounts, TQT_SIGNAL(selectionChanged(TQListViewItem*)), - this, TQT_SLOT(slotSelectionChanged(TQListViewItem*))); - connect(m_qbuttonNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewClicked())); - connect(typeCombo, TQT_SIGNAL(activated(const TQString&)), - this, TQT_SLOT(slotAccountTypeChanged(const TQString&))); - - connect(accountNameEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckFinished())); - - connect(m_vatCategory, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotVatChanged(bool))); - connect(m_vatAssignment, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotVatAssignmentChanged(bool))); - connect(m_vatCategory, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotCheckFinished())); - connect(m_vatAssignment, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotCheckFinished())); - connect(m_vatRate, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckFinished())); - connect(m_vatAccount, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(slotCheckFinished())); - - connect(m_minBalanceEarlyEdit, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotAdjustMinBalanceAbsoluteEdit(const TQString&))); - connect(m_minBalanceAbsoluteEdit, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotAdjustMinBalanceEarlyEdit(const TQString&))); - connect(m_maxCreditEarlyEdit, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotAdjustMaxCreditAbsoluteEdit(const TQString&))); - connect(m_maxCreditAbsoluteEdit, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotAdjustMaxCreditEarlyEdit(const TQString&))); - - connect(m_qcomboboxInstitutions, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(slotLoadInstitutions(const TQString&))); + connect(cancelButton, TQ_SIGNAL(clicked()), TQ_SLOT(reject())); + connect(createButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(okClicked())); + connect(m_qlistviewParentAccounts, TQ_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQ_SLOT(slotSelectionChanged(TQListViewItem*))); + connect(m_qbuttonNew, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNewClicked())); + connect(typeCombo, TQ_SIGNAL(activated(const TQString&)), + this, TQ_SLOT(slotAccountTypeChanged(const TQString&))); + + connect(accountNameEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckFinished())); + + connect(m_vatCategory, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotVatChanged(bool))); + connect(m_vatAssignment, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotVatAssignmentChanged(bool))); + connect(m_vatCategory, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotCheckFinished())); + connect(m_vatAssignment, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotCheckFinished())); + connect(m_vatRate, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckFinished())); + connect(m_vatAccount, TQ_SIGNAL(stateChanged()), this, TQ_SLOT(slotCheckFinished())); + + connect(m_minBalanceEarlyEdit, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotAdjustMinBalanceAbsoluteEdit(const TQString&))); + connect(m_minBalanceAbsoluteEdit, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotAdjustMinBalanceEarlyEdit(const TQString&))); + connect(m_maxCreditEarlyEdit, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotAdjustMaxCreditAbsoluteEdit(const TQString&))); + connect(m_maxCreditAbsoluteEdit, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotAdjustMaxCreditEarlyEdit(const TQString&))); + + connect(m_qcomboboxInstitutions, TQ_SIGNAL(activated(const TQString&)), this, TQ_SLOT(slotLoadInstitutions(const TQString&))); m_vatCategory->setChecked(false); m_vatAssignment->setChecked(false); @@ -442,7 +442,7 @@ KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bo // using a timeout is the only way, I got the 'ensureItemVisible' // working when creating the dialog. I assume, this // has something to do with the delayed update of the display somehow. - TQTimer::singleShot(50, this, TQT_SLOT(timerDone())); + TQTimer::singleShot(50, this, TQ_SLOT(timerDone())); } void KNewAccountDlg::timerDone(void) diff --git a/kmymoney2/dialogs/knewbankdlg.cpp b/kmymoney2/dialogs/knewbankdlg.cpp index 85b0984..c900269 100644 --- a/kmymoney2/dialogs/knewbankdlg.cpp +++ b/kmymoney2/dialogs/knewbankdlg.cpp @@ -58,9 +58,9 @@ KNewBankDlg::KNewBankDlg(MyMoneyInstitution& institution, TQWidget *parent, cons bicEdit->setText(institution.value("bic")); sortCodeEdit->setText(institution.sortcode()); - connect(okBtn, TQT_SIGNAL(clicked()), TQT_SLOT(okClicked())); - connect(cancelBtn, TQT_SIGNAL(clicked()), TQT_SLOT(reject())); - connect(nameEdit, TQT_SIGNAL(textChanged ( const TQString & )), TQT_SLOT(institutionNameChanged( const TQString &))); + connect(okBtn, TQ_SIGNAL(clicked()), TQ_SLOT(okClicked())); + connect(cancelBtn, TQ_SIGNAL(clicked()), TQ_SLOT(reject())); + connect(nameEdit, TQ_SIGNAL(textChanged ( const TQString & )), TQ_SLOT(institutionNameChanged( const TQString &))); institutionNameChanged( nameEdit->text()); kMandatoryFieldGroup* requiredFields = new kMandatoryFieldGroup (this); diff --git a/kmymoney2/dialogs/knewequityentrydlg.cpp b/kmymoney2/dialogs/knewequityentrydlg.cpp index c695a4a..27aa0f7 100644 --- a/kmymoney2/dialogs/knewequityentrydlg.cpp +++ b/kmymoney2/dialogs/knewequityentrydlg.cpp @@ -46,12 +46,12 @@ KNewEquityEntryDlg::KNewEquityEntryDlg(TQWidget *parent, const char *name) edtFraction->setPrecision(0); edtFraction->loadText("100"); - connect(btnOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(onOKClicked())); - connect(btnCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); + connect(btnOK, TQ_SIGNAL(clicked()), this, TQ_SLOT(onOKClicked())); + connect(btnCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); - connect(edtFraction, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotDataChanged())); - connect(edtMarketSymbol, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotDataChanged())); - connect(edtEquityName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotDataChanged())); + connect(edtFraction, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotDataChanged())); + connect(edtMarketSymbol, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotDataChanged())); + connect(edtEquityName, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotDataChanged())); // add icons to buttons btnOK->setGuiItem(KStdGuiItem::ok()); diff --git a/kmymoney2/dialogs/knewfiledlg.cpp b/kmymoney2/dialogs/knewfiledlg.cpp index b047c8f..851615f 100644 --- a/kmymoney2/dialogs/knewfiledlg.cpp +++ b/kmymoney2/dialogs/knewfiledlg.cpp @@ -89,9 +89,9 @@ void KNewFileDlg::init(const TQString& title) userNameEdit->setFocus(); - connect(cancelBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(okBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(okClicked())); - connect(tdeabcBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(loadFromKABC())); + connect(cancelBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(okBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(okClicked())); + connect(tdeabcBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(loadFromKABC())); } KNewFileDlg::~KNewFileDlg(){ diff --git a/kmymoney2/dialogs/knewinvestmentwizard.cpp b/kmymoney2/dialogs/knewinvestmentwizard.cpp index e7df5f2..f018d6b 100644 --- a/kmymoney2/dialogs/knewinvestmentwizard.cpp +++ b/kmymoney2/dialogs/knewinvestmentwizard.cpp @@ -56,7 +56,7 @@ KNewInvestmentWizard::KNewInvestmentWizard( TQWidget *parent, const char *name ) slotCheckPage(TQString()); m_investmentSymbol->setFocus(); - connect(m_investmentSymbol, TQT_SIGNAL(lineChanged(const TQString&)), this, TQT_SLOT(slotCheckForExistingSymbol(const TQString&))); + connect(m_investmentSymbol, TQ_SIGNAL(lineChanged(const TQString&)), this, TQ_SLOT(slotCheckForExistingSymbol(const TQString&))); } KNewInvestmentWizard::KNewInvestmentWizard( const MyMoneyAccount& acc, TQWidget *parent, const char *name ) : @@ -117,14 +117,14 @@ void KNewInvestmentWizard::init1(void) // load the widget with the available currencies m_tradingCurrencyEdit->update(TQString()); - connect(helpButton(),TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp(void))); - connect(m_investmentName, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPage(void))); - connect(m_investmentSymbol, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPage(void))); - connect(m_fraction, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPage(void))); - connect(m_investmentIdentification, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPage(void))); - connect(m_onlineFactor, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPage(void))); - connect(m_onlineSourceCombo, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(slotCheckPage(const TQString&))); - connect(m_useFinanceQuote, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotSourceChanged(bool))); + connect(helpButton(),TQ_SIGNAL(clicked()), this, TQ_SLOT(slotHelp(void))); + connect(m_investmentName, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPage(void))); + connect(m_investmentSymbol, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPage(void))); + connect(m_fraction, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPage(void))); + connect(m_investmentIdentification, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPage(void))); + connect(m_onlineFactor, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPage(void))); + connect(m_onlineSourceCombo, TQ_SIGNAL(activated(const TQString&)), this, TQ_SLOT(slotCheckPage(const TQString&))); + connect(m_useFinanceQuote, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotSourceChanged(bool))); m_createAccount = true; diff --git a/kmymoney2/dialogs/knewloanwizard.cpp b/kmymoney2/dialogs/knewloanwizard.cpp index 2036170..7d5a7a9 100644 --- a/kmymoney2/dialogs/knewloanwizard.cpp +++ b/kmymoney2/dialogs/knewloanwizard.cpp @@ -66,35 +66,35 @@ KNewLoanWizard::KNewLoanWizard(TQWidget *parent, const char *name ) : KNewLoanWizardDecl(parent, name, true) { - connect(m_borrowButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotLiabilityLoan())); - connect(m_lendButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAssetLoan())); + connect(m_borrowButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotLiabilityLoan())); + connect(m_lendButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAssetLoan())); - connect(m_nameEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished())); - // connect(m_payeeEdit, TQT_SIGNAL(newPayee(const TQString&)), this, TQT_SLOT(slotNewPayee(const TQString&))); - connect(m_payeeEdit, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SIGNAL(createPayee(const TQString&, TQString&))); + connect(m_nameEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished())); + // connect(m_payeeEdit, TQ_SIGNAL(newPayee(const TQString&)), this, TQ_SLOT(slotNewPayee(const TQString&))); + connect(m_payeeEdit, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SIGNAL(createPayee(const TQString&, TQString&))); - connect(m_previousPaymentButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPaymentsMade())); - connect(m_noPreviousPaymentButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNoPaymentsMade())); + connect(m_previousPaymentButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotPaymentsMade())); + connect(m_noPreviousPaymentButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNoPaymentsMade())); - connect(m_allPaymentsButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRecordAllPayments())); - connect(m_thisYearPaymentButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRecordThisYearsPayments())); + connect(m_allPaymentsButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRecordAllPayments())); + connect(m_thisYearPaymentButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRecordThisYearsPayments())); - connect(m_firstDueDateEdit, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotCheckPageFinished())); + connect(m_firstDueDateEdit, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotCheckPageFinished())); - connect(m_interestOnPaymentButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotInterestOnPayment())); - connect(m_interestOnReceptionButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotInterestOnReception())); + connect(m_interestOnPaymentButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotInterestOnPayment())); + connect(m_interestOnReceptionButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotInterestOnReception())); - connect(m_loanAmountEdit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotCheckPageFinished())); + connect(m_loanAmountEdit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotCheckPageFinished())); - connect(m_interestAccountEdit, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(slotCheckPageFinished())); + connect(m_interestAccountEdit, TQ_SIGNAL(stateChanged()), this, TQ_SLOT(slotCheckPageFinished())); - connect(m_nextDueDateEdit, TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotCheckPageFinished())); - connect(m_paymentAccountEdit, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(slotCheckPageFinished())); + connect(m_nextDueDateEdit, TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotCheckPageFinished())); + connect(m_paymentAccountEdit, TQ_SIGNAL(stateChanged()), this, TQ_SLOT(slotCheckPageFinished())); - connect(m_assetAccountEdit, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(slotCheckPageFinished())); - connect(m_dontCreatePayoutCheckBox, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCheckPageFinished())); + connect(m_assetAccountEdit, TQ_SIGNAL(stateChanged()), this, TQ_SLOT(slotCheckPageFinished())); + connect(m_dontCreatePayoutCheckBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCheckPageFinished())); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotReloadEditWidgets())); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotReloadEditWidgets())); loadComboBoxes(); @@ -128,21 +128,21 @@ KNewLoanWizard::KNewLoanWizard(TQWidget *parent, const char *name ) : i18n("Create a new category"), i18n("Use this to open the new account editor")); m_createCategoryButton->setGuiItem(createCategoryButtenItem); - connect(m_createCategoryButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCreateCategory())); + connect(m_createCategoryButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCreateCategory())); KGuiItem additionalFeeButtenItem( i18n( "&Additional fees..." ), 0, //TQIconSet(il->loadIcon("document-new", TDEIcon::Small, TDEIcon::SizeSmall)), i18n("Enter additional fees"), i18n("Use this to add any additional fees other than principal and interest contained in your periodical payments.")); m_additionalFeeButton->setGuiItem(additionalFeeButtenItem); - connect(m_additionalFeeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAdditionalFees())); + connect(m_additionalFeeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAdditionalFees())); KGuiItem createAssetButtenItem( i18n( "&Create..." ), TQIconSet(il->loadIcon("document-new", TDEIcon::Small, TDEIcon::SizeSmall)), i18n("Create a new asset account"), i18n("Use this to create a new account to which the initial payment should be made")); m_createNewAssetButton->setGuiItem(createAssetButtenItem); - connect(m_createNewAssetButton, TQT_SIGNAL(clicked()), kmymoney2, TQT_SLOT(slotAccountNew())); + connect(m_createNewAssetButton, TQ_SIGNAL(clicked()), kmymoney2, TQ_SLOT(slotAccountNew())); // enable the finish button on the last page setFinishEnabled(m_summaryPage, true); @@ -930,7 +930,7 @@ void KNewLoanWizard::slotAdditionalFees(void) TQMap<TQString, MyMoneyMoney> priceInfo; KSplitTransactionDlg* dlg = new KSplitTransactionDlg(m_transaction, m_split, account, false, !m_borrowButton->isChecked(), MyMoneyMoney(0), priceInfo); - connect(dlg, TQT_SIGNAL(newCategory(MyMoneyAccount&)), this, TQT_SIGNAL(newCategory(MyMoneyAccount&))); + connect(dlg, TQ_SIGNAL(newCategory(MyMoneyAccount&)), this, TQ_SIGNAL(newCategory(MyMoneyAccount&))); if(dlg->exec() == TQDialog::Accepted) { m_transaction = dlg->transaction(); diff --git a/kmymoney2/dialogs/kreconciledlg.cpp b/kmymoney2/dialogs/kreconciledlg.cpp index 0e1aad9..bfaa26f 100644 --- a/kmymoney2/dialogs/kreconciledlg.cpp +++ b/kmymoney2/dialogs/kreconciledlg.cpp @@ -90,11 +90,11 @@ KReconcileDlg::KReconcileDlg(const MyMoneyMoney /* previousBal */, const MyMoney loadLists(); insertTransactions(); - connect(debitListView, TQT_SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)), this, TQT_SLOT(slotDebitSelected(TQListViewItem*, const TQPoint&, int))); - connect(creditListView, TQT_SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)), this, TQT_SLOT(slotCreditSelected(TQListViewItem*, const TQPoint&, int))); - connect(buttonCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(cancelClicked())); - connect(buttonOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(finishClicked())); - connect(buttonEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(editClicked())); + connect(debitListView, TQ_SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)), this, TQ_SLOT(slotDebitSelected(TQListViewItem*, const TQPoint&, int))); + connect(creditListView, TQ_SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)), this, TQ_SLOT(slotCreditSelected(TQListViewItem*, const TQPoint&, int))); + connect(buttonCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(cancelClicked())); + connect(buttonOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(finishClicked())); + connect(buttonEdit, TQ_SIGNAL(clicked()), this, TQ_SLOT(editClicked())); doDifference(); */ diff --git a/kmymoney2/dialogs/kreportconfigurationfilterdlg.cpp b/kmymoney2/dialogs/kreportconfigurationfilterdlg.cpp index 2211568..571d087 100644 --- a/kmymoney2/dialogs/kreportconfigurationfilterdlg.cpp +++ b/kmymoney2/dialogs/kreportconfigurationfilterdlg.cpp @@ -96,13 +96,13 @@ KReportConfigurationFilterDlg::KReportConfigurationFilterDlg( // // the Ok button is always enabled - disconnect(TQT_SIGNAL(selectionEmpty(bool))); + disconnect(TQ_SIGNAL(selectionEmpty(bool))); m_searchButton->setGuiItem( KStdGuiItem::ok() ); m_searchButton->setEnabled(true); // reconnect the close button m_closeButton->disconnect(); - connect(m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); + connect(m_closeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); // // Add new tabs @@ -115,10 +115,10 @@ KReportConfigurationFilterDlg::KReportConfigurationFilterDlg( { m_tab2 = new kMyMoneyReportConfigTab2Decl( m_criteriaTab, "kMyMoneyReportConfigTab2" ); m_criteriaTab->insertTab( m_tab2, i18n( "Rows/Columns"), 1 ); - connect(m_tab2->m_comboRows, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotRowTypeChanged(int))); - connect(m_tab2->m_comboColumns, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotColumnTypeChanged(int))); + connect(m_tab2->m_comboRows, TQ_SIGNAL(highlighted(int)), this, TQ_SLOT(slotRowTypeChanged(int))); + connect(m_tab2->m_comboColumns, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotColumnTypeChanged(int))); //control the state of the includeTransfer check - connect(m_categoriesView, TQT_SIGNAL(stateChanged()), this, TQT_SLOT(slotUpdateCheckTransfers())); + connect(m_categoriesView, TQ_SIGNAL(stateChanged()), this, TQ_SLOT(slotUpdateCheckTransfers())); #ifdef HAVE_KDCHART m_tabChart = new kMyMoneyReportConfigTabChartDecl( m_criteriaTab, "kMyMoneyReportConfigTabChart" ); diff --git a/kmymoney2/dialogs/ksecuritylisteditor.cpp b/kmymoney2/dialogs/ksecuritylisteditor.cpp index 5113e32..99c57b9 100644 --- a/kmymoney2/dialogs/ksecuritylisteditor.cpp +++ b/kmymoney2/dialogs/ksecuritylisteditor.cpp @@ -92,12 +92,12 @@ KSecurityListEditor::KSecurityListEditor(TQWidget *parent, const char *name) : i18n("Use this to close the dialog and return to the application.")); m_closeButton->setGuiItem(okButtenItem); - connect(m_closeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(m_showCurrencyButton, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotLoadList())); - connect(m_listView, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotUpdateButtons())); + connect(m_closeButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(m_showCurrencyButton, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotLoadList())); + connect(m_listView, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotUpdateButtons())); - connect(m_editButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditSecurity())); - connect(m_deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDeleteSecurity())); + connect(m_editButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditSecurity())); + connect(m_deleteButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDeleteSecurity())); // FIXME for now, the only way to add a new security is to add a new investment m_addButton->hide(); diff --git a/kmymoney2/dialogs/ksplittransactiondlg.cpp b/kmymoney2/dialogs/ksplittransactiondlg.cpp index 30a8a51..b8fd102 100644 --- a/kmymoney2/dialogs/ksplittransactiondlg.cpp +++ b/kmymoney2/dialogs/ksplittransactiondlg.cpp @@ -99,19 +99,19 @@ KSplitTransactionDlg::KSplitTransactionDlg(const MyMoneyTransaction& t, clearAllBtn->setFocusPolicy(TQWidget::NoFocus); // connect signals with slots - connect(transactionsTable, TQT_SIGNAL(transactionChanged(const MyMoneyTransaction&)), - this, TQT_SLOT(slotSetTransaction(const MyMoneyTransaction&))); - connect(transactionsTable, TQT_SIGNAL(createCategory(const TQString&, TQString&)), this, TQT_SLOT(slotCreateCategory(const TQString&, TQString&))); - connect(transactionsTable, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); + connect(transactionsTable, TQ_SIGNAL(transactionChanged(const MyMoneyTransaction&)), + this, TQ_SLOT(slotSetTransaction(const MyMoneyTransaction&))); + connect(transactionsTable, TQ_SIGNAL(createCategory(const TQString&, TQString&)), this, TQ_SLOT(slotCreateCategory(const TQString&, TQString&))); + connect(transactionsTable, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); - connect(transactionsTable, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(accept())); - connect(transactionsTable, TQT_SIGNAL(escapePressed()), this, TQT_SLOT(reject())); + connect(transactionsTable, TQ_SIGNAL(returnPressed()), this, TQ_SLOT(accept())); + connect(transactionsTable, TQ_SIGNAL(escapePressed()), this, TQ_SLOT(reject())); - connect(cancelBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(finishBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); - connect(clearAllBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClearAllSplits())); - connect(mergeBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMergeSplits())); - connect(clearZeroBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClearUnusedSplits())); + connect(cancelBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(finishBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); + connect(clearAllBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClearAllSplits())); + connect(mergeBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotMergeSplits())); + connect(clearZeroBtn, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClearUnusedSplits())); // setup the precision try { @@ -138,7 +138,7 @@ KSplitTransactionDlg::KSplitTransactionDlg(const MyMoneyTransaction& t, // is incorrect. If the widget is visible, resizing works correctly. // So, we let the dialog show up and resize it then. It's not really // clean, but the only way I got the damned thing working. - TQTimer::singleShot( 10, this, TQT_SLOT(initSize()) ); + TQTimer::singleShot( 10, this, TQ_SLOT(initSize()) ); } KSplitTransactionDlg::~KSplitTransactionDlg() diff --git a/kmymoney2/dialogs/kstartdlg.cpp b/kmymoney2/dialogs/kstartdlg.cpp index aaef641..25c4555 100644 --- a/kmymoney2/dialogs/kstartdlg.cpp +++ b/kmymoney2/dialogs/kstartdlg.cpp @@ -74,10 +74,10 @@ void KStartDlg::setPage_Template() templateMainFrame = addVBoxPage( i18n("Templates"), i18n("Select templates"), DesktopIcon("wizard")); view_wizard = new TDEIconView( templateMainFrame, "view_options" ); (void)new TQIconViewItem( view_wizard, i18n("New KMyMoney document"), ic->loadIcon("mime_empty.png", TDEIcon::Desktop, TDEIcon::SizeLarge)/*TQPixmap( locate("icon","hicolor/48x48/mimetypes/mime_empty.png") )*/ ); - connect(view_wizard, TQT_SIGNAL(executed(TQIconViewItem *) ), this, TQT_SLOT(slotTemplateClicked(TQIconViewItem *) ) ); - connect(view_wizard, TQT_SIGNAL(selectionChanged(TQIconViewItem*)), - this, TQT_SLOT(slotTemplateSelectionChanged(TQIconViewItem*))); - connect(this, TQT_SIGNAL(aboutToShowPage(TQWidget*)), this, TQT_SLOT(slotAboutToShowPage(TQWidget*))); + connect(view_wizard, TQ_SIGNAL(executed(TQIconViewItem *) ), this, TQ_SLOT(slotTemplateClicked(TQIconViewItem *) ) ); + connect(view_wizard, TQ_SIGNAL(selectionChanged(TQIconViewItem*)), + this, TQ_SLOT(slotTemplateSelectionChanged(TQIconViewItem*))); + connect(this, TQ_SIGNAL(aboutToShowPage(TQWidget*)), this, TQ_SLOT(slotAboutToShowPage(TQWidget*))); } /** Set the Misc options Page of the preferences dialog */ @@ -98,13 +98,13 @@ void KStartDlg::setPage_Documents() label1->setText( i18n("Recent Files") ); mainLayout->addWidget( label1 ); view_recent = new TDEIconView( recentMainFrame, "view_recent" ); - connect( view_recent, TQT_SIGNAL( executed(TQIconViewItem *) ), this, TQT_SLOT( slotRecentClicked(TQIconViewItem *) ) ); + connect( view_recent, TQ_SIGNAL( executed(TQIconViewItem *) ), this, TQ_SLOT( slotRecentClicked(TQIconViewItem *) ) ); mainLayout->addWidget( view_recent ); view_recent->setArrangement(TDEIconView::LeftToRight/*TopToBottom*/); view_recent->setItemTextPos(TDEIconView::Bottom); - connect(view_recent, TQT_SIGNAL(selectionChanged(TQIconViewItem*)), - this, TQT_SLOT(slotRecentSelectionChanged(TQIconViewItem*))); + connect(view_recent, TQ_SIGNAL(selectionChanged(TQIconViewItem*)), + this, TQ_SLOT(slotRecentSelectionChanged(TQIconViewItem*))); } void KStartDlg::slotTemplateClicked(TQIconViewItem *item) diff --git a/kmymoney2/dialogs/kupdatestockpricedlg.cpp b/kmymoney2/dialogs/kupdatestockpricedlg.cpp index 924105d..efd6800 100644 --- a/kmymoney2/dialogs/kupdatestockpricedlg.cpp +++ b/kmymoney2/dialogs/kupdatestockpricedlg.cpp @@ -54,11 +54,11 @@ void KUpdateStockPriceDlg::init() m_okButton->setGuiItem(KStdGuiItem::ok()); m_cancelButton->setGuiItem(KStdGuiItem::cancel()); - connect(m_okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); - connect(m_cancelButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); + connect(m_okButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); + connect(m_cancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); - connect(m_security, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotCheckData())); - connect(m_currency, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotCheckData())); + connect(m_security, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotCheckData())); + connect(m_currency, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotCheckData())); // load initial values into the selection widgets m_currency->update(TQString()); diff --git a/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp b/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp index ff56d28..66b5623 100644 --- a/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp +++ b/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp @@ -101,37 +101,37 @@ MyMoneyQifProfileEditor::MyMoneyQifProfileEditor(const bool edit, TQWidget *pare i18n("Use this to create a new QIF import/export profile")); m_newButton->setGuiItem(newButtenItem); - connect(m_profileListBox, TQT_SIGNAL(highlighted(const TQString&)), this, TQT_SLOT(slotLoadProfileFromConfig(const TQString&))); - connect(m_resetButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotReset())); - connect(m_okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOk())); - connect(m_renameButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotRename())); - connect(m_deleteButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelete())); - connect(m_newButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNew())); - connect(m_cancelButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject())); - connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); + connect(m_profileListBox, TQ_SIGNAL(highlighted(const TQString&)), this, TQ_SLOT(slotLoadProfileFromConfig(const TQString&))); + connect(m_resetButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotReset())); + connect(m_okButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotOk())); + connect(m_renameButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotRename())); + connect(m_deleteButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDelete())); + connect(m_newButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNew())); + connect(m_cancelButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(reject())); + connect(m_helpButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotHelp())); - connect(m_editDescription, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setProfileDescription(const TQString&))); - connect(m_editType, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setProfileType(const TQString&))); - connect(m_editOpeningBalance, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setOpeningBalanceText(const TQString&))); - connect(m_editAccountDelimiter, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setAccountDelimiter(const TQString&))); - connect(m_editVoidMark, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setVoidMark(const TQString&))); + connect(m_editDescription, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setProfileDescription(const TQString&))); + connect(m_editType, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setProfileType(const TQString&))); + connect(m_editOpeningBalance, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setOpeningBalanceText(const TQString&))); + connect(m_editAccountDelimiter, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setAccountDelimiter(const TQString&))); + connect(m_editVoidMark, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setVoidMark(const TQString&))); - //connect(m_editDateFormat, TQT_SIGNAL(highlighted(const TQString&)), &m_profile, TQT_SLOT(setDateFormat(const TQString&))); - connect(m_editApostrophe, TQT_SIGNAL(highlighted(const TQString&)), &m_profile, TQT_SLOT(setApostropheFormat(const TQString&))); + //connect(m_editDateFormat, TQ_SIGNAL(highlighted(const TQString&)), &m_profile, TQ_SLOT(setDateFormat(const TQString&))); + connect(m_editApostrophe, TQ_SIGNAL(highlighted(const TQString&)), &m_profile, TQ_SLOT(setApostropheFormat(const TQString&))); - connect(m_editAmounts, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotAmountTypeSelected(TQListViewItem*))); - connect(m_decimalBox, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(slotDecimalChanged(const TQString&))); - connect(m_thousandsBox, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(slotThousandsChanged(const TQString&))); + connect(m_editAmounts, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(slotAmountTypeSelected(TQListViewItem*))); + connect(m_decimalBox, TQ_SIGNAL(activated(const TQString&)), this, TQ_SLOT(slotDecimalChanged(const TQString&))); + connect(m_thousandsBox, TQ_SIGNAL(activated(const TQString&)), this, TQ_SLOT(slotThousandsChanged(const TQString&))); - connect(m_editInputFilterLocation, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setFilterScriptImport(const TQString&))); - connect(m_editInputFilterLocation, TQT_SIGNAL(urlSelected(const TQString&)), m_editInputFilterLocation, TQT_SLOT(setURL(const TQString&))); + connect(m_editInputFilterLocation, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setFilterScriptImport(const TQString&))); + connect(m_editInputFilterLocation, TQ_SIGNAL(urlSelected(const TQString&)), m_editInputFilterLocation, TQ_SLOT(setURL(const TQString&))); - connect(m_editInputFilterFileType, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setFilterFileType(const TQString&))); + connect(m_editInputFilterFileType, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setFilterFileType(const TQString&))); - connect(m_editOutputFilterLocation, TQT_SIGNAL(textChanged(const TQString&)), &m_profile, TQT_SLOT(setFilterScriptExport(const TQString&))); - connect(m_editOutputFilterLocation, TQT_SIGNAL(urlSelected(const TQString&)), m_editOutputFilterLocation, TQT_SLOT(setURL(const TQString&))); + connect(m_editOutputFilterLocation, TQ_SIGNAL(textChanged(const TQString&)), &m_profile, TQ_SLOT(setFilterScriptExport(const TQString&))); + connect(m_editOutputFilterLocation, TQ_SIGNAL(urlSelected(const TQString&)), m_editOutputFilterLocation, TQ_SLOT(setURL(const TQString&))); - connect(m_attemptMatch, TQT_SIGNAL(toggled(bool)), &m_profile, TQT_SLOT(setAttemptMatchDuplicates(bool))); + connect(m_attemptMatch, TQ_SIGNAL(toggled(bool)), &m_profile, TQ_SLOT(setAttemptMatchDuplicates(bool))); } MyMoneyQifProfileEditor::~MyMoneyQifProfileEditor() diff --git a/kmymoney2/dialogs/settings/ksettingsgeneral.cpp b/kmymoney2/dialogs/settings/ksettingsgeneral.cpp index ee6e7f3..011ff16 100644 --- a/kmymoney2/dialogs/settings/ksettingsgeneral.cpp +++ b/kmymoney2/dialogs/settings/ksettingsgeneral.cpp @@ -47,10 +47,10 @@ KSettingsGeneral::KSettingsGeneral(TQWidget* parent, const char* name) : m_viewList->hide(); // setup connections, so that the sort optios get loaded once the edit fields are filled - connect(kcfg_StartDate, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(slotLoadStartDate(const TQDate&))); + connect(kcfg_StartDate, TQ_SIGNAL(valueChanged(const TQDate&)), this, TQ_SLOT(slotLoadStartDate(const TQDate&))); // setup connections, so that changes by the user are forwarded to the (hidden) edit fields - connect(m_startDateEdit, TQT_SIGNAL(dateChanged(const TQDate&)), kcfg_StartDate, TQT_SLOT(setDate(const TQDate&))); + connect(m_startDateEdit, TQ_SIGNAL(dateChanged(const TQDate&)), kcfg_StartDate, TQ_SLOT(setDate(const TQDate&))); } KSettingsGeneral::~KSettingsGeneral() @@ -60,7 +60,7 @@ KSettingsGeneral::~KSettingsGeneral() void KSettingsGeneral::slotLoadStartDate(const TQDate&) { // only need this once - disconnect(kcfg_StartDate, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(slotLoadStartDate(const TQDate&))); + disconnect(kcfg_StartDate, TQ_SIGNAL(valueChanged(const TQDate&)), this, TQ_SLOT(slotLoadStartDate(const TQDate&))); m_startDateEdit->setDate(kcfg_StartDate->date()); } diff --git a/kmymoney2/dialogs/settings/ksettingsgpg.cpp b/kmymoney2/dialogs/settings/ksettingsgpg.cpp index 3950f4a..8ed0fb9 100644 --- a/kmymoney2/dialogs/settings/ksettingsgpg.cpp +++ b/kmymoney2/dialogs/settings/ksettingsgpg.cpp @@ -55,11 +55,11 @@ KSettingsGpg::KSettingsGpg(TQWidget* parent, const char* name) : // don't show the widget in which the master key is actually kept kcfg_GpgRecipient->hide(); - connect(kcfg_WriteDataEncrypted, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotStatusChanged(bool))); - connect(m_masterKeyCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotIdChanged())); - connect(kcfg_GpgRecipientList, TQT_SIGNAL(changed()), this, TQT_SLOT(slotIdChanged())); - connect(kcfg_GpgRecipientList, TQT_SIGNAL(added(const TQString&)), this, TQT_SLOT(slotKeyListChanged())); - connect(kcfg_GpgRecipientList, TQT_SIGNAL(removed(const TQString&)), this, TQT_SLOT(slotKeyListChanged())); + connect(kcfg_WriteDataEncrypted, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotStatusChanged(bool))); + connect(m_masterKeyCombo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotIdChanged())); + connect(kcfg_GpgRecipientList, TQ_SIGNAL(changed()), this, TQ_SLOT(slotIdChanged())); + connect(kcfg_GpgRecipientList, TQ_SIGNAL(added(const TQString&)), this, TQ_SLOT(slotKeyListChanged())); + connect(kcfg_GpgRecipientList, TQ_SIGNAL(removed(const TQString&)), this, TQ_SLOT(slotKeyListChanged())); // Initial state setup slotStatusChanged(kcfg_WriteDataEncrypted->isChecked()); diff --git a/kmymoney2/dialogs/settings/ksettingshome.cpp b/kmymoney2/dialogs/settings/ksettingshome.cpp index 2acae5f..423e594 100644 --- a/kmymoney2/dialogs/settings/ksettingshome.cpp +++ b/kmymoney2/dialogs/settings/ksettingshome.cpp @@ -67,14 +67,14 @@ KSettingsHome::KSettingsHome(TQWidget* parent, const char* name) : m_downButton->setEnabled(false); // connect this, so that the list gets loaded once the edit field is filled - connect(kcfg_ItemList, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotLoadItems())); + connect(kcfg_ItemList, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotLoadItems())); - connect(m_homePageList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), - this, TQT_SLOT(slotSelectHomePageItem(TQListViewItem *))); - connect(m_homePageList, TQT_SIGNAL(pressed(TQListViewItem*)), this, TQT_SLOT(slotUpdateItemList())); + connect(m_homePageList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQ_SLOT(slotSelectHomePageItem(TQListViewItem *))); + connect(m_homePageList, TQ_SIGNAL(pressed(TQListViewItem*)), this, TQ_SLOT(slotUpdateItemList())); - connect(m_upButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMoveUp())); - connect(m_downButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMoveDown())); + connect(m_upButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotMoveUp())); + connect(m_downButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotMoveDown())); // Don't show it to the user, we only need it to load and save the settings kcfg_ItemList->hide(); diff --git a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp index f09b574..ff84d0a 100644 --- a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp +++ b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp @@ -71,19 +71,19 @@ KSettingsOnlineQuotes::KSettingsOnlineQuotes(TQWidget *parent, const char *name i18n("Use this to create a new entry for online quotes")); m_newButton->setGuiItem(newButtenItem); - connect(m_updateButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotUpdateEntry())); - connect(m_newButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNewEntry())); - - connect(m_quoteSourceList, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotLoadWidgets(TQListViewItem*))); - connect(m_quoteSourceList, TQT_SIGNAL(clicked(TQListViewItem*)), this, TQT_SLOT(slotLoadWidgets(TQListViewItem*))); - connect(m_quoteSourceList, TQT_SIGNAL(itemRenamed(TQListViewItem*,const TQString&,int)), this, TQT_SLOT(slotEntryRenamed(TQListViewItem*,const TQString&,int))); - - connect(m_editURL, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged())); - connect(m_editSymbol, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged())); - connect(m_editDate, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged())); - connect(m_editDateFormat, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged())); - connect(m_editPrice, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotEntryChanged())); - connect(m_skipStripping, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotEntryChanged())); + connect(m_updateButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotUpdateEntry())); + connect(m_newButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNewEntry())); + + connect(m_quoteSourceList, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(slotLoadWidgets(TQListViewItem*))); + connect(m_quoteSourceList, TQ_SIGNAL(clicked(TQListViewItem*)), this, TQ_SLOT(slotLoadWidgets(TQListViewItem*))); + connect(m_quoteSourceList, TQ_SIGNAL(itemRenamed(TQListViewItem*,const TQString&,int)), this, TQ_SLOT(slotEntryRenamed(TQListViewItem*,const TQString&,int))); + + connect(m_editURL, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotEntryChanged())); + connect(m_editSymbol, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotEntryChanged())); + connect(m_editDate, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotEntryChanged())); + connect(m_editDateFormat, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotEntryChanged())); + connect(m_editPrice, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotEntryChanged())); + connect(m_skipStripping, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotEntryChanged())); // FIXME deleting a source is not yet implemented m_deleteButton->setEnabled(false); diff --git a/kmymoney2/dialogs/settings/ksettingsregister.cpp b/kmymoney2/dialogs/settings/ksettingsregister.cpp index d60d8cf..573a851 100644 --- a/kmymoney2/dialogs/settings/ksettingsregister.cpp +++ b/kmymoney2/dialogs/settings/ksettingsregister.cpp @@ -41,14 +41,14 @@ KSettingsRegister::KSettingsRegister(TQWidget* parent, const char* name) : kcfg_sortSearchView->hide(); // setup connections, so that the sort optios get loaded once the edit fields are filled - connect(kcfg_sortNormalView, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotLoadNormal())); - connect(kcfg_sortReconcileView, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotLoadReconcile())); - connect(kcfg_sortSearchView, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotLoadSearch())); + connect(kcfg_sortNormalView, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotLoadNormal())); + connect(kcfg_sortReconcileView, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotLoadReconcile())); + connect(kcfg_sortSearchView, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotLoadSearch())); // setup connections, so that changes by the user are forwarded to the (hidden) edit fields - connect(m_sortNormalView, TQT_SIGNAL(settingsChanged(const TQString&)), kcfg_sortNormalView, TQT_SLOT(setText(const TQString&))); - connect(m_sortReconcileView, TQT_SIGNAL(settingsChanged(const TQString&)), kcfg_sortReconcileView, TQT_SLOT(setText(const TQString&))); - connect(m_sortSearchView, TQT_SIGNAL(settingsChanged(const TQString&)), kcfg_sortSearchView, TQT_SLOT(setText(const TQString&))); + connect(m_sortNormalView, TQ_SIGNAL(settingsChanged(const TQString&)), kcfg_sortNormalView, TQ_SLOT(setText(const TQString&))); + connect(m_sortReconcileView, TQ_SIGNAL(settingsChanged(const TQString&)), kcfg_sortReconcileView, TQ_SLOT(setText(const TQString&))); + connect(m_sortSearchView, TQ_SIGNAL(settingsChanged(const TQString&)), kcfg_sortSearchView, TQ_SLOT(setText(const TQString&))); } KSettingsRegister::~KSettingsRegister() @@ -58,21 +58,21 @@ KSettingsRegister::~KSettingsRegister() void KSettingsRegister::slotLoadNormal(void) { // only need this once - disconnect(kcfg_sortNormalView, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotLoadNormal())); + disconnect(kcfg_sortNormalView, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotLoadNormal())); m_sortNormalView->setSettings(kcfg_sortNormalView->text()); } void KSettingsRegister::slotLoadReconcile(void) { // only need this once - disconnect(kcfg_sortReconcileView, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotLoadReconcile())); + disconnect(kcfg_sortReconcileView, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotLoadReconcile())); m_sortReconcileView->setSettings(kcfg_sortReconcileView->text()); } void KSettingsRegister::slotLoadSearch(void) { // only need this once - disconnect(kcfg_sortSearchView, TQT_SIGNAL(textChanged()), this, TQT_SLOT(slotLoadSearch())); + disconnect(kcfg_sortSearchView, TQ_SIGNAL(textChanged()), this, TQ_SLOT(slotLoadSearch())); m_sortSearchView->setSettings(kcfg_sortSearchView->text()); } diff --git a/kmymoney2/dialogs/tdeselectdatabasedlg.cpp b/kmymoney2/dialogs/tdeselectdatabasedlg.cpp index f5d6a3b..5a34975 100644 --- a/kmymoney2/dialogs/tdeselectdatabasedlg.cpp +++ b/kmymoney2/dialogs/tdeselectdatabasedlg.cpp @@ -83,14 +83,14 @@ TDESelectDatabaseDlg::TDESelectDatabaseDlg(TQWidget *parent, const char *name) m_requiredFields->setOkButton(buttonOK); m_requiredFields->add(listDrivers); m_requiredFields->add(textDbName); - connect (listDrivers, TQT_SIGNAL(clicked(TQListBoxItem *)), - this, TQT_SLOT(slotDriverSelected(TQListBoxItem *))); - connect (buttonSQL, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotGenerateSQL())); - connect (buttonOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); + connect (listDrivers, TQ_SIGNAL(clicked(TQListBoxItem *)), + this, TQ_SLOT(slotDriverSelected(TQListBoxItem *))); + connect (buttonSQL, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotGenerateSQL())); + connect (buttonOK, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); checkPreLoad->setChecked(false); buttonSQL->setEnabled(true); } - connect (buttonHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); + connect (buttonHelp, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotHelp())); // ensure a driver gets selected; pre-select if only one listDrivers->clearSelection(); if (listDrivers->count() == 1) { @@ -139,10 +139,10 @@ TDESelectDatabaseDlg::TDESelectDatabaseDlg(KURL openURL, TQWidget *parent, const m_requiredFields->add(textPassword); m_requiredFields->setOkButton(buttonOK); - connect (buttonOK, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept())); + connect (buttonOK, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept())); checkPreLoad->setChecked(false); } - connect (buttonHelp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); + connect (buttonHelp, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotHelp())); } diff --git a/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp b/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp index caedd5f..5d785ca 100644 --- a/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp +++ b/kmymoney2/dialogs/tdeselecttransactionsdlg.cpp @@ -80,10 +80,10 @@ TDESelectTransactionsDlg::TDESelectTransactionsDlg(const MyMoneyAccount& _accoun // catch some events from the register m_register->installEventFilter(this); - connect(m_register, TQT_SIGNAL(selectionChanged(const KMyMoneyRegister::SelectedTransactions&)), this, TQT_SLOT(slotEnableOk(const KMyMoneyRegister::SelectedTransactions&))); - connect(m_register, TQT_SIGNAL(editTransaction()), this, TQT_SLOT(accept())); + connect(m_register, TQ_SIGNAL(selectionChanged(const KMyMoneyRegister::SelectedTransactions&)), this, TQ_SLOT(slotEnableOk(const KMyMoneyRegister::SelectedTransactions&))); + connect(m_register, TQ_SIGNAL(editTransaction()), this, TQ_SLOT(accept())); - connect(m_helpButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotHelp())); + connect(m_helpButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotHelp())); } void TDESelectTransactionsDlg::slotEnableOk(const KMyMoneyRegister::SelectedTransactions& list) diff --git a/kmymoney2/dialogs/transactioneditor.cpp b/kmymoney2/dialogs/transactioneditor.cpp index df85015..a6556ff 100644 --- a/kmymoney2/dialogs/transactioneditor.cpp +++ b/kmymoney2/dialogs/transactioneditor.cpp @@ -74,7 +74,7 @@ TransactionEditor::TransactionEditor(TransactionEditorContainer* regForm, KMyMon m_openEditSplits(false) { m_item->startEditMode(); - connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotUpdateAccount())); + connect(MyMoneyFile::instance(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotUpdateAccount())); } TransactionEditor::~TransactionEditor() @@ -203,14 +203,14 @@ bool TransactionEditor::eventFilter(TQObject* o, TQEvent* e) TQApplication::sendEvent( o, &evt ); } else { - TQTimer::singleShot(0, this, TQT_SIGNAL(returnPressed())); + TQTimer::singleShot(0, this, TQ_SIGNAL(returnPressed())); } // don't process any further rc = true; break; case TQt::Key_Escape: - TQTimer::singleShot(0, this, TQT_SIGNAL(escapePressed())); + TQTimer::singleShot(0, this, TQ_SIGNAL(escapePressed())); break; } } @@ -478,7 +478,7 @@ bool TransactionEditor::canAssignNumber(void) const void TransactionEditor::setupCategoryWidget(KMyMoneyCategory* category, const TQValueList<MyMoneySplit>& splits, TQString& categoryId, const char* splitEditSlot, bool /* allowObjectCreation */) { - disconnect(category, TQT_SIGNAL(focusIn()), this, splitEditSlot); + disconnect(category, TQ_SIGNAL(focusIn()), this, splitEditSlot); #if 0 // FIXME must deal with the logic that suppressObjectCreation is // automatically turned off when the createItem() signal is connected @@ -506,7 +506,7 @@ void TransactionEditor::setupCategoryWidget(KMyMoneyCategory* category, const TQ default: categoryId = TQString(); category->setSplitTransaction(); - connect(category, TQT_SIGNAL(focusIn()), this, splitEditSlot); + connect(category, TQ_SIGNAL(focusIn()), this, splitEditSlot); #if 0 // FIXME must deal with the logic that suppressObjectCreation is // automatically turned off when the createItem() signal is connected @@ -527,7 +527,7 @@ bool TransactionEditor::enterTransactions(TQString& newId, bool askForSchedule, TQApplication::eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 10); // we don't need to update our widgets anymore, so we just disconnect the signal - disconnect(file, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotReloadEditWidgets())); + disconnect(file, TQ_SIGNAL(dataChanged()), this, TQ_SLOT(slotReloadEditWidgets())); KMyMoneyRegister::SelectedTransactions::iterator it_t; MyMoneyTransaction t; @@ -766,25 +766,25 @@ void StdTransactionEditor::createEditWidgets(void) KMyMoneyCategory* account = new KMyMoneyCategory; account->setHint(i18n("Account")); m_editWidgets["account"] = account; - connect(account, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(account, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdateAccount(const TQString&))); + connect(account, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(account, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdateAccount(const TQString&))); KMyMoneyPayeeCombo* payee = new KMyMoneyPayeeCombo; payee->setHint(i18n("Payer/Receiver")); m_editWidgets["payee"] = payee; - connect(payee, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(payee, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SIGNAL(createPayee(const TQString&, TQString&))); - connect(payee, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); - connect(payee, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdatePayee(const TQString&))); + connect(payee, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(payee, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SIGNAL(createPayee(const TQString&, TQString&))); + connect(payee, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); + connect(payee, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdatePayee(const TQString&))); KMyMoneyCategory* category = new KMyMoneyCategory(0, 0, true); category->setHint(i18n("Category/Account")); m_editWidgets["category"] = category; - connect(category, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdateCategory(const TQString&))); - connect(category, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); - connect(category, TQT_SIGNAL(createItem(const TQString&, TQString&)), this, TQT_SLOT(slotCreateCategory(const TQString&, TQString&))); - connect(category, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); - connect(category->splitButton(), TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditSplits())); + connect(category, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdateCategory(const TQString&))); + connect(category, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); + connect(category, TQ_SIGNAL(createItem(const TQString&, TQString&)), this, TQ_SLOT(slotCreateCategory(const TQString&, TQString&))); + connect(category, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); + connect(category->splitButton(), TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditSplits())); category->splitButton()->setDisabled(true); KTextEdit* memo = new KTextEdit; @@ -816,39 +816,39 @@ void StdTransactionEditor::createEditWidgets(void) kMyMoneyLineEdit* number = new kMyMoneyLineEdit; number->setHint(i18n("Number")); m_editWidgets["number"] = number; - connect(number, TQT_SIGNAL(lineChanged(const TQString&)), this, TQT_SLOT(slotNumberChanged(const TQString&))); + connect(number, TQ_SIGNAL(lineChanged(const TQString&)), this, TQ_SLOT(slotNumberChanged(const TQString&))); // number->installEventFilter(this); } m_editWidgets["postdate"] = new kMyMoneyDateInput; - connect(m_editWidgets["postdate"], TQT_SIGNAL(dateChanged(const TQDate&)), this, TQT_SLOT(slotUpdateButtonState())); + connect(m_editWidgets["postdate"], TQ_SIGNAL(dateChanged(const TQDate&)), this, TQ_SLOT(slotUpdateButtonState())); kMyMoneyEdit* value = new kMyMoneyEdit; m_editWidgets["amount"] = value; value->setResetButtonVisible(false); - connect(value, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateAmount(const TQString&))); - connect(value, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); + connect(value, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateAmount(const TQString&))); + connect(value, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); value = new kMyMoneyEdit; m_editWidgets["payment"] = value; value->setResetButtonVisible(false); - connect(value, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdatePayment(const TQString&))); - connect(value, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); + connect(value, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdatePayment(const TQString&))); + connect(value, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); value = new kMyMoneyEdit; m_editWidgets["deposit"] = value; value->setResetButtonVisible(false); - connect(value, TQT_SIGNAL(valueChanged(const TQString&)), this, TQT_SLOT(slotUpdateDeposit(const TQString&))); - connect(value, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); + connect(value, TQ_SIGNAL(valueChanged(const TQString&)), this, TQ_SLOT(slotUpdateDeposit(const TQString&))); + connect(value, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); KMyMoneyCashFlowCombo* cashflow = new KMyMoneyCashFlowCombo(0, 0, m_account.accountGroup()); m_editWidgets["cashflow"] = cashflow; - connect(cashflow, TQT_SIGNAL(directionSelected(KMyMoneyRegister::CashFlowDirection)), this, TQT_SLOT(slotUpdateCashFlow(KMyMoneyRegister::CashFlowDirection))); - connect(cashflow, TQT_SIGNAL(directionSelected(KMyMoneyRegister::CashFlowDirection)), this, TQT_SLOT(slotUpdateButtonState())); + connect(cashflow, TQ_SIGNAL(directionSelected(KMyMoneyRegister::CashFlowDirection)), this, TQ_SLOT(slotUpdateCashFlow(KMyMoneyRegister::CashFlowDirection))); + connect(cashflow, TQ_SIGNAL(directionSelected(KMyMoneyRegister::CashFlowDirection)), this, TQ_SLOT(slotUpdateButtonState())); KMyMoneyReconcileCombo* reconcile = new KMyMoneyReconcileCombo; m_editWidgets["status"] = reconcile; - connect(reconcile, TQT_SIGNAL(itemSelected(const TQString&)), this, TQT_SLOT(slotUpdateButtonState())); + connect(reconcile, TQ_SIGNAL(itemSelected(const TQString&)), this, TQ_SLOT(slotUpdateButtonState())); KMyMoneyRegister::TQWidgetContainer::iterator it_w; for(it_w = m_editWidgets.begin(); it_w != m_editWidgets.end(); ++it_w) { @@ -872,7 +872,7 @@ void StdTransactionEditor::createEditWidgets(void) KMyMoneyTransactionForm::TabBar* tabbar = new KMyMoneyTransactionForm::TabBar; m_editWidgets["tabbar"] = tabbar; tabbar->copyTabs(form->tabBar()); - connect(tabbar, TQT_SIGNAL(tabSelected(int)), this, TQT_SLOT(slotUpdateAction(int))); + connect(tabbar, TQ_SIGNAL(tabSelected(int)), this, TQ_SLOT(slotUpdateAction(int))); } label = new TQLabel(i18n("Date"), 0); @@ -888,7 +888,7 @@ void StdTransactionEditor::createEditWidgets(void) void StdTransactionEditor::setupCategoryWidget(TQString& categoryId) { - TransactionEditor::setupCategoryWidget(dynamic_cast<KMyMoneyCategory*>(m_editWidgets["category"]), m_splits, categoryId, TQT_SLOT(slotEditSplits())); + TransactionEditor::setupCategoryWidget(dynamic_cast<KMyMoneyCategory*>(m_editWidgets["category"]), m_splits, categoryId, TQ_SLOT(slotEditSplits())); if(m_splits.count() == 1) m_shares = m_splits[0].shares(); @@ -933,7 +933,7 @@ void StdTransactionEditor::loadEditWidgets(KMyMoneyRegister::Action action) // load the category widget KMyMoneyCategory* category = dynamic_cast<KMyMoneyCategory*>(m_editWidgets["category"]); - disconnect(category, TQT_SIGNAL(focusIn()), this, TQT_SLOT(slotEditSplits())); + disconnect(category, TQ_SIGNAL(focusIn()), this, TQ_SLOT(slotEditSplits())); // check if the current transaction has a reference to an equity account bool haveEquityAccount = false; @@ -1880,8 +1880,8 @@ int StdTransactionEditor::slotEditSplits(void) 0, m_priceInfo, m_regForm); - connect(dlg, TQT_SIGNAL(objectCreation(bool)), this, TQT_SIGNAL(objectCreation(bool))); - connect(dlg, TQT_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&)), this, TQT_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&))); + connect(dlg, TQ_SIGNAL(objectCreation(bool)), this, TQ_SIGNAL(objectCreation(bool))); + connect(dlg, TQ_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&)), this, TQ_SIGNAL(createCategory(MyMoneyAccount&, const MyMoneyAccount&))); if((rc = dlg->exec()) == TQDialog::Accepted) { m_transaction = dlg->transaction(); |