summaryrefslogtreecommitdiff
authorsimon <simon>2002-04-30 14:28:04 (UTC)
committer simon <simon>2002-04-30 14:28:04 (UTC)
commitb7b0040f0a8069d36e3f5ad0bed0ce992dd30780 (patch) (unidiff)
tree39ac29f14f3e2e153af816b7a9f0f2d821bb075a
parent972fbb128294c821ff0f13ea59a83edb015d571e (diff)
downloadopie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.zip
opie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.tar.gz
opie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.tar.bz2
- no default args in method impls
- resolved parameter shadowing problem
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/datebook/clickablelabel.cpp6
-rw-r--r--core/pim/datebook/datebookday.cpp8
-rw-r--r--core/pim/datebook/datebookweek.cpp2
-rw-r--r--core/pim/datebook/datebookweeklst.cpp12
-rw-r--r--core/pim/datebook/timepicker.cpp4
5 files changed, 16 insertions, 16 deletions
diff --git a/core/pim/datebook/clickablelabel.cpp b/core/pim/datebook/clickablelabel.cpp
index 1dd0d15..128bebb 100644
--- a/core/pim/datebook/clickablelabel.cpp
+++ b/core/pim/datebook/clickablelabel.cpp
@@ -1,9 +1,9 @@
1#include "clickablelabel.h" 1#include "clickablelabel.h"
2#include <stdio.h> 2#include <stdio.h>
3 3
4ClickableLabel::ClickableLabel(QWidget* parent = 0, 4ClickableLabel::ClickableLabel(QWidget* parent,
5 const char* name = 0, 5 const char* name,
6 WFlags fl = 0) : 6 WFlags fl) :
7 QLabel(parent,name,fl) 7 QLabel(parent,name,fl)
8{ 8{
9 textInverted=false; 9 textInverted=false;
diff --git a/core/pim/datebook/datebookday.cpp b/core/pim/datebook/datebookday.cpp
index d5daab2..67a88e9 100644
--- a/core/pim/datebook/datebookday.cpp
+++ b/core/pim/datebook/datebookday.cpp
@@ -485,10 +485,10 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e,
485 text += "<br><br>" + strNote; 485 text += "<br><br>" + strNote;
486 setBackgroundMode( PaletteBase ); 486 setBackgroundMode( PaletteBase );
487 487
488 QTime s = ev.start(); 488 QTime start = ev.start();
489 QTime e = ev.end(); 489 QTime end = ev.end();
490 int y = s.hour()*60+s.minute(); 490 int y = start.hour()*60+start.minute();
491 int h = e.hour()*60+e.minute()-y; 491 int h = end.hour()*60+end.minute()-y;
492 int rh = dateBook->dayView()->rowHeight(0); 492 int rh = dateBook->dayView()->rowHeight(0);
493 y = y*rh/60; 493 y = y*rh/60;
494 h = h*rh/60; 494 h = h*rh/60;
diff --git a/core/pim/datebook/datebookweek.cpp b/core/pim/datebook/datebookweek.cpp
index e9fcc39..6532ba4 100644
--- a/core/pim/datebook/datebookweek.cpp
+++ b/core/pim/datebook/datebookweek.cpp
@@ -612,7 +612,7 @@ QDate DateBookWeek::weekDate() const
612// week... 612// week...
613 613
614bool calcWeek( const QDate &d, int &week, int &year, 614bool calcWeek( const QDate &d, int &week, int &year,
615 bool startOnMonday = false ) 615 bool startOnMonday )
616{ 616{
617 int weekNumber; 617 int weekNumber;
618 int yearNumber; 618 int yearNumber;
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp
index 7083bc5..85c745a 100644
--- a/core/pim/datebook/datebookweeklst.cpp
+++ b/core/pim/datebook/datebookweeklst.cpp
@@ -92,9 +92,9 @@ void DateBookWeekLstHeader::prevWeek() {
92} 92}
93 93
94DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool onM, 94DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool onM,
95 QWidget* parent = 0, 95 QWidget* parent,
96 const char* name = 0, 96 const char* name,
97 WFlags fl = 0 ) 97 WFlags fl )
98 : DateBookWeekLstDayHdrBase(parent, name, fl) { 98 : DateBookWeekLstDayHdrBase(parent, name, fl) {
99 99
100 date=d; 100 date=d;
@@ -140,9 +140,9 @@ void DateBookWeekLstDayHdr::newEvent() {
140 emit addEvent(start,stop,""); 140 emit addEvent(start,stop,"");
141} 141}
142DateBookWeekLstEvent::DateBookWeekLstEvent(const EffectiveEvent &ev, 142DateBookWeekLstEvent::DateBookWeekLstEvent(const EffectiveEvent &ev,
143 QWidget* parent = 0, 143 QWidget* parent,
144 const char* name = 0, 144 const char* name,
145 WFlags fl = 0) : 145 WFlags fl) :
146 ClickableLabel(parent,name,fl), 146 ClickableLabel(parent,name,fl),
147 event(ev) 147 event(ev)
148{ 148{
diff --git a/core/pim/datebook/timepicker.cpp b/core/pim/datebook/timepicker.cpp
index 9097e1b..43e05ad 100644
--- a/core/pim/datebook/timepicker.cpp
+++ b/core/pim/datebook/timepicker.cpp
@@ -7,8 +7,8 @@
7#include <qstring.h> 7#include <qstring.h>
8#include <stdio.h> 8#include <stdio.h>
9 9
10TimePicker::TimePicker(QWidget* parent = 0, const char* name = 0, 10TimePicker::TimePicker(QWidget* parent, const char* name,
11 WFlags fl = 0) : 11 WFlags fl) :
12 QWidget(parent,name,fl) 12 QWidget(parent,name,fl)
13{ 13{
14 QVBoxLayout *vbox=new QVBoxLayout(this); 14 QVBoxLayout *vbox=new QVBoxLayout(this);