summaryrefslogtreecommitdiffstats
path: root/korganizer/kowhatsnextview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /korganizer/kowhatsnextview.cpp
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'korganizer/kowhatsnextview.cpp')
-rw-r--r--korganizer/kowhatsnextview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 722ba2681..c98c6c31d 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -22,9 +22,9 @@
without including the source code for TQt in the source distribution.
*/
-#include <layout.h>
-#include <textbrowser.h>
-#include <textcodec.h>
+#include <tqlayout.h>
+#include <tqtextbrowser.h>
+#include <tqtextcodec.h>
#include <tqfileinfo.h>
#include <tqlabel.h>
@@ -65,9 +65,9 @@ KOWhatsNextView::KOWhatsNextView(Calendar *calendar, TQWidget *parent,
: KOrg::BaseView(calendar, parent, name)
{
// TQLabel *dateLabel =
-// new TQLabel(KGlobal::locale()->formatDate(TQDate::currentDate()),this);
+// new TQLabel(KGlobal::locale()->formatDate(TQDate::tqcurrentDate()),this);
// dateLabel->setMargin(2);
-// dateLabel->setAlignment(AlignCenter);
+// dateLabel->tqsetAlignment(AlignCenter);
mView = new WhatsNextTextBrowser(this);
connect(mView,TQT_SIGNAL(showIncidence(const TQString &)),TQT_SLOT(showIncidence(const TQString &)));
@@ -81,7 +81,7 @@ KOWhatsNextView::~KOWhatsNextView()
{
}
-int KOWhatsNextView::currentDateCount()
+int KOWhatsNextView::tqcurrentDateCount()
{
return mStartDate.daysTo( mEndDate );
}
@@ -106,8 +106,8 @@ void KOWhatsNextView::updateView()
mText += KGlobal::locale()->formatDate( mStartDate );
} else {
mText += i18n("Date from - to", "%1 - %2")
- .arg( KGlobal::locale()->formatDate( mStartDate ) )
- .arg( KGlobal::locale()->formatDate( mEndDate ) );
+ .tqarg( KGlobal::locale()->formatDate( mStartDate ) )
+ .tqarg( KGlobal::locale()->formatDate( mEndDate ) );
}
mText+="</h2>\n";
@@ -183,7 +183,7 @@ void KOWhatsNextView::updateView()
TQStringList myEmails( KOPrefs::instance()->allEmails() );
int replies = 0;
- events = calendar()->events( TQDate::currentDate(), TQDate(2975,12,6) );
+ events = calendar()->events( TQDate::tqcurrentDate(), TQDate(2975,12,6) );
Event::List::ConstIterator it2;
for( it2 = events.begin(); it2 != events.end(); ++it2 ) {
Event *ev = *it2;
@@ -281,14 +281,14 @@ void KOWhatsNextView::appendEvent( Incidence *ev, const TQDateTime &start,
if ( starttime.date().daysTo( endtime.date() ) >= 1 ) {
mText += i18n("date from - to", "%1 - %2")
- .arg( KGlobal::locale()->formatDateTime( starttime ) )
- .arg( KGlobal::locale()->formatDateTime( endtime ) );
+ .tqarg( KGlobal::locale()->formatDateTime( starttime ) )
+ .tqarg( KGlobal::locale()->formatDateTime( endtime ) );
} else {
/*if (reply) */
mText += i18n("date, from - to", "%1, %2 - %3")
- .arg( KGlobal::locale()->formatDate( starttime.date(), true ) )
- .arg( KGlobal::locale()->formatTime( starttime.time() ) )
- .arg( KGlobal::locale()->formatTime( endtime.time() ) );
+ .tqarg( KGlobal::locale()->formatDate( starttime.date(), true ) )
+ .tqarg( KGlobal::locale()->formatTime( starttime.time() ) )
+ .tqarg( KGlobal::locale()->formatTime( endtime.time() ) );
}
}
// }