From: Konrad Rosenbaum Date: Fri, 22 Nov 2013 18:02:17 +0000 (+0100) Subject: user friendly hint if payment comment is disabled X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=2b251944c601e44fb27a767e950b739331bd5714;p=web%2Fkonrad%2Fsmoke.git user friendly hint if payment comment is disabled --- diff --git a/src/dialogs/payedit.cpp b/src/dialogs/payedit.cpp index f819717..ef46e83 100644 --- a/src/dialogs/payedit.cpp +++ b/src/dialogs/payedit.cpp @@ -380,9 +380,10 @@ void MPaymentDialog::setPType() MOPaymentType pt=m_ptype->itemData(m_ptype->currentIndex()).value(); //do we have a data name? if(pt.dataname().value().trimmed().isEmpty()){ - m_dlabel->setText("..."); + m_dlabel->setText(tr("(not required)")); m_data->setText(""); m_data->setEnabled(false); + m_data->setPlaceholderText(tr("(not required)")); return; } //normal setting @@ -412,6 +413,7 @@ void MPaymentDialog::setPType() } if(isperc)dtxt+='%'; m_data->setText(dtxt); + m_data->setPlaceholderText(dtxt); }