projects
/
web/konrad/smoke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9ed491d
)
user friendly hint if payment comment is disabled
author
Konrad Rosenbaum
<konrad@silmor.de>
Fri, 22 Nov 2013 18:02:17 +0000 (19:02 +0100)
committer
Konrad Rosenbaum
<konrad@silmor.de>
Fri, 22 Nov 2013 18:02:17 +0000 (19:02 +0100)
src/dialogs/payedit.cpp
patch
|
blob
|
history
diff --git
a/src/dialogs/payedit.cpp
b/src/dialogs/payedit.cpp
index
f819717
..
ef46e83
100644
(file)
--- 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<MOPaymentType>();
//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);
}