summaryrefslogtreecommitdiff
path: root/core
authorsimon <simon>2002-04-30 14:28:04 (UTC)
committer simon <simon>2002-04-30 14:28:04 (UTC)
commitb7b0040f0a8069d36e3f5ad0bed0ce992dd30780 (patch) (unidiff)
tree39ac29f14f3e2e153af816b7a9f0f2d821bb075a /core
parent972fbb128294c821ff0f13ea59a83edb015d571e (diff)
downloadopie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.zip
opie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.tar.gz
opie-b7b0040f0a8069d36e3f5ad0bed0ce992dd30780.tar.bz2
- no default args in method impls
- resolved parameter shadowing problem
Diffstat (limited to 'core') (more/less context) (ignore 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,12 +1,12 @@
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;
10 isToggle=false; 10 isToggle=false;
11 isDown=false; 11 isDown=false;
12 showState(false); 12 showState(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
@@ -482,16 +482,16 @@ DateBookDayWidget::DateBookDayWidget( const EffectiveEvent &e,
482 // Show end time. 482 // Show end time.
483 text += TimeString::timeString( ev.end(), whichClock, FALSE ); 483 text += TimeString::timeString( ev.end(), whichClock, FALSE );
484 } 484 }
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;
495 if ( h < 3 ) 495 if ( h < 3 )
496 h = 3; 496 h = 3;
497 geom.setY( y ); 497 geom.setY( y );
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
@@ -609,13 +609,13 @@ QDate DateBookWeek::weekDate() const
609// For Weeks that start on Sunday... (ahh... home rolled) 609// For Weeks that start on Sunday... (ahh... home rolled)
610// okay, if Jan 1 is on Friday or Saturday, 610// okay, if Jan 1 is on Friday or Saturday,
611// it will go to the pervious 611// it will go to the pervious
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;
619 619
620 // remove a pesky warning, (Optimizations on g++) 620 // remove a pesky warning, (Optimizations on g++)
621 weekNumber = -1; 621 weekNumber = -1;
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
@@ -89,15 +89,15 @@ void DateBookWeekLstHeader::nextWeek() {
89} 89}
90void DateBookWeekLstHeader::prevWeek() { 90void DateBookWeekLstHeader::prevWeek() {
91 setDate(date.addDays(-7)); 91 setDate(date.addDays(-7));
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;
101 101
102 static const char *wdays="MTWTFSS"; 102 static const char *wdays="MTWTFSS";
103 char day=wdays[d.dayOfWeek()-1]; 103 char day=wdays[d.dayOfWeek()-1];
@@ -137,15 +137,15 @@ void DateBookWeekLstDayHdr::newEvent() {
137 start.setTime(QTime(10,0)); 137 start.setTime(QTime(10,0));
138 stop.setTime(QTime(12,0)); 138 stop.setTime(QTime(12,0));
139 139
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{
149 char s[10]; 149 char s[10];
150 if ( ev.startDate() != ev.date() ) { // multiday event (not first day) 150 if ( ev.startDate() != ev.date() ) { // multiday event (not first day)
151 if ( ev.endDate() == ev.date() ) { // last day 151 if ( ev.endDate() == ev.date() ) { // last day
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
@@ -4,14 +4,14 @@
4#include <qtoolbutton.h> 4#include <qtoolbutton.h>
5#include <qlayout.h> 5#include <qlayout.h>
6#include "clickablelabel.h" 6#include "clickablelabel.h"
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);
15 15
16 ClickableLabel *r; 16 ClickableLabel *r;
17 QString s; 17 QString s;