Fix edit entry header entity encoding

This commit is contained in:
Weslly 2017-06-28 20:04:23 -03:00 committed by Janek Bevendorff
parent 31ec840a8d
commit a766052243
2 changed files with 5 additions and 4 deletions

View File

@ -36,6 +36,7 @@ EditWidget::EditWidget(QWidget* parent)
headerLabelFont.setBold(true); headerLabelFont.setBold(true);
headerLabelFont.setPointSize(headerLabelFont.pointSize() + 2); headerLabelFont.setPointSize(headerLabelFont.pointSize() + 2);
headlineLabel()->setFont(headerLabelFont); headlineLabel()->setFont(headerLabelFont);
headlineLabel()->setTextFormat(Qt::PlainText);
connect(m_ui->categoryList, SIGNAL(categoryChanged(int)), connect(m_ui->categoryList, SIGNAL(categoryChanged(int)),
m_ui->stackedWidget, SLOT(setCurrentIndex(int))); m_ui->stackedWidget, SLOT(setCurrentIndex(int)));

View File

@ -280,15 +280,15 @@ void EditEntryWidget::loadEntry(Entry* entry, bool create, bool history, const Q
m_history = history; m_history = history;
if (history) { if (history) {
setHeadline(QString("%1 > %2").arg(parentName.toHtmlEscaped(), tr("Entry history"))); setHeadline(QString("%1 > %2").arg(parentName, tr("Entry history")));
} }
else { else {
if (create) { if (create) {
setHeadline(QString("%1 > %2").arg(parentName.toHtmlEscaped(), tr("Add entry"))); setHeadline(QString("%1 > %2").arg(parentName, tr("Add entry")));
} }
else { else {
setHeadline(QString("%1 > %2 > %3").arg(parentName.toHtmlEscaped(), setHeadline(QString("%1 > %2 > %3").arg(parentName,
entry->title().toHtmlEscaped(), tr("Edit entry"))); entry->title(), tr("Edit entry")));
} }
} }