summaryrefslogtreecommitdiffstats
path: root/korganizer/kojournalview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kojournalview.cpp')
-rw-r--r--korganizer/kojournalview.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp
index dd064169b..e8de3daed 100644
--- a/korganizer/kojournalview.cpp
+++ b/korganizer/kojournalview.cpp
@@ -25,11 +25,11 @@
//
// View of Journal entries
-#include <qlayout.h>
-#include <qpopupmenu.h>
-#include <qvbox.h>
-#include <qlabel.h>
-#include <qscrollview.h>
+#include <tqlayout.h>
+#include <tqpopupmenu.h>
+#include <tqvbox.h>
+#include <tqlabel.h>
+#include <tqscrollview.h>
#include <klocale.h>
#include <kdebug.h>
@@ -42,17 +42,17 @@
#include "koglobals.h"
using namespace KOrg;
-KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent,
+KOJournalView::KOJournalView(Calendar *calendar, TQWidget *parent,
const char *name)
: KOrg::BaseView(calendar, parent, name)
{
- QVBoxLayout*topLayout = new QVBoxLayout( this );
+ TQVBoxLayout*topLayout = new TQVBoxLayout( this );
topLayout->setAutoAdd(true);
- mSV = new QScrollView( this, "JournalScrollView" );
- mVBox = new QVBox( mSV->viewport() );
- mSV->setVScrollBarMode( QScrollView::Auto );
- mSV->setHScrollBarMode( QScrollView::AlwaysOff );
- mSV->setResizePolicy( QScrollView::AutoOneFit );
+ mSV = new TQScrollView( this, "JournalScrollView" );
+ mVBox = new TQVBox( mSV->viewport() );
+ mSV->setVScrollBarMode( TQScrollView::Auto );
+ mSV->setHScrollBarMode( TQScrollView::AlwaysOff );
+ mSV->setResizePolicy( TQScrollView::AutoOneFit );
mSV->addChild( mVBox );
// mVBox->setSpacing( 10 );
}
@@ -61,7 +61,7 @@ KOJournalView::~KOJournalView()
{
}
-void KOJournalView::appendJournal( Journal*journal, const QDate &dt)
+void KOJournalView::appendJournal( Journal*journal, const TQDate &dt)
{
JournalDateEntry *entry = 0;
if ( mEntries.contains( dt ) ) {
@@ -71,20 +71,20 @@ void KOJournalView::appendJournal( Journal*journal, const QDate &dt)
entry->setDate( dt );
entry->setIncidenceChanger( mChanger );
entry->show();
- connect( this, SIGNAL(flushEntries()), entry, SIGNAL(flushEntries()) );
- connect( this, SIGNAL(setIncidenceChangerSignal( IncidenceChangerBase * ) ),
- entry, SLOT(setIncidenceChanger( IncidenceChangerBase * ) ) );
- connect( this, SIGNAL( journalEdited( Journal* ) ),
- entry, SLOT( journalEdited( Journal* ) ) );
- connect( this, SIGNAL( journalDeleted( Journal* ) ),
- entry, SLOT( journalDeleted( Journal* ) ) );
-
- connect( entry, SIGNAL( editIncidence( Incidence* ) ),
- this, SIGNAL( editIncidenceSignal( Incidence* ) ) );
- connect( entry, SIGNAL( deleteIncidence( Incidence* ) ),
- this, SIGNAL( deleteIncidenceSignal( Incidence* ) ) );
- connect( entry, SIGNAL( newJournal( const QDate & ) ),
- this, SIGNAL( newJournalSignal( const QDate & ) ) );
+ connect( this, TQT_SIGNAL(flushEntries()), entry, TQT_SIGNAL(flushEntries()) );
+ connect( this, TQT_SIGNAL(setIncidenceChangerSignal( IncidenceChangerBase * ) ),
+ entry, TQT_SLOT(setIncidenceChanger( IncidenceChangerBase * ) ) );
+ connect( this, TQT_SIGNAL( journalEdited( Journal* ) ),
+ entry, TQT_SLOT( journalEdited( Journal* ) ) );
+ connect( this, TQT_SIGNAL( journalDeleted( Journal* ) ),
+ entry, TQT_SLOT( journalDeleted( Journal* ) ) );
+
+ connect( entry, TQT_SIGNAL( editIncidence( Incidence* ) ),
+ this, TQT_SIGNAL( editIncidenceSignal( Incidence* ) ) );
+ connect( entry, TQT_SIGNAL( deleteIncidence( Incidence* ) ),
+ this, TQT_SIGNAL( deleteIncidenceSignal( Incidence* ) ) );
+ connect( entry, TQT_SIGNAL( newJournal( const TQDate & ) ),
+ this, TQT_SIGNAL( newJournalSignal( const TQDate & ) ) );
mEntries.insert( dt, entry );
}
@@ -109,7 +109,7 @@ Incidence::List KOJournalView::selectedIncidences()
void KOJournalView::clearEntries()
{
// kdDebug(5850)<<"KOJournalView::clearEntries()"<<endl;
- QMap<QDate, JournalDateEntry*>::Iterator it;
+ TQMap<TQDate, JournalDateEntry*>::Iterator it;
for ( it = mEntries.begin(); it != mEntries.end(); ++it ) {
delete (it.data());
}
@@ -117,7 +117,7 @@ void KOJournalView::clearEntries()
}
void KOJournalView::updateView()
{
- QMap<QDate, JournalDateEntry*>::Iterator it;
+ TQMap<TQDate, JournalDateEntry*>::Iterator it;
for ( it = mEntries.begin(); it != mEntries.end(); ++it ) {
it.data()->clear();
Journal::List journals = calendar()->journals( it.key() );
@@ -134,7 +134,7 @@ void KOJournalView::flushView()
emit flushEntries();
}
-void KOJournalView::showDates(const QDate &start, const QDate &end)
+void KOJournalView::showDates(const TQDate &start, const TQDate &end)
{
// kdDebug(5850) << "KOJournalView::showDates(): "<<start.toString().latin1()<<" - "<<end.toString().latin1() << endl;
clearEntries();
@@ -142,8 +142,8 @@ void KOJournalView::showDates(const QDate &start, const QDate &end)
Journal::List::ConstIterator it;
Journal::List jnls;
- QDate d=start;
- for ( QDate d=start; d<=end; d=d.addDays(1) ) {
+ TQDate d=start;
+ for ( TQDate d=start; d<=end; d=d.addDays(1) ) {
jnls = calendar()->journals( d );
for ( it = jnls.begin(); it != jnls.end(); ++it ) {
appendJournal( *it, d );
@@ -202,7 +202,7 @@ void KOJournalView::setIncidenceChanger( IncidenceChangerBase *changer )
void KOJournalView::newJournal()
{
- emit newJournalSignal( QDate::currentDate() );
+ emit newJournalSignal( TQDate::currentDate() );
}
#include "kojournalview.moc"