author | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
commit | b411ec2d8961d07c3e2e9aefc9e04322b7851859 (patch) (unidiff) | |
tree | 79e2a70f1ad32562456b0bfa03aa2b916095fbb0 /korganizer/komonthview.cpp | |
parent | 2d81c75c4ffb8f144ae58e90e68496500d07a19e (diff) | |
download | kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.zip kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.gz kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.bz2 |
qdebugcleanup
-rw-r--r-- | korganizer/komonthview.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 2b7e41f..843526d 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -284,35 +284,31 @@ MonthViewItem::MonthViewItem( Incidence *incidence, QDate qd, const QString & s) | |||
284 | mRecur = false; | 284 | mRecur = false; |
285 | mAlarm = false; | 285 | mAlarm = false; |
286 | mReply = false; | 286 | mReply = false; |
287 | mInfo = false; | 287 | mInfo = false; |
288 | mdayPos = 0; | 288 | mdayPos = 0; |
289 | isWeekItem = KOPrefs::instance()->mMonthViewWeek; | 289 | isWeekItem = KOPrefs::instance()->mMonthViewWeek; |
290 | //qDebug("NEWWWWWWWWWWWWW "); | ||
291 | } | 290 | } |
292 | void MonthViewItem::recycle( Incidence *incidence, QDate qd, const QString & s) | 291 | void MonthViewItem::recycle( Incidence *incidence, QDate qd, const QString & s) |
293 | { | 292 | { |
294 | setText( s ); | 293 | setText( s ); |
295 | mMultiday = 0; | 294 | mMultiday = 0; |
296 | mIncidence = incidence; | 295 | mIncidence = incidence; |
297 | mDate = qd; | 296 | mDate = qd; |
298 | mRecur = false; | 297 | mRecur = false; |
299 | mAlarm = false; | 298 | mAlarm = false; |
300 | mReply = false; | 299 | mReply = false; |
301 | mInfo = false; | 300 | mInfo = false; |
302 | mdayPos = 0; | 301 | mdayPos = 0; |
303 | //qDebug("recucleeeeeeeeeeeeeeeee "); | ||
304 | } | 302 | } |
305 | 303 | ||
306 | void MonthViewItem::paint(QPainter *p) | 304 | void MonthViewItem::paint(QPainter *p) |
307 | { | 305 | { |
308 | if ( mblockRepaint ) { | 306 | if ( mblockRepaint ) { |
309 | //qDebug("block "); | ||
310 | return; | 307 | return; |
311 | } | 308 | } |
312 | //qDebug("NON block "); | ||
313 | #if QT_VERSION >= 0x030000 | 309 | #if QT_VERSION >= 0x030000 |
314 | bool sel = isSelected(); | 310 | bool sel = isSelected(); |
315 | #else | 311 | #else |
316 | bool sel = selected(); | 312 | bool sel = selected(); |
317 | #endif | 313 | #endif |
318 | 314 | ||
@@ -457,13 +453,12 @@ int MonthViewItem::width(const QListBox *lb) const | |||
457 | x += size+1+2+size/2; | 453 | x += size+1+2+size/2; |
458 | } | 454 | } |
459 | return( x + lb->fontMetrics().width( text() ) + 1 ); | 455 | return( x + lb->fontMetrics().width( text() ) + 1 ); |
460 | } | 456 | } |
461 | if ( ! lb ) | 457 | if ( ! lb ) |
462 | return 10; | 458 | return 10; |
463 | //qDebug("ret wid %d ", lb->width()); | ||
464 | return lb->width(); | 459 | return lb->width(); |
465 | } | 460 | } |
466 | 461 | ||
467 | 462 | ||
468 | MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par ) | 463 | MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par ) |
469 | : KNoScrollListBox( par ), | 464 | : KNoScrollListBox( par ), |
@@ -609,18 +604,13 @@ void MonthViewCell::startUpdateCell() | |||
609 | } | 604 | } |
610 | if ( mAvailItemList.count() > 20 ) { | 605 | if ( mAvailItemList.count() > 20 ) { |
611 | mAvailItemList.setAutoDelete( true ); | 606 | mAvailItemList.setAutoDelete( true ); |
612 | mAvailItemList.clear(); | 607 | mAvailItemList.clear(); |
613 | mAvailItemList.setAutoDelete( false ); | 608 | mAvailItemList.setAutoDelete( false ); |
614 | } | 609 | } |
615 | /* | 610 | |
616 | if ( !isVisible() ){ | ||
617 | return; | ||
618 | } | ||
619 | */ | ||
620 | // qDebug("MonthViewCell::updateCell() "); | ||
621 | setPrimary( mDate.month()%2 ); | 611 | setPrimary( mDate.month()%2 ); |
622 | setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); | 612 | setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); |
623 | if ( mDate == QDate::currentDate() ) { | 613 | if ( mDate == QDate::currentDate() ) { |
624 | setLineWidth( 3 ); | 614 | setLineWidth( 3 ); |
625 | } else { | 615 | } else { |
626 | setLineWidth( 1 ); | 616 | setLineWidth( 1 ); |
@@ -868,13 +858,12 @@ void MonthViewCell::finishUpdateCell() | |||
868 | 858 | ||
869 | resizeEvent( 0 ); | 859 | resizeEvent( 0 ); |
870 | 860 | ||
871 | } | 861 | } |
872 | void MonthViewCell::updateCell() | 862 | void MonthViewCell::updateCell() |
873 | { | 863 | { |
874 | //qDebug("MonthViewCell::updateCell() "); | ||
875 | if ( !mMonthView->isUpdatePossible() ) | 864 | if ( !mMonthView->isUpdatePossible() ) |
876 | return; | 865 | return; |
877 | startUpdateCell(); | 866 | startUpdateCell(); |
878 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); | 867 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); |
879 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); | 868 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); |
880 | Event *event; | 869 | Event *event; |
@@ -1050,13 +1039,12 @@ void MonthViewCell::newEvent() | |||
1050 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); | 1039 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); |
1051 | emit newEventSignal( dt ); | 1040 | emit newEventSignal( dt ); |
1052 | } | 1041 | } |
1053 | void MonthViewCell::cellClicked( QListBoxItem *item ) | 1042 | void MonthViewCell::cellClicked( QListBoxItem *item ) |
1054 | { | 1043 | { |
1055 | mMonthView->setSelectedCell( this ); | 1044 | mMonthView->setSelectedCell( this ); |
1056 | qDebug("CELL "); | ||
1057 | if ( item == 0 ) { | 1045 | if ( item == 0 ) { |
1058 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); | 1046 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); |
1059 | emit newEventSignal( dt ); | 1047 | emit newEventSignal( dt ); |
1060 | return; | 1048 | return; |
1061 | } | 1049 | } |
1062 | 1050 | ||