summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kinvestmentview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views/kinvestmentview.cpp')
-rw-r--r--kmymoney2/views/kinvestmentview.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/kmymoney2/views/kinvestmentview.cpp b/kmymoney2/views/kinvestmentview.cpp
index ae8cc11..d6ebb1a 100644
--- a/kmymoney2/views/kinvestmentview.cpp
+++ b/kmymoney2/views/kinvestmentview.cpp
@@ -62,8 +62,8 @@ public:
-KInvestmentView::KInvestmentView(QWidget *parent, const char *name) :
- KInvestmentViewDecl(parent,name),
+KInvestmentView::KInvestmentView(TQWidget *tqparent, const char *name) :
+ KInvestmentViewDecl(tqparent,name),
d(new Private)
{
m_table->setRootIsDecorated(false);
@@ -72,31 +72,31 @@ KInvestmentView::KInvestmentView(QWidget *parent, const char *name) :
m_table->addColumn(i18n("Symbol"));
int col = m_table->addColumn(i18n("Value"));
- m_table->setColumnAlignment(col, Qt::AlignRight);
+ m_table->setColumnAlignment(col, TQt::AlignRight);
col = m_table->addColumn(i18n("Quantity"));
- m_table->setColumnAlignment(col, Qt::AlignRight);
+ m_table->setColumnAlignment(col, TQt::AlignRight);
col = m_table->addColumn(i18n("Price"));
- m_table->setColumnAlignment(col, Qt::AlignRight);
+ m_table->setColumnAlignment(col, TQt::AlignRight);
m_table->setMultiSelection(false);
- m_table->setColumnWidthMode(0, QListView::Maximum);
+ m_table->setColumnWidthMode(0, TQListView::Maximum);
m_table->header()->setResizeEnabled(true);
m_table->setAllColumnsShowFocus(true);
m_table->setShowSortIndicator(true);
m_table->restoreLayout(KGlobal::config(), "Investment Settings");
- connect(m_table, SIGNAL(contextMenu(KListView*, QListViewItem* , const QPoint&)),
- this, SLOT(slotListContextMenu(KListView*, QListViewItem*, const QPoint&)));
- connect(m_table, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(slotSelectionChanged(QListViewItem *)));
+ connect(m_table, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem* , const TQPoint&)),
+ this, TQT_SLOT(slotListContextMenu(KListView*, TQListViewItem*, const TQPoint&)));
+ connect(m_table, TQT_SIGNAL(selectionChanged(TQListViewItem *)), this, TQT_SLOT(slotSelectionChanged(TQListViewItem *)));
- connect(m_accountComboBox, SIGNAL(accountSelected(const QString&)),
- this, SLOT(slotSelectAccount(const QString&)));
+ connect(m_accountComboBox, TQT_SIGNAL(accountSelected(const TQString&)),
+ this, TQT_SLOT(slotSelectAccount(const TQString&)));
- connect(m_table, SIGNAL(doubleClicked(QListViewItem*,const QPoint&, int)), kmymoney2->action("investment_edit"), SLOT(activate()));
+ connect(m_table, TQT_SIGNAL(doubleClicked(TQListViewItem*,const TQPoint&, int)), kmymoney2->action("investment_edit"), TQT_SLOT(activate()));
- connect(MyMoneyFile::instance(), SIGNAL(dataChanged()), this, SLOT(slotLoadView()));
+ connect(MyMoneyFile::instance(), TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotLoadView()));
}
KInvestmentView::~KInvestmentView()
@@ -105,7 +105,7 @@ KInvestmentView::~KInvestmentView()
delete d;
}
-void KInvestmentView::slotSelectionChanged(QListViewItem *item)
+void KInvestmentView::slotSelectionChanged(TQListViewItem *item)
{
kmymoney2->slotSelectInvestment();
@@ -121,7 +121,7 @@ void KInvestmentView::slotSelectionChanged(QListViewItem *item)
}
}
-void KInvestmentView::slotListContextMenu(KListView* /* lv */, QListViewItem* /*item*/, const QPoint& /*point*/)
+void KInvestmentView::slotListContextMenu(KListView* /* lv */, TQListViewItem* /*item*/, const TQPoint& /*point*/)
{
kmymoney2->slotSelectInvestment();
KInvestmentListItem *pItem = dynamic_cast<KInvestmentListItem*>(m_table->selectedItem());
@@ -160,9 +160,9 @@ void KInvestmentView::loadAccounts(void)
m_accountComboBox->loadList(MyMoneyAccount::Investment);
if(d->m_account.id().isEmpty()) {
- QStringList list = m_accountComboBox->accountList();
+ TQStringList list = m_accountComboBox->accountList();
if(list.count()) {
- QStringList::Iterator it;
+ TQStringList::Iterator it;
for(it = list.begin(); it != list.end(); ++it) {
MyMoneyAccount a = file->account(*it);
if(a.accountType() == MyMoneyAccount::Investment) {
@@ -205,7 +205,7 @@ bool KInvestmentView::slotSelectAccount(const MyMoneyObject& obj)
return rc;
}
-bool KInvestmentView::slotSelectAccount(const QString& id, const QString& transactionId, const bool /* reconciliation*/)
+bool KInvestmentView::slotSelectAccount(const TQString& id, const TQString& transactionId, const bool /* reconciliation*/)
{
bool rc = true;
@@ -215,9 +215,9 @@ bool KInvestmentView::slotSelectAccount(const QString& id, const QString& transa
try {
d->m_account = MyMoneyFile::instance()->account(id);
// if a stock account is selected, we show the
- // the corresponding parent (investment) account
+ // the corresponding tqparent (investment) account
if(d->m_account.isInvest()) {
- d->m_account = MyMoneyFile::instance()->account(d->m_account.parentAccountId());
+ d->m_account = MyMoneyFile::instance()->account(d->m_account.tqparentAccountId());
}
// TODO if we don't have an investment account, then we should switch to the ledger view
d->m_newAccountLoaded = true;
@@ -246,8 +246,8 @@ bool KInvestmentView::slotSelectAccount(const QString& id, const QString& transa
void KInvestmentView::clear(void)
{
// setup header font
- QFont font = KMyMoneyGlobalSettings::listHeaderFont();
- QFontMetrics fm( font );
+ TQFont font = KMyMoneyGlobalSettings::listHeaderFont();
+ TQFontMetrics fm( font );
int height = fm.lineSpacing()+6;
m_table->header()->setMinimumHeight(height);
m_table->header()->setMaximumHeight(height);
@@ -261,7 +261,7 @@ void KInvestmentView::clear(void)
m_table->clear();
// and the selected account in the combo box
- m_accountComboBox->setSelected(QString());
+ m_accountComboBox->setSelected(TQString());
}
void KInvestmentView::loadView(void)
@@ -287,9 +287,9 @@ void KInvestmentView::loadView(void)
|| !KMyMoneyGlobalSettings::hideClosedAccounts();
try {
d->m_account = file->account(d->m_account.id());
- QStringList securities = d->m_account.accountList();
+ TQStringList securities = d->m_account.accountList();
- for(QStringList::ConstIterator it = securities.begin(); it != securities.end(); ++it) {
+ for(TQStringList::ConstIterator it = securities.begin(); it != securities.end(); ++it) {
MyMoneyAccount acc = file->account(*it);
if(!acc.isClosed() || showClosedAccounts)
new KInvestmentListItem(m_table, acc);