Add convenience method EditWidget::setHeadline().

This commit is contained in:
Felix Geyer
2012-05-27 11:12:12 +02:00
parent 21a2e9583b
commit 82d697b657
5 changed files with 12 additions and 8 deletions

View File

@@ -147,14 +147,14 @@ void EditEntryWidget::loadEntry(Entry* entry, bool create, bool history, const Q
m_history = history;
if (history) {
headlineLabel()->setText("Entry history");
setHeadline("Entry history");
}
else {
if (create) {
headlineLabel()->setText(groupName+" > "+tr("Add entry"));
setHeadline(groupName+" > "+tr("Add entry"));
}
else {
headlineLabel()->setText(groupName+" > "+tr("Edit entry"));
setHeadline(groupName+" > "+tr("Edit entry"));
}
}