From kde-commits Fri Aug 29 12:02:34 2003 From: Matthias Ettrich Date: Fri, 29 Aug 2003 12:02:34 +0000 To: kde-commits Subject: kdepim/korganizer X-MARC-Message: https://marc.info/?l=kde-commits&m=106215864206317 CVS commit by ettrich: Fix color in KOQuickTodo on focusIn, not on mousePress. FocusIn happens with both mouse and keyboard. M +1 -6 kotodoview.cpp 1.123 M +0 -1 kotodoview.h 1.54 --- kdepim/korganizer/kotodoview.cpp #1.122:1.123 @@ -329,4 +329,5 @@ void KOQuickTodo::focusInEvent(QFocusEve if ( text()==i18n("Click to add a new Todo") ) setText(QString::null); + setPaletteForegroundColor(parentWidget()->paletteForegroundColor()); QLineEdit::focusInEvent(ev); } @@ -337,10 +338,4 @@ void KOQuickTodo::focusOutEvent(QFocusEv setPaletteForegroundColor(gray); QLineEdit::focusOutEvent(ev); -} - -void KOQuickTodo::mousePressEvent(QMouseEvent *ev) -{ - setPaletteForegroundColor(parentWidget()->paletteForegroundColor()); - QLineEdit::mousePressEvent(ev); } --- kdepim/korganizer/kotodoview.h #1.53:1.54 @@ -114,5 +114,4 @@ class KOQuickTodo : public QLineEdit KOQuickTodo(QWidget *parent=0); protected: - void mousePressEvent(QMouseEvent *ev); void focusInEvent(QFocusEvent *ev); void focusOutEvent(QFocusEvent *ev);