summaryrefslogtreecommitdiffabout
path: root/korganizer/kotimespanview.cpp
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/kotimespanview.cpp
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-p1.zip
kdepimpi-p1.tar.gz
kdepimpi-p1.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/kotimespanview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kotimespanview.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/korganizer/kotimespanview.cpp b/korganizer/kotimespanview.cpp
index 3265a3a..a214720 100644
--- a/korganizer/kotimespanview.cpp
+++ b/korganizer/kotimespanview.cpp
@@ -1,109 +1,113 @@
#include <qlayout.h>
+//Added by qt3to4:
+#include <Q3VBoxLayout>
+#include <Q3ValueList>
+#include <Q3PtrList>
#include <kconfig.h>
#include "timespanview.h"
#include "koglobals.h"
#include "kotimespanview.h"
KOTimeSpanView::KOTimeSpanView(Calendar *calendar, QWidget *parent,
const char *name) :
KOEventView( calendar, parent, name )
{
- QBoxLayout *topLayout = new QVBoxLayout( this );
+ Q3BoxLayout *topLayout = new Q3VBoxLayout( this );
mTimeSpanView = new TimeSpanView( this );
topLayout->addWidget( mTimeSpanView );
connect( mTimeSpanView, SIGNAL( dateRangeChanged() ), SLOT( updateView() ) );
}
KOTimeSpanView::~KOTimeSpanView()
{
}
void KOTimeSpanView::readSettings()
{
readSettings(KOGlobals::config());
}
void KOTimeSpanView::readSettings(KConfig *config)
{
// kdDebug() << "KOTimeSpanView::readSettings()" << endl;
config->setGroup("Views");
- QValueList<int> sizes = config->readIntListEntry("Separator TimeSpanView");
+ Q3ValueList<int> sizes = config->readIntListEntry("Separator TimeSpanView");
if (sizes.count() == 2) {
mTimeSpanView->setSplitterSizes(sizes);
}
}
void KOTimeSpanView::writeSettings(KConfig *config)
{
// kdDebug() << "KOTimeSpanView::writeSettings()" << endl;
config->setGroup("Views");
- QValueList<int> list = mTimeSpanView->splitterSizes();
+ Q3ValueList<int> list = mTimeSpanView->splitterSizes();
config->writeEntry("Separator TimeSpanView",list);
}
int KOTimeSpanView::maxDatesHint()
{
return 0;
}
int KOTimeSpanView::currentDateCount()
{
return 0;
}
-QPtrList<Incidence> KOTimeSpanView::selectedIncidences()
+Q3PtrList<Incidence> KOTimeSpanView::selectedIncidences()
{
- QPtrList<Incidence> selected;
+ Q3PtrList<Incidence> selected;
return selected;
}
void KOTimeSpanView::updateView()
{
insertItems( mTimeSpanView->startDateTime().date(),
mTimeSpanView->endDateTime().date() );
}
void KOTimeSpanView::showDates(const QDate &start, const QDate &end)
{
QDate s = start.addDays( -2 );
QDate e = end.addDays( 2 );
insertItems( s, e );
}
void KOTimeSpanView::insertItems(const QDate &start, const QDate &end)
{
mTimeSpanView->clear();
- mTimeSpanView->setDateRange( start, end );
+ mTimeSpanView->setDateRange( (QDateTime)start, (QDateTime)end );
- QPtrList<Event> events = calendar()->events( start, end );
+ Q3PtrList<Event> events = calendar()->events( start, end );
Event *event = events.first();
while( event ) {
// kdDebug() << "KOTimeSpanView::showDates() add event: " << event->summary()
// << endl;
mTimeSpanView->addItem( event );
event = events.next();
}
mTimeSpanView->updateView();
}
-void KOTimeSpanView::showEvents(QPtrList<Event> eventList)
+void KOTimeSpanView::showEvents(Q3PtrList<Event> eventList)
{
}
void KOTimeSpanView::changeEventDisplay(Event *, int)
{
}