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/plugins/viewinterface.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'kmymoney2/plugins/viewinterface.h') diff --git a/kmymoney2/plugins/viewinterface.h b/kmymoney2/plugins/viewinterface.h index d7c7424..edec926 100644 --- a/kmymoney2/plugins/viewinterface.h +++ b/kmymoney2/plugins/viewinterface.h @@ -25,10 +25,10 @@ // ---------------------------------------------------------------------------- // QT Includes -#include -#include -#include -class QFrame; +#include +#include +#include +class TQFrame; // ---------------------------------------------------------------------------- // KDE Includes @@ -53,27 +53,28 @@ namespace KMyMoneyPlugin { * add new view pages to the JanusWidget of KMyMoney. It * also gives access to the account context menu. */ -class KMYMONEY_EXPORT ViewInterface : public QObject { +class KMYMONEY_EXPORT ViewInterface : public TQObject { Q_OBJECT + TQ_OBJECT public: - ViewInterface(QObject* parent, const char* name = 0); + ViewInterface(TQObject* tqparent, const char* name = 0); ~ViewInterface() {} /** * This method creates a new page in the application. * See KJanusWidget::addPage() for details. */ - virtual KMyMoneyViewBase* addPage(const QString& item, const QString& icon) = 0; + virtual KMyMoneyViewBase* addPage(const TQString& item, const TQString& icon) = 0; /** - * This method adds a widget to the layout of the view + * This method adds a widget to the tqlayout of the view * created with addPage() * * @param view pointer to view widget * @param w widget to be added to @p page */ - virtual void addWidget(KMyMoneyViewBase* view, QWidget* w) = 0; + virtual void addWidget(KMyMoneyViewBase* view, TQWidget* w) = 0; signals: /** @@ -87,7 +88,7 @@ signals: /** * This signal is emitted when a transaction/list of transactions has been selected by * the GUI. If no transaction is selected or the selection is removed, - * @p transactions is identical to an empty QValueList. This signal is used + * @p transactions is identical to an empty TQValueList. This signal is used * by plugins to get information about changes. */ void transactionsSelected(const KMyMoneyRegister::SelectedTransactions& transactions); @@ -109,10 +110,10 @@ signals: * @param date the reconciliation date as provided through the dialog * @param startingBalance the starting balance as provided through the dialog * @param endingBalance the ending balance as provided through the dialog - * @param transactionList reference to QValueList of QPair containing all + * @param transactionList reference to TQValueList of TQPair containing all * transaction/split pairs processed by the reconciliation. */ - void accountReconciled(const MyMoneyAccount& account, const QDate& date, const MyMoneyMoney& startingBalance, const MyMoneyMoney& endingBalance, const QValueList >& transactionList); + void accountReconciled(const MyMoneyAccount& account, const TQDate& date, const MyMoneyMoney& startingBalance, const MyMoneyMoney& endingBalance, const TQValueList >& transactionList); void viewStateChanged(bool); -- cgit v1.2.1