diff options
author | Jonathan Hanks <brouwer@annejan.com> | 2015-11-20 20:15:41 -0800 |
---|---|---|
committer | Jonathan Hanks <jonathan.hanks@ligo.org> | 2015-11-20 21:11:41 -0800 |
commit | 52b0477e7dcbc88a03436309ba4b0c250db221c3 (patch) | |
tree | 69f013dfb89721d33a1d77cb18442fd6205e95ea /configdialog.h | |
parent | b2f951d1469baba0af881b06978b44d690fb95d8 (diff) |
Modified the clipboard logic to allow for on-demand copy to clipboard.
Changed the clipboard config entry to be a combobox instead of a checkbox. It has 3 states:
Never copy to the clipboard
Always copy to the clipboard
On-demand copy to the clipboard
Added a 'Password' button to the main window which copies the password to the clipboard when pressed.
The button is disabled when there is no password loaded or passwords are set to never copy to the clipboard.
Added a context menu entry to the text browser to copy the password to the clipboard.
Moved some of the clipboard code around to make it more flexible. Clippedpass is always set when the password could be copied.
Diffstat (limited to 'configdialog.h')
-rw-r--r-- | configdialog.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configdialog.h b/configdialog.h index b9a1938b..d18cd0ab 100644 --- a/configdialog.h +++ b/configdialog.h @@ -27,7 +27,7 @@ public: void setStorePath(QString); void setProfiles(QHash<QString, QString>, QString); void usePass(bool); - void useClipboard(bool); + void useClipboard(MainWindow::clipBoardType); void useAutoclear(bool); void setAutoclear(int); void useAutoclearPanel(bool); @@ -41,7 +41,7 @@ public: QString getStorePath(); QHash<QString,QString> getProfiles(); bool usePass(); - bool useClipboard(); + MainWindow::clipBoardType useClipboard(); bool useAutoclear(); int getAutoclear(); bool useAutoclearPanel(); @@ -91,7 +91,7 @@ private slots: void on_toolButtonPwgen_clicked(); void on_toolButtonPass_clicked(); void on_toolButtonStore_clicked(); - void on_checkBoxClipboard_clicked(); + void on_comboBoxClipboard_activated(); void on_checkBoxAutoclear_clicked(); void on_checkBoxAutoclearPanel_clicked(); void on_addButton_clicked(); |