summaryrefslogtreecommitdiffabout
path: root/korganizer/komonthview.cpp
authorzautrix <zautrix>2005-06-28 07:40:22 (UTC)
committer zautrix <zautrix>2005-06-28 07:40:22 (UTC)
commit4385e73c51688f0b8b21bfe061c04a6c42e92701 (patch) (unidiff)
treecc55a5cdfa999b9e285d37116901f4c0a2357b20 /korganizer/komonthview.cpp
parent386f48c2011e49c7c145bad7754a725cabc25dd5 (diff)
downloadkdepimpi-4385e73c51688f0b8b21bfe061c04a6c42e92701.zip
kdepimpi-4385e73c51688f0b8b21bfe061c04a6c42e92701.tar.gz
kdepimpi-4385e73c51688f0b8b21bfe061c04a6c42e92701.tar.bz2
fixx
Diffstat (limited to 'korganizer/komonthview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.cpp44
1 files changed, 22 insertions, 22 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
1111void MonthViewCell::deHightLight() 1111void 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
1121bool MonthViewCell::doHightLight( Incidence * inc ) 1121bool 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;