Add menu entry to copy an entry attribute to clipboard.

This commit is contained in:
Florian Geyer 2012-10-24 00:15:23 +02:00
parent 18337927f5
commit ddd5e8a209
7 changed files with 71 additions and 3 deletions

View file

@ -274,6 +274,17 @@ void DatabaseWidget::copyPassword()
clipboard()->setText(currentEntry->password());
}
void DatabaseWidget::copyAttribute(QAction* action)
{
Entry* currentEntry = m_entryView->currentEntry();
if (!currentEntry) {
Q_ASSERT(false);
return;
}
clipboard()->setText(currentEntry->attributes()->value(action->text()));
}
void DatabaseWidget::performAutoType()
{
Entry* currentEntry = m_entryView->currentEntry();