Find/Replace dialog for SQL editors and logs

A classic Find/Replace dialog including all the options provided
by the QScintilla editor. Additionally a "Replace All" and a
Find All" button are implemented. This complements issue #191

New shortcut in main window for opening the find/replace dialog
connected to the focused widget. Standard for Replace is Ctrl+H.
Consequently the shortcut for Copy with Headers is changed to
Ctrl+Shift+C (see issue #1058).

For SQL text widgets not embedded in the main window, the standard
shortcut cannot be enabled, otherwise it conflicts with the main
window. Therefore the shortcut Ctrl+Shift+H is enabled for all the
SQL widgets as fallback. A better solution would be desirable.
This commit is contained in:
mgrojo
2017-11-25 21:39:41 +01:00
parent ce06845b36
commit 82665e3f09
14 changed files with 621 additions and 15 deletions

View File

@@ -100,7 +100,7 @@ ExtendedTableWidget::ExtendedTableWidget(QWidget* parent) :
// An entry in keyPressEvent is still needed.
nullAction->setShortcut(QKeySequence(tr("Alt+Del")));
copyAction->setShortcut(QKeySequence::Copy);
copyWithHeadersAction->setShortcut(QKeySequence(tr("Ctrl+H")));
copyWithHeadersAction->setShortcut(QKeySequence(tr("Ctrl+Shift+C")));
pasteAction->setShortcut(QKeySequence::Paste);
// Set up context menu actions