diff --git a/kmcomposewin.cpp b/kmcomposewin.cpp index 3fa453dc7..6bdeeafb5 100644 --- a/kmcomposewin.cpp +++ b/kmcomposewin.cpp @@ -735,11 +735,22 @@ void KMComposeWin::rethinkFields(bool fromSlot) rethinkHeaderLine(showHeaders,HDR_TO, row, i18n("To:"), mLblTo, mEdtTo, mBtnTo); if (!fromSlot) mCcAction->setChecked(abs(mShowHeaders)&HDR_CC); - rethinkHeaderLine(showHeaders,HDR_CC, row, i18n("&CC:"), - mLblCc, mEdtCc, mBtnCc); + rethinkHeaderLine(showHeaders,HDR_CC, row, i18n("&Copy To (CC):"), + mLblCc, mEdtCc, mBtnCc, + i18n("The email addresses you put " + "in this field receives a copy of the email. " + "Technically it is the same thing as putting all the " + "addresses in the To: field but differs in " + "that it usually symbolises the receiver of the " + "Carbon Copy (CC) is a listener, not the main " + "recipient.")); if (!fromSlot) mBccAction->setChecked(abs(mShowHeaders)&HDR_BCC); - rethinkHeaderLine(showHeaders,HDR_BCC, row, i18n("&BCC:"), - mLblBcc, mEdtBcc, mBtnBcc); + rethinkHeaderLine(showHeaders,HDR_BCC, row, i18n("&Blind Copy To (BCC):"), + mLblBcc, mEdtBcc, mBtnBcc, + i18n("Essentially the same thing " + "as the Copy To: field but differs in that " + "all other recipients do not see who receives a " + "blind copy.")); if (!fromSlot) mSubjectAction->setChecked(abs(mShowHeaders)&HDR_SUBJECT); rethinkHeaderLine(showHeaders,HDR_SUBJECT, row, i18n("S&ubject:"), mLblSubject, mEdtSubject); @@ -774,11 +785,14 @@ void KMComposeWin::rethinkFields(bool fromSlot) //----------------------------------------------------------------------------- void KMComposeWin::rethinkHeaderLine(int aValue, int aMask, int& aRow, const QString &aLabelStr, QLabel* aLbl, - QLineEdit* aEdt, QPushButton* aBtn) + QLineEdit* aEdt, QPushButton* aBtn, + const QString &toolTip ) { if (aValue & aMask) { aLbl->setText(aLabelStr); + if ( !toolTip.isEmpty() ) + QToolTip::add( aLbl, toolTip ); aLbl->adjustSize(); aLbl->resize((int)aLbl->sizeHint().width(),aLbl->sizeHint().height() + 6); aLbl->setMinimumSize(aLbl->size()); diff --git a/kmcomposewin.h b/kmcomposewin.h index a0b7232e7..3f5e640cc 100644 --- a/kmcomposewin.h +++ b/kmcomposewin.h @@ -559,12 +559,13 @@ protected: /** * Show or hide header lines */ - void rethinkHeaderLine(int value, int mask, int& row, - const QString& labelStr, QLabel* lbl, - QLineEdit* edt, QPushButton* btn=0); - void rethinkHeaderLine(int value, int mask, int& row, - const QString& labelStr, QLabel* lbl, - QComboBox* cbx, QCheckBox *chk); + void rethinkHeaderLine( int value, int mask, int& row, + const QString& labelStr, QLabel* lbl, + QLineEdit* edt, QPushButton* btn = 0, + const QString& toolTip = QString::null ); + void rethinkHeaderLine( int value, int mask, int& row, + const QString& labelStr, QLabel* lbl, + QComboBox* cbx, QCheckBox *chk ); /** * Initialization methods