-rw-r--r-- | korganizer/komonthview.cpp | 44 | ||||
-rw-r--r-- | korganizer/komonthview.h | 8 |
2 files changed, 26 insertions, 26 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 64b0e95..1c2d6a2 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -144,3 +144,3 @@ void KNoScrollListBox::focusOutEvent ( QFocusEvent * e ) | |||
144 | setHScrollBarMode(QScrollView::AlwaysOff); | 144 | setHScrollBarMode(QScrollView::AlwaysOff); |
145 | emit highligtIncidence( 0, (MonthViewCell*)this, 0 ); | 145 | emit highlightIncidence( 0, (MonthViewCell*)this, 0 ); |
146 | } | 146 | } |
@@ -289,3 +289,3 @@ void MonthViewItem::recycle( Incidence *incidence, const QString & s) | |||
289 | { | 289 | { |
290 | mDisplayHightlighted = false; | 290 | mDisplayHighlighted = false; |
291 | setText( s ); | 291 | setText( s ); |
@@ -302,5 +302,5 @@ bool MonthViewItem::setHighlightedFalse() | |||
302 | { | 302 | { |
303 | if ( !mDisplayHightlighted ) | 303 | if ( !mDisplayHighlighted ) |
304 | return false; | 304 | return false; |
305 | mDisplayHightlighted = false; | 305 | mDisplayHighlighted = false; |
306 | return true; | 306 | return true; |
@@ -311,10 +311,10 @@ bool MonthViewItem::setHighlighted( Incidence * inc ) | |||
311 | if ( inc == mIncidence ) { | 311 | if ( inc == mIncidence ) { |
312 | if ( mDisplayHightlighted ) | 312 | if ( mDisplayHighlighted ) |
313 | return false; | 313 | return false; |
314 | mDisplayHightlighted = true; | 314 | mDisplayHighlighted = true; |
315 | return true; | 315 | return true; |
316 | } else { | 316 | } else { |
317 | if ( !mDisplayHightlighted ) | 317 | if ( !mDisplayHighlighted ) |
318 | return false; | 318 | return false; |
319 | mDisplayHightlighted = false; | 319 | mDisplayHighlighted = false; |
320 | return true; | 320 | return true; |
@@ -335,3 +335,3 @@ void MonthViewItem::paint(QPainter *p) | |||
335 | int x = 1; | 335 | int x = 1; |
336 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor || mDisplayHightlighted || sel ) | 336 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor || mDisplayHighlighted || sel ) |
337 | { | 337 | { |
@@ -339,3 +339,3 @@ void MonthViewItem::paint(QPainter *p) | |||
339 | p->setBackgroundColor( palette().color( QPalette::Normal, \ | 339 | p->setBackgroundColor( palette().color( QPalette::Normal, \ |
340 | sel ||mDisplayHightlighted ? QColorGroup::Highlight : QColorGroup::Background ) ); | 340 | sel ||mDisplayHighlighted ? QColorGroup::Highlight : QColorGroup::Background ) ); |
341 | p->eraseRect( 0, 0, listBox()->maxItemWidth(), heihei ); | 341 | p->eraseRect( 0, 0, listBox()->maxItemWidth(), heihei ); |
@@ -1102,3 +1102,3 @@ void MonthViewCell::selection( QListBoxItem *item ) | |||
1102 | if ( !item ) { | 1102 | if ( !item ) { |
1103 | emit highligtIncidence( 0 , this, 0 ); | 1103 | emit highlightIncidence( 0 , this, 0 ); |
1104 | return; | 1104 | return; |
@@ -1106,3 +1106,3 @@ void MonthViewCell::selection( QListBoxItem *item ) | |||
1106 | MonthViewItem * it = (static_cast<MonthViewItem *>( item )); | 1106 | MonthViewItem * it = (static_cast<MonthViewItem *>( item )); |
1107 | emit highligtIncidence( it->incidence(), this, it->multiDay() ); | 1107 | emit highlightIncidence( it->incidence(), this, it->multiDay() ); |
1108 | mMonthView->setSelectedCell( this ); | 1108 | mMonthView->setSelectedCell( this ); |
@@ -1110,3 +1110,3 @@ void MonthViewCell::selection( QListBoxItem *item ) | |||
1110 | 1110 | ||
1111 | void MonthViewCell::deHightLight() | 1111 | void MonthViewCell::deHighLight() |
1112 | { | 1112 | { |
@@ -1120,3 +1120,3 @@ void MonthViewCell::deHightLight() | |||
1120 | // returns true if no inc found | 1120 | // returns true if no inc found |
1121 | bool MonthViewCell::doHightLight( Incidence * inc ) | 1121 | bool MonthViewCell::doHighLight( Incidence * inc ) |
1122 | { | 1122 | { |
@@ -1245,3 +1245,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) | |||
1245 | SLOT( prevCell() ) ); | 1245 | SLOT( prevCell() ) ); |
1246 | connect( cell, SIGNAL( highligtIncidence( Incidence * , MonthViewCell *, int ) ), | 1246 | connect( cell, SIGNAL( highlightIncidence( Incidence * , MonthViewCell *, int ) ), |
1247 | SLOT( incidenceHighlighted( Incidence *, MonthViewCell *, int ) )); | 1247 | SLOT( incidenceHighlighted( Incidence *, MonthViewCell *, int ) )); |
@@ -1264,3 +1264,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) | |||
1264 | SLOT( prevCell() ) ); | 1264 | SLOT( prevCell() ) ); |
1265 | connect( cell, SIGNAL( highligtIncidence( Incidence * , MonthViewCell *, int ) ), | 1265 | connect( cell, SIGNAL( highlightIncidence( Incidence * , MonthViewCell *, int ) ), |
1266 | SLOT( incidenceHighlighted( Incidence *, MonthViewCell *, int ) )); | 1266 | SLOT( incidenceHighlighted( Incidence *, MonthViewCell *, int ) )); |
@@ -1339,3 +1339,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int | |||
1339 | { | 1339 | { |
1340 | //qDebug("KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); | 1340 | qDebug("11 KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); |
1341 | static Incidence * lastInc = 0; | 1341 | static Incidence * lastInc = 0; |
@@ -1347,3 +1347,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int | |||
1347 | lastCell = mc; | 1347 | lastCell = mc; |
1348 | //qDebug("KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); | 1348 | qDebug("222 KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); |
1349 | 1349 | ||
@@ -1360,3 +1360,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int | |||
1360 | if ( weekview ) | 1360 | if ( weekview ) |
1361 | cells = &mCellsW; | 1361 | cells = &mCellsW; |
1362 | else { | 1362 | else { |
@@ -1371,3 +1371,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int | |||
1371 | for (uint i = 0; i < (*cells).count(); ++i) { | 1371 | for (uint i = 0; i < (*cells).count(); ++i) { |
1372 | (*cells)[i]->deHightLight(); | 1372 | (*cells)[i]->deHighLight(); |
1373 | } | 1373 | } |
@@ -1378,3 +1378,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int | |||
1378 | //qDebug("index %d iii %d ", index, i); | 1378 | //qDebug("index %d iii %d ", index, i); |
1379 | if ( (*cells)[(uint)i]->doHightLight(inc) ) | 1379 | if ( (*cells)[(uint)i]->doHighLight(inc) ) |
1380 | break; | 1380 | break; |
@@ -1383,3 +1383,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int | |||
1383 | for (uint i = index+1; i < (*cells).count(); ++i) { | 1383 | for (uint i = index+1; i < (*cells).count(); ++i) { |
1384 | if ( (*cells)[i]->doHightLight(inc) ) | 1384 | if ( (*cells)[i]->doHighLight(inc) ) |
1385 | break; | 1385 | break; |
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 2622d10..0f3aa54 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -88,3 +88,3 @@ class KNoScrollListBox: public QListBox | |||
88 | void prevCell(); | 88 | void prevCell(); |
89 | void highligtIncidence( Incidence * , MonthViewCell*, int ); | 89 | void highlightIncidence( Incidence * , MonthViewCell*, int ); |
90 | 90 | ||
@@ -139,3 +139,3 @@ class MonthViewItem: public QListBoxItem | |||
139 | bool mInfo; | 139 | bool mInfo; |
140 | bool mDisplayHightlighted; | 140 | bool mDisplayHighlighted; |
141 | 141 | ||
@@ -180,4 +180,4 @@ class MonthViewCell : public KNoScrollListBox | |||
180 | QPushButton * dateLabel() { return mLabel; } | 180 | QPushButton * dateLabel() { return mLabel; } |
181 | void deHightLight(); | 181 | void deHighLight(); |
182 | bool doHightLight( Incidence *); | 182 | bool doHighLight( Incidence *); |
183 | void deselect(); | 183 | void deselect(); |