diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:10:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:10:39 -0600 |
commit | 28723595822268551d3e050c3a83bf6ca5e17dd5 (patch) | |
tree | c84224b55e09375ad246f24649df1ffc89c04d1d /kmymoney2/kmymoney2.cpp | |
parent | 1f9d00360b9018301630ce062d7dda0c6583edfb (diff) | |
download | kmymoney-28723595822268551d3e050c3a83bf6ca5e17dd5.tar.gz kmymoney-28723595822268551d3e050c3a83bf6ca5e17dd5.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kmymoney2/kmymoney2.cpp')
-rw-r--r-- | kmymoney2/kmymoney2.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kmymoney2/kmymoney2.cpp b/kmymoney2/kmymoney2.cpp index 4e03477..8e519b4 100644 --- a/kmymoney2/kmymoney2.cpp +++ b/kmymoney2/kmymoney2.cpp @@ -558,7 +558,7 @@ void KMyMoney2App::initStatusBar(void) progressBar->setLineWidth(0); progressBar->setBackgroundMode(TQWidget::PaletteBackground); statusBar()->addWidget(progressBar); - progressBar->setFixedHeight(progressBar->tqsizeHint().height() - 8); + progressBar->setFixedHeight(progressBar->sizeHint().height() - 8); // hide the progress bar for now slotStatusProgressBar(-1, -1); @@ -722,7 +722,7 @@ void KMyMoney2App::slotPerformanceTest(void) measurement[0] = measurement[1] = 0; if(MyMoneyFile::instance()->asset().accountCount()) { MyMoneyTransactionFilter filter(MyMoneyFile::instance()->asset().accountList()[0]); - filter.setDateFilter(TQDate(), TQDate::tqcurrentDate()); + filter.setDateFilter(TQDate(), TQDate::currentDate()); TQValueList<MyMoneyTransaction> list; timer.start(); @@ -741,7 +741,7 @@ void KMyMoney2App::slotPerformanceTest(void) measurement[0] = measurement[1] = 0; if(MyMoneyFile::instance()->asset().accountCount()) { MyMoneyTransactionFilter filter(MyMoneyFile::instance()->asset().accountList()[0]); - filter.setDateFilter(TQDate(), TQDate::tqcurrentDate()); + filter.setDateFilter(TQDate(), TQDate::currentDate()); TQValueList<MyMoneyTransaction> list; timer.start(); @@ -1963,9 +1963,9 @@ void KMyMoney2App::slotProcessExited(void) proc.clearArguments(); TQString today; today.sprintf("-%04d-%02d-%02d.kmy", - TQDate::tqcurrentDate().year(), - TQDate::tqcurrentDate().month(), - TQDate::tqcurrentDate().day()); + TQDate::currentDate().year(), + TQDate::currentDate().month(), + TQDate::currentDate().day()); TQString backupfile = m_mountpoint + "/" + m_fileName.fileName(false); KMyMoneyUtils::appendCorrectFileExt(backupfile, today); @@ -2410,8 +2410,8 @@ void KMyMoney2App::slotCategoryNew(MyMoneyAccount& account, const MyMoneyAccount // I have seen in some usability tests. So we just delete it right away. KConfig *kconfig = KGlobal::config(); if(kconfig) { - kconfig->setGroup(TQString::tqfromLatin1("Notification Messages")); - kconfig->deleteEntry(TQString::tqfromLatin1("CreateNewCategories")); + kconfig->setGroup(TQString::fromLatin1("Notification Messages")); + kconfig->deleteEntry(TQString::fromLatin1("CreateNewCategories")); } } } @@ -2461,7 +2461,7 @@ void KMyMoney2App::createCategory(MyMoneyAccount& account, const MyMoneyAccount& void KMyMoney2App::slotAccountNew(void) { MyMoneyAccount acc; - acc.setOpeningDate(TQDate::tqcurrentDate()); + acc.setOpeningDate(TQDate::currentDate()); slotAccountNew(acc); } @@ -2584,8 +2584,8 @@ void KMyMoney2App::slotInvestmentDelete(void) // I have seen in some usability tests. So we just delete it right away. KConfig *kconfig = KGlobal::config(); if(kconfig) { - kconfig->setGroup(TQString::tqfromLatin1("Notification Messages")); - kconfig->deleteEntry(TQString::tqfromLatin1("DeleteInvestment")); + kconfig->setGroup(TQString::fromLatin1("Notification Messages")); + kconfig->deleteEntry(TQString::fromLatin1("DeleteInvestment")); } } } @@ -3772,14 +3772,14 @@ void KMyMoney2App::slotPayeeNew(const TQString& newnameBase, TQString& id) if(newnameBase != i18n("New Payee")) { // Ask the user if that is what he intended to do? TQString msg = TQString("<qt>") + i18n("Do you want to add <b>%1</b> as payer/receiver ?").tqarg(newnameBase) + TQString("</qt>"); - const TQString dontAskAgain = TQString::tqfromLatin1("NewPayee"); + const TQString dontAskAgain = TQString::fromLatin1("NewPayee"); if(KMessageBox::questionYesNo(this, msg, i18n("New payee/receiver"), KStdGuiItem::yes(), KStdGuiItem::no(), dontAskAgain) == KMessageBox::No) { doit = false; // we should not keep the 'no' setting because that can confuse people like // I have seen in some usability tests. So we just delete it right away. KConfig *kconfig = KGlobal::config(); if(kconfig) { - kconfig->setGroup(TQString::tqfromLatin1("Notification Messages")); + kconfig->setGroup(TQString::fromLatin1("Notification Messages")); kconfig->deleteEntry(dontAskAgain); } } @@ -4097,7 +4097,7 @@ void KMyMoney2App::slotCurrencySetBase(void) void KMyMoney2App::slotBudgetNew(void) { - TQDate date = TQDate::tqcurrentDate(Qt::LocalTime); + TQDate date = TQDate::currentDate(Qt::LocalTime); date.setYMD(date.year(), 1, 1); TQString newname = i18n("Budget %1").tqarg(TQString::number(date.year())); @@ -4186,7 +4186,7 @@ void KMyMoney2App::slotBudgetChangeYear(void) int current = 0; bool haveCurrent = false; MyMoneyBudget budget = *(m_selectedBudgets.begin()); - for(int i = (TQDate::tqcurrentDate().year()-3); i < (TQDate::tqcurrentDate().year()+5); ++i) { + for(int i = (TQDate::currentDate().year()-3); i < (TQDate::currentDate().year()+5); ++i) { years << TQString("%1").tqarg(i); if(i == budget.budgetStart().year()) { haveCurrent = true; @@ -4373,7 +4373,7 @@ void KMyMoney2App::slotTransactionDuplicate(void) t.setEntryDate(TQDate()); t.clearId(); // and set the post date to today - t.setPostDate(TQDate::tqcurrentDate()); + t.setPostDate(TQDate::currentDate()); MyMoneyFile::instance()->addTransaction(t); lt = t; @@ -5721,7 +5721,7 @@ void KMyMoney2App::slotCheckSchedules(void) KMSTATUS(i18n("Checking for overdue scheduled transactions...")); MyMoneyFile *file = MyMoneyFile::instance(); - TQDate checkDate = TQDate::tqcurrentDate().addDays(KMyMoneyGlobalSettings::checkSchedulePreview()); + TQDate checkDate = TQDate::currentDate().addDays(KMyMoneyGlobalSettings::checkSchedulePreview()); TQValueList<MyMoneySchedule> scheduleList = file->scheduleList(); TQValueList<MyMoneySchedule>::Iterator it; @@ -5987,7 +5987,7 @@ void KMyMoney2App::slotAutoSave(void) void KMyMoney2App::slotDateChanged(void) { - TQDateTime dt = TQDateTime::tqcurrentDateTime(); + TQDateTime dt = TQDateTime::currentDateTime(); TQDateTime nextDay( TQDate(dt.date().addDays(1)), TQTime(0, 0, 0) ); TQTimer::singleShot(dt.secsTo(nextDay)*1000, TQT_TQOBJECT(this), TQT_SLOT(slotDateChanged())); @@ -6184,12 +6184,12 @@ void KMyMoney2App::slotAccountUpdateOnline(void) } } -KMtqStatus::KMtqStatus (const TQString &text) +KMStatus::KMStatus (const TQString &text) { m_prevText = kmymoney2->slotStatusMsg(text); } -KMtqStatus::~KMtqStatus() +KMStatus::~KMStatus() { kmymoney2->slotStatusMsg(m_prevText); } |