From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: TQt4 port kmymoney This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmymoney2/dialogs/kgncpricesourcedlg.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kmymoney2/dialogs/kgncpricesourcedlg.cpp') diff --git a/kmymoney2/dialogs/kgncpricesourcedlg.cpp b/kmymoney2/dialogs/kgncpricesourcedlg.cpp index 2246e01..5058d5b 100644 --- a/kmymoney2/dialogs/kgncpricesourcedlg.cpp +++ b/kmymoney2/dialogs/kgncpricesourcedlg.cpp @@ -17,12 +17,12 @@ // ---------------------------------------------------------------------------- // QT Includes -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include // ---------------------------------------------------------------------------- // KDE Includes @@ -36,17 +36,17 @@ #include "kgncpricesourcedlg.h" #include "../converter/webpricequote.h" -KGncPriceSourceDlg::KGncPriceSourceDlg(QWidget *parent, const char *name) - : KGncPriceSourceDlgDecl(parent, name) +KGncPriceSourceDlg::KGncPriceSourceDlg(TQWidget *tqparent, const char *name) + : KGncPriceSourceDlgDecl(tqparent, name) { } -KGncPriceSourceDlg::KGncPriceSourceDlg(const QString &stockName, const QString &gncSource){ +KGncPriceSourceDlg::KGncPriceSourceDlg(const TQString &stockName, const TQString &gncSource){ // signals and slots connections - connect( buttonGroup5, SIGNAL( released(int) ), this, SLOT( buttonPressed(int) ) ); - connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( slotHelp() ) ); + connect( buttonGroup5, TQT_SIGNAL( released(int) ), this, TQT_SLOT( buttonPressed(int) ) ); + connect( buttonHelp, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotHelp() ) ); // initialize data fields - textStockName->setText (i18n ("Investment: %1").arg(stockName)); - textGncSource->setText (i18n ("Quote source: %1").arg(gncSource)); + textStockName->setText (i18n ("Investment: %1").tqarg(stockName)); + textGncSource->setText (i18n ("Quote source: %1").tqarg(gncSource)); listKnownSource->insertStringList (WebPriceQuote::quoteSources()); lineUserSource->setText (gncSource); checkAlwaysUse->setChecked(true); @@ -87,8 +87,8 @@ void KGncPriceSourceDlg::buttonPressed (int buttonId) { } } -QString KGncPriceSourceDlg::selectedSource() const { - QString s; +TQString KGncPriceSourceDlg::selectedSource() const { + TQString s; switch (m_currentButton) { case NOSOURCE: s = ""; break; case KMMSOURCE: s = listKnownSource->currentText(); break; -- cgit v1.2.1