summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebook.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebook.cpp48
1 files changed, 25 insertions, 23 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp
index 2c2965e..c0d45c9 100644
--- a/core/pim/datebook/datebook.cpp
+++ b/core/pim/datebook/datebook.cpp
@@ -130,3 +130,3 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
a->addTo( view );
-
+
a = new QAction( tr( "Day" ), Resource::loadPixmap( "day" ), QString::null, 0, g, 0 );
@@ -175,3 +175,3 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
int current=config.readNumEntry("defaultview", DAY);
-
+
QActionGroup *ag = new QActionGroup(this);
@@ -189,8 +189,8 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
ag->insert(a);
-
+
ag->addTo(default_view);
- connect(ag, SIGNAL( selected ( QAction * ) ),
- this, SLOT( newDefaultView(QAction *) )
+ connect(ag, SIGNAL( selected ( QAction * ) ),
+ this, SLOT( newDefaultView(QAction *) )
);
-
+
connect( qApp, SIGNAL(clockChanged(bool)),
@@ -199,3 +199,3 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
this, SLOT(changeWeek(bool)) );
-
+
#if defined(Q_WS_QWS) && !defined(QT_NO_COP)
@@ -204,3 +204,3 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
#endif
-
+
// listen on QPE/System
@@ -214,6 +214,6 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f )
this, SLOT(receive(const QCString&, const QByteArray&)) );
- qDebug("olle\n");
+ qDebug("olle\n");
#endif
#endif
-
+
qDebug("done t=%d", t.elapsed() );
@@ -311,3 +311,3 @@ QDate DateBook::currentDate()
QDate d = QDate::currentDate();
-
+
if ( dayView && views->visibleWidget() == dayView ) {
@@ -408,3 +408,3 @@ void DateBook::editEvent( const Event &e )
if (QMessageBox::warning(this, "error box",
- error, "Fix it", "Continue",
+ error, "Fix it", "Continue",
0, 0, 1) == 0)
@@ -490,3 +490,3 @@ void DateBook::initWeek()
calcWeek( d, totWeeks, yearNumber, onMonday );
-
+
while ( totWeeks == 1 ) {
@@ -500,6 +500,6 @@ void DateBook::initWeekLst() {
if ( !weekLstView ) {
- weekLstView = new DateBookWeekLst( ampm, onMonday, db,
+ weekLstView = new DateBookWeekLst( ampm, onMonday, db,
views, "weeklst view" );
views->addWidget( weekLstView, WEEKLST );
-
+
//weekLstView->setStartViewTime( startTime );
@@ -507,7 +507,7 @@ void DateBook::initWeekLst() {
this, SLOT( showDay( int, int, int ) ) );
- connect( weekLstView, SIGNAL( addEvent( const QDateTime &,
- const QDateTime &,
+ connect( weekLstView, SIGNAL( addEvent( const QDateTime &,
+ const QDateTime &,
const QString & ) ),
- this, SLOT( slotNewEntry( const QDateTime &,
- const QDateTime &,
+ this, SLOT( slotNewEntry( const QDateTime &,
+ const QDateTime &,
const QString & ) ) );
@@ -542,3 +542,3 @@ void DateBook::loadSettings()
}
-
+
{
@@ -568,3 +568,3 @@ void DateBook::newDefaultView(QAction *a) {
if (a->text() == "Month") val=MONTH;
-
+
Config configDB( "DateBook" );
@@ -690,3 +690,3 @@ void DateBook::timerEvent( QTimerEvent *e )
Sound::soundAlarm();
- }
+ }
else
@@ -978,3 +978,3 @@ Event DateBookDBHack::eventByUID(int uid) {
QValueList<Event>::ConstIterator it;
-
+
for (it = myEventList.begin(); it != myEventList.end(); it++) {
@@ -987,2 +987,4 @@ Event DateBookDBHack::eventByUID(int uid) {
qDebug("Event not found: uid=%d\n", uid);
+ Event ev;
+ return ev; // return at least
}