Convert from unicode to image based paperclip

This commit is contained in:
Jonathan White 2018-02-22 23:19:26 -05:00 committed by Janek Bevendorff
parent 8c4df37062
commit fd71b4a22e
7 changed files with 23 additions and 20 deletions

View file

@ -72,6 +72,10 @@ EntryView::EntryView(QWidget* parent)
m_columnActions->setExclusive(false);
for (int columnIndex = 1; columnIndex < header()->count(); ++columnIndex) {
QString caption = m_model->headerData(columnIndex, Qt::Horizontal, Qt::DisplayRole).toString();
if (columnIndex == EntryModel::Paperclip) {
caption = tr("Attachments (icon)");
}
QAction* action = m_headerMenu->addAction(caption);
action->setCheckable(true);
action->setData(columnIndex);