Change label of CC: and BCC: fields and add tooltips. Based on patch by Frans Englich.

svn path=/trunk/kdepim/; revision=284233
wilder-work
Ingo Klcker 22 years ago
parent 5b6b0973ab
commit d0ebf40f7c
  1. 24
      kmcomposewin.cpp
  2. 13
      kmcomposewin.h

@ -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("<qt>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 <b>To:</b> field but differs in "
"that it usually symbolises the receiver of the "
"Carbon Copy (CC) is a listener, not the main "
"recipient.</qt>"));
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("<qt>Essentially the same thing "
"as the <b>Copy To:</b> field but differs in that "
"all other recipients do not see who receives a "
"blind copy.</qt>"));
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());

@ -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

Loading…
Cancel
Save