Add copy username and password actions to the clipboard.

Also add corresponding icons that I've put together from
various Oxygen icons.
This commit is contained in:
Felix Geyer 2014-01-14 19:46:44 +01:00
parent a914b837a1
commit 811eb2714f
7 changed files with 13 additions and 0 deletions

View File

@ -134,11 +134,13 @@ Files: share/icons/application/*/actions/application-exit.png
share/icons/application/*/actions/document-save-as.png
share/icons/application/*/actions/edit-clear-locationbar-ltr.png
share/icons/application/*/actions/edit-clear-locationbar-rtl.png
share/icons/application/*/actions/password-copy.png
share/icons/application/*/actions/password-show-*.png
share/icons/application/*/actions/system-search.png
share/icons/application/*/status/dialog-error.png
share/icons/application/*/status/dialog-information.png
share/icons/application/*/status/dialog-warning.png
share/icons/application/*/status/username-copy.png
share/icons/svg/*.svgz
Copyright: 2007, Nuno Pinheiro <nuno@oxygen-icons.org>
2007, David Vignoni <david@icon-king.com>

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

Binary file not shown.

View File

@ -107,6 +107,8 @@ MainWindow::MainWindow()
m_ui->actionEntryEdit->setIcon(filePath()->icon("actions", "entry-edit", false));
m_ui->actionEntryDelete->setIcon(filePath()->icon("actions", "entry-delete", false));
m_ui->actionEntryAutoType->setIcon(filePath()->icon("actions", "auto-type", false));
m_ui->actionEntryCopyUsername->setIcon(filePath()->icon("actions", "username-copy", false));
m_ui->actionEntryCopyPassword->setIcon(filePath()->icon("actions", "password-copy", false));
m_ui->actionGroupNew->setIcon(filePath()->icon("actions", "group-new", false));
m_ui->actionGroupEdit->setIcon(filePath()->icon("actions", "group-edit", false));

View File

@ -172,6 +172,9 @@
<addaction name="actionEntryEdit"/>
<addaction name="actionEntryDelete"/>
<addaction name="separator"/>
<addaction name="actionEntryCopyUsername"/>
<addaction name="actionEntryCopyPassword"/>
<addaction name="separator"/>
<addaction name="actionLockDatabases"/>
<addaction name="actionSearch"/>
</widget>
@ -317,6 +320,9 @@
<property name="text">
<string>Username</string>
</property>
<property name="toolTip">
<string>Copy username to clipboard</string>
</property>
</action>
<action name="actionEntryCopyPassword">
<property name="enabled">
@ -325,6 +331,9 @@
<property name="text">
<string>Password</string>
</property>
<property name="toolTip">
<string>Copy password to clipboard</string>
</property>
</action>
<action name="actionSettings">
<property name="text">