author | zecke <zecke> | 2002-06-17 15:57:13 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-17 15:57:13 (UTC) |
commit | 97aca0c9f5f483d01c685d0d0f126ca554d3b199 (patch) (side-by-side diff) | |
tree | 839929bc17e8e86e1a8d35e2b14e02f6343a8823 /core/pim/datebook/datebook.cpp | |
parent | 02e724757f13f40d85136c3a14e0a3788d28236e (diff) | |
download | opie-97aca0c9f5f483d01c685d0d0f126ca554d3b199.zip opie-97aca0c9f5f483d01c685d0d0f126ca554d3b199.tar.gz opie-97aca0c9f5f483d01c685d0d0f126ca554d3b199.tar.bz2 |
tboc <tboc@gmx.de> provided a cute patch to show a red time mark
in the current day view
Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.cpp | 48 |
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 } |