summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kbalancechartdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/kbalancechartdlg.cpp')
-rw-r--r--kmymoney2/dialogs/kbalancechartdlg.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kmymoney2/dialogs/kbalancechartdlg.cpp b/kmymoney2/dialogs/kbalancechartdlg.cpp
index 05eccf3..f1fcdda 100644
--- a/kmymoney2/dialogs/kbalancechartdlg.cpp
+++ b/kmymoney2/dialogs/kbalancechartdlg.cpp
@@ -22,8 +22,8 @@
// ----------------------------------------------------------------------------
// QT Includes
-#include <qlayout.h>
-#include <qframe.h>
+#include <tqlayout.h>
+#include <tqframe.h>
// ----------------------------------------------------------------------------
// KDE Includes
@@ -52,22 +52,22 @@
#define KMM_KDCHART_PROPSET_NORMAL_DATA KDCHART_PROPSET_NORMAL_DATA
#endif
-KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, QWidget* parent, const char* name) :
- KDialog(parent, name)
+KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, TQWidget* tqparent, const char* name) :
+ KDialog(tqparent, name)
{
#ifdef HAVE_KDCHART
- setCaption(i18n("Balance of %1").arg(account.name()));
+ setCaption(i18n("Balance of %1").tqarg(account.name()));
setSizeGripEnabled( TRUE );
setModal( TRUE );
- QVBoxLayout* KBalanceChartDlgLayout = new QVBoxLayout( this, 11, 6, "KBalanceChartDlgLayout");
+ TQVBoxLayout* KBalanceChartDlgLayout = new TQVBoxLayout( this, 11, 6, "KBalanceChartDlgLayout");
MyMoneyReport reportCfg = MyMoneyReport(
MyMoneyReport::eAssetLiability,
MyMoneyReport::eMonths,
MyMoneyTransactionFilter::userDefined, // overridden by the setDateFilter() call below
MyMoneyReport::eDetailTotal,
- i18n("%1 Balance History").arg(account.name()),
+ i18n("%1 Balance History").tqarg(account.name()),
i18n("Generated Report")
);
reportCfg.setChartByDefault(true);
@@ -76,14 +76,14 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, QWidget* paren
reportCfg.setChartType(MyMoneyReport::eChartLine);
reportCfg.setIncludingSchedules( true );
if(account.accountType() == MyMoneyAccount::Investment) {
- QStringList::const_iterator it_a;
+ TQStringList::const_iterator it_a;
for(it_a = account.accountList().begin(); it_a != account.accountList().end(); ++it_a)
reportCfg.addAccount(*it_a);
} else
reportCfg.addAccount(account.id());
reportCfg.setColumnsAreDays( true );
reportCfg.setConvertCurrency( false );
- reportCfg.setDateFilter(QDate::currentDate().addDays(-90),QDate::currentDate().addDays(+90));
+ reportCfg.setDateFilter(TQDate::tqcurrentDate().addDays(-90),TQDate::tqcurrentDate().addDays(+90));
reports::PivotTable table(reportCfg);
@@ -102,7 +102,7 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, QWidget* paren
int m_idPropFutureValue = chartWidget->params()->registerProperties(propSetFutureValue);
KDChartPropertySet propSetLastValue("last value", m_idPropFutureValue);
- propSetLastValue.setExtraLinesAlign(KDChartPropertySet::OwnID, Qt::AlignLeft | Qt::AlignBottom);
+ propSetLastValue.setExtraLinesAlign(KDChartPropertySet::OwnID, TQt::AlignLeft | TQt::AlignBottom);
propSetLastValue.setExtraLinesWidth(KDChartPropertySet::OwnID, -4);
propSetLastValue.setExtraLinesColor(KDChartPropertySet::OwnID, KMyMoneyGlobalSettings::listGridColor());
@@ -110,7 +110,7 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, QWidget* paren
KDChartPropertySet propSetMinBalance("min balance", m_idPropFutureValue);
propSetMinBalance.setLineStyle(KDChartPropertySet::OwnID, Qt::NoPen);
- propSetMinBalance.setExtraLinesAlign(KDChartPropertySet::OwnID, Qt::AlignLeft | Qt::AlignRight);
+ propSetMinBalance.setExtraLinesAlign(KDChartPropertySet::OwnID, TQt::AlignLeft | TQt::AlignRight);
int m_idPropMinBalance = chartWidget->params()->registerProperties(propSetMinBalance);
KDChartPropertySet propSetMaxCredit("max credit", m_idPropMinBalance);
@@ -180,13 +180,13 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, QWidget* paren
- QFrame* line1 = new QFrame( this, "line1" );
- line1->setFrameShape( QFrame::HLine );
- line1->setFrameShadow( QFrame::Sunken );
- line1->setFrameShape( QFrame::HLine );
+ TQFrame* line1 = new TQFrame( this, "line1" );
+ line1->setFrameShape( TQFrame::HLine );
+ line1->setFrameShadow( TQFrame::Sunken );
+ line1->setFrameShape( TQFrame::HLine );
KBalanceChartDlgLayout->addWidget(line1);
- QHBoxLayout* Layout1 = new QHBoxLayout( KBalanceChartDlgLayout, 6, "Layout1");
+ TQHBoxLayout* Layout1 = new TQHBoxLayout( KBalanceChartDlgLayout, 6, "Layout1");
#if 0
KPushButton* buttonHelp = new KPushButton( this, "buttonHelp" );
buttonHelp->setAutoDefault( TRUE );
@@ -194,8 +194,8 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, QWidget* paren
Layout1->addWidget( buttonHelp );
#endif
- QSpacerItem* Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
- Layout1->addItem( Horizontal_Spacing2 );
+ TQSpacerItem*Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
+ Layout1->addItem(Horizontal_Spacing2 );
#if 0
KPushButton* buttonOk = new KPushButton( this, "buttonOk" );
@@ -210,10 +210,10 @@ KBalanceChartDlg::KBalanceChartDlg(const MyMoneyAccount& account, QWidget* paren
buttonClose->setGuiItem(KStdGuiItem::Close);
Layout1->addWidget( buttonClose );
- // connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
- connect( buttonClose, SIGNAL( clicked() ), this, SLOT( accept() ) );
+ // connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
+ connect( buttonClose, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
- resize( QSize(700, 500).expandedTo(minimumSizeHint()) );
+ resize( TQSize(700, 500).expandedTo(tqminimumSizeHint()) );
clearWState( WState_Polished );
#endif
}