user friendly hint if payment comment is disabled
authorKonrad Rosenbaum <konrad@silmor.de>
Fri, 22 Nov 2013 18:02:17 +0000 (19:02 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Fri, 22 Nov 2013 18:02:17 +0000 (19:02 +0100)
src/dialogs/payedit.cpp

index f819717..ef46e83 100644 (file)
@@ -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);
 }