-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 ) setHScrollBarMode(QScrollView::AlwaysOff); - emit highligtIncidence( 0, (MonthViewCell*)this, 0 ); + emit highlightIncidence( 0, (MonthViewCell*)this, 0 ); } @@ -289,3 +289,3 @@ void MonthViewItem::recycle( Incidence *incidence, const QString & s) { - mDisplayHightlighted = false; + mDisplayHighlighted = false; setText( s ); @@ -302,5 +302,5 @@ bool MonthViewItem::setHighlightedFalse() { - if ( !mDisplayHightlighted ) + if ( !mDisplayHighlighted ) return false; - mDisplayHightlighted = false; + mDisplayHighlighted = false; return true; @@ -311,10 +311,10 @@ bool MonthViewItem::setHighlighted( Incidence * inc ) if ( inc == mIncidence ) { - if ( mDisplayHightlighted ) + if ( mDisplayHighlighted ) return false; - mDisplayHightlighted = true; + mDisplayHighlighted = true; return true; } else { - if ( !mDisplayHightlighted ) + if ( !mDisplayHighlighted ) return false; - mDisplayHightlighted = false; + mDisplayHighlighted = false; return true; @@ -335,3 +335,3 @@ void MonthViewItem::paint(QPainter *p) int x = 1; - if (KOPrefs::instance()->mMonthViewUsesCategoryColor || mDisplayHightlighted || sel ) + if (KOPrefs::instance()->mMonthViewUsesCategoryColor || mDisplayHighlighted || sel ) { @@ -339,3 +339,3 @@ void MonthViewItem::paint(QPainter *p) p->setBackgroundColor( palette().color( QPalette::Normal, \ - sel ||mDisplayHightlighted ? QColorGroup::Highlight : QColorGroup::Background ) ); + sel ||mDisplayHighlighted ? QColorGroup::Highlight : QColorGroup::Background ) ); p->eraseRect( 0, 0, listBox()->maxItemWidth(), heihei ); @@ -1102,3 +1102,3 @@ void MonthViewCell::selection( QListBoxItem *item ) if ( !item ) { - emit highligtIncidence( 0 , this, 0 ); + emit highlightIncidence( 0 , this, 0 ); return; @@ -1106,3 +1106,3 @@ void MonthViewCell::selection( QListBoxItem *item ) MonthViewItem * it = (static_cast<MonthViewItem *>( item )); - emit highligtIncidence( it->incidence(), this, it->multiDay() ); + emit highlightIncidence( it->incidence(), this, it->multiDay() ); mMonthView->setSelectedCell( this ); @@ -1110,3 +1110,3 @@ void MonthViewCell::selection( QListBoxItem *item ) -void MonthViewCell::deHightLight() +void MonthViewCell::deHighLight() { @@ -1120,3 +1120,3 @@ void MonthViewCell::deHightLight() // returns true if no inc found -bool MonthViewCell::doHightLight( Incidence * inc ) +bool MonthViewCell::doHighLight( Incidence * inc ) { @@ -1245,3 +1245,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) SLOT( prevCell() ) ); - connect( cell, SIGNAL( highligtIncidence( Incidence * , MonthViewCell *, int ) ), + connect( cell, SIGNAL( highlightIncidence( Incidence * , MonthViewCell *, int ) ), SLOT( incidenceHighlighted( Incidence *, MonthViewCell *, int ) )); @@ -1264,3 +1264,3 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) SLOT( prevCell() ) ); - connect( cell, SIGNAL( highligtIncidence( Incidence * , MonthViewCell *, int ) ), + connect( cell, SIGNAL( highlightIncidence( Incidence * , MonthViewCell *, int ) ), SLOT( incidenceHighlighted( Incidence *, MonthViewCell *, int ) )); @@ -1339,3 +1339,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int { - //qDebug("KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); + qDebug("11 KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); static Incidence * lastInc = 0; @@ -1347,3 +1347,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int lastCell = mc; - //qDebug("KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); + qDebug("222 KOMonthView::incidenceHighlighted %d %d %d", inc, mc, mday ); @@ -1360,3 +1360,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int if ( weekview ) - cells = &mCellsW; + cells = &mCellsW; else { @@ -1371,3 +1371,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int for (uint i = 0; i < (*cells).count(); ++i) { - (*cells)[i]->deHightLight(); + (*cells)[i]->deHighLight(); } @@ -1378,3 +1378,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int //qDebug("index %d iii %d ", index, i); - if ( (*cells)[(uint)i]->doHightLight(inc) ) + if ( (*cells)[(uint)i]->doHighLight(inc) ) break; @@ -1383,3 +1383,3 @@ void KOMonthView::incidenceHighlighted( Incidence * inc , MonthViewCell* mc, int for (uint i = index+1; i < (*cells).count(); ++i) { - if ( (*cells)[i]->doHightLight(inc) ) + if ( (*cells)[i]->doHighLight(inc) ) 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 void prevCell(); - void highligtIncidence( Incidence * , MonthViewCell*, int ); + void highlightIncidence( Incidence * , MonthViewCell*, int ); @@ -139,3 +139,3 @@ class MonthViewItem: public QListBoxItem bool mInfo; - bool mDisplayHightlighted; + bool mDisplayHighlighted; @@ -180,4 +180,4 @@ class MonthViewCell : public KNoScrollListBox QPushButton * dateLabel() { return mLabel; } - void deHightLight(); - bool doHightLight( Incidence *); + void deHighLight(); + bool doHighLight( Incidence *); void deselect(); |