From 2b251944c601e44fb27a767e950b739331bd5714 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Fri, 22 Nov 2013 19:02:17 +0100 Subject: [PATCH] user friendly hint if payment comment is disabled --- src/dialogs/payedit.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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); } -- 1.7.2.5