-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 @@ -286,9 +286,8 @@ MonthViewItem::MonthViewItem( Incidence *incidence, QDate qd, const QString & s) mReply = false; mInfo = false; mdayPos = 0; isWeekItem = KOPrefs::instance()->mMonthViewWeek; - //qDebug("NEWWWWWWWWWWWWW "); } void MonthViewItem::recycle( Incidence *incidence, QDate qd, const QString & s) { setText( s ); @@ -299,18 +298,15 @@ void MonthViewItem::recycle( Incidence *incidence, QDate qd, const QString & s) mAlarm = false; mReply = false; mInfo = false; mdayPos = 0; - //qDebug("recucleeeeeeeeeeeeeeeee "); } void MonthViewItem::paint(QPainter *p) { if ( mblockRepaint ) { - //qDebug("block "); return; } - //qDebug("NON block "); #if QT_VERSION >= 0x030000 bool sel = isSelected(); #else bool sel = selected(); @@ -459,9 +455,8 @@ int MonthViewItem::width(const QListBox *lb) const return( x + lb->fontMetrics().width( text() ) + 1 ); } if ( ! lb ) return 10; - //qDebug("ret wid %d ", lb->width()); return lb->width(); } @@ -611,14 +606,9 @@ void MonthViewCell::startUpdateCell() mAvailItemList.setAutoDelete( true ); mAvailItemList.clear(); mAvailItemList.setAutoDelete( false ); } - /* - if ( !isVisible() ){ - return; - } - */ - // qDebug("MonthViewCell::updateCell() "); + setPrimary( mDate.month()%2 ); setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); if ( mDate == QDate::currentDate() ) { setLineWidth( 3 ); @@ -870,9 +860,8 @@ void MonthViewCell::finishUpdateCell() } void MonthViewCell::updateCell() { - //qDebug("MonthViewCell::updateCell() "); if ( !mMonthView->isUpdatePossible() ) return; startUpdateCell(); //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); @@ -1052,9 +1041,8 @@ void MonthViewCell::newEvent() } void MonthViewCell::cellClicked( QListBoxItem *item ) { mMonthView->setSelectedCell( this ); - qDebug("CELL "); if ( item == 0 ) { QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); emit newEventSignal( dt ); return; |