Improve shortcuts in GUI
This commit is contained in:
parent
24eadaf516
commit
3948490bba
|
@ -203,10 +203,12 @@ MainWindow::MainWindow(QSettings &settings, Dialogs::QtSettings *qtSettings, QWi
|
|||
// -> add/remove account
|
||||
connect(m_ui->actionAddAccount, &QAction::triggered, this, &MainWindow::addAccount);
|
||||
connect(m_ui->actionAddCategory, &QAction::triggered, this, &MainWindow::addCategory);
|
||||
connect(m_ui->actionRemoveRows, &QAction::triggered, this, &MainWindow::removeEntry);
|
||||
connect(m_ui->actionRemoveAccount, &QAction::triggered, this, &MainWindow::removeEntry);
|
||||
// -> insert/remove fields
|
||||
connect(m_ui->actionInsertRow, &QAction::triggered, this, &MainWindow::insertRow);
|
||||
connect(m_ui->actionRemoveAccount, &QAction::triggered, this, &MainWindow::removeRows);
|
||||
connect(m_ui->actionRemoveRows, &QAction::triggered, this, &MainWindow::removeRows);
|
||||
connect(m_ui->actionCopyFields, &QAction::triggered, this, &MainWindow::copyFields);
|
||||
connect(m_ui->actionPasteFields, &QAction::triggered, this, &MainWindow::insertFieldsFromClipboard);
|
||||
// -> undo/redo
|
||||
connect(m_ui->actionUndo, &QAction::triggered, m_undoStack, &QUndoStack::undo);
|
||||
connect(m_ui->actionRedo, &QAction::triggered, m_undoStack, &QUndoStack::redo);
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>848</width>
|
||||
<height>26</height>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuProgramm">
|
||||
|
@ -231,6 +231,8 @@
|
|||
<addaction name="separator"/>
|
||||
<addaction name="actionInsertRow"/>
|
||||
<addaction name="actionRemoveRows"/>
|
||||
<addaction name="actionCopyFields"/>
|
||||
<addaction name="actionPasteFields"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuTools">
|
||||
<property name="title">
|
||||
|
@ -381,6 +383,9 @@
|
|||
<property name="toolTip">
|
||||
<string>Remove selected entry</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Shift+Del</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInsertRow">
|
||||
<property name="icon">
|
||||
|
@ -388,7 +393,10 @@
|
|||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Insert field</string>
|
||||
<string>&Insert new field</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+I</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRemoveRows">
|
||||
|
@ -399,6 +407,9 @@
|
|||
<property name="text">
|
||||
<string>Remove selected &field(s)</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Del</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPasswordGenerator">
|
||||
<property name="icon">
|
||||
|
@ -408,6 +419,9 @@
|
|||
<property name="text">
|
||||
<string>&Password generator</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+G</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAlwaysCreateBackup">
|
||||
<property name="checkable">
|
||||
|
@ -431,6 +445,9 @@
|
|||
<property name="toolTip">
|
||||
<string>Export passwords to plain text files</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+E</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShowContainingDirectory">
|
||||
<property name="icon">
|
||||
|
@ -452,6 +469,9 @@
|
|||
<property name="text">
|
||||
<string>&Undo</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Z</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRedo">
|
||||
<property name="enabled">
|
||||
|
@ -464,6 +484,9 @@
|
|||
<property name="text">
|
||||
<string>&Redo</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Shift+Z</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAddCategory">
|
||||
<property name="icon">
|
||||
|
@ -473,6 +496,9 @@
|
|||
<property name="text">
|
||||
<string>Add &new category</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Shift+C</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShowUndoStack">
|
||||
<property name="checkable">
|
||||
|
@ -481,6 +507,9 @@
|
|||
<property name="text">
|
||||
<string>&Show undo stack</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+U</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShowAlways">
|
||||
<property name="checkable">
|
||||
|
@ -515,6 +544,28 @@
|
|||
<string>&Qt settings</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCopyFields">
|
||||
<property name="icon">
|
||||
<iconset theme="edit-copy"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copy selected field(s)</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+C</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPasteFields">
|
||||
<property name="icon">
|
||||
<iconset theme="edit-paste"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Paste to selected field(s)</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+V</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
|
|
Loading…
Reference in New Issue