From a08aff328d4393031d5ba7d622c2b05705a89d73 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 04 Jul 2007 11:23:42 +0000 Subject: initial public commit of qt4 port --- (limited to 'korganizer/kojournalview.cpp') diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp index 406df5a..51594ff 100644 --- a/korganizer/kojournalview.cpp +++ b/korganizer/kojournalview.cpp @@ -25,13 +25,19 @@ // View of Journal entries #include -#include -#include -#include +#include +#include +#include #include #include #include #include +#include +//Added by qt3to4: +#include +#include +#include +#include #include #include @@ -51,7 +57,7 @@ KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent, : KOrg::BaseView(calendar, parent, name) { mCalendar = calendar; - QHBox * vb = new QHBox ( this ); + Q3HBox * vb = new Q3HBox ( this ); QPushButton * newJournal = new QPushButton( vb ); QPixmap icon; if ( QApplication::desktop()->width() < 321 ) @@ -63,15 +69,15 @@ KOJournalView::KOJournalView(Calendar *calendar, QWidget *parent, newJournal->setFixedSize( size, size ); mDateLabel = new QLabel ( vb ); mDateLabel->setMargin(1); - mDateLabel->setAlignment(AlignCenter); - QScrollView * sv = new QScrollView( this ); - QVBoxLayout * hbl = new QVBoxLayout( this ); + mDateLabel->setAlignment(Qt::AlignCenter); + Q3ScrollView * sv = new Q3ScrollView( this ); + Q3VBoxLayout * hbl = new Q3VBoxLayout( this ); hbl->addWidget( vb ); hbl->addWidget( sv ); parWid = new QWidget( sv->viewport() ); sv->addChild(parWid); - sv->setResizePolicy( QScrollView:: AutoOneFit ); - mTopLayout = new QVBoxLayout(parWid); + sv->setResizePolicy( Q3ScrollView:: AutoOneFit ); + mTopLayout = new Q3VBoxLayout(parWid); connect( newJournal, SIGNAL( clicked() ), this , SLOT( newJournal() ) ); getNewEntry(); } @@ -96,9 +102,9 @@ JournalEntry* KOJournalView::getNewEntry() return Entry; } -QPtrList KOJournalView::selectedIncidences() +Q3PtrList KOJournalView::selectedIncidences() { - QPtrList eventList; + Q3PtrList eventList; return eventList; } @@ -162,13 +168,13 @@ void KOJournalView::showOnly ( Journal* j ) showDates( mDate, QDate() ); return; } - QPtrList jl; + Q3PtrList jl; jl.append ( j ); showList( jl ); JournalEntry* mEntry = jEntries.first(); mEntry->setShowOnly(); } -void KOJournalView::showList(QPtrList jl) +void KOJournalView::showList(Q3PtrList jl) { static bool ff = false; if ( ff ) return; @@ -225,11 +231,11 @@ void KOJournalView::showDates(const QDate &start, const QDate &) { mDate = start; mDateLabel->setText(KGlobal::locale()->formatDate(mDate)); - QPtrList jl = calendar()->journals4Date( start ); + Q3PtrList jl = calendar()->journals4Date( start ); showList( jl ); } -void KOJournalView::showEvents(QPtrList) +void KOJournalView::showEvents(Q3PtrList) { // After new creation of list view no events are selected. // emit incidenceSelected( 0 ); -- cgit v0.9.0.2