Actually change the shortcut for Copy with Headers to Ctrl+Shift+C

The change in commit 82665e3f09 only
affected the label in the context menu.
This commit is contained in:
mgrojo
2017-11-26 14:21:20 +01:00
parent c9bf5f87cb
commit 42d2feb99b

View File

@@ -457,8 +457,8 @@ void ExtendedTableWidget::keyPressEvent(QKeyEvent* event)
} else if(event->matches(QKeySequence::Paste)) {
// Call a custom paste method when Ctrl-V is pressed
paste();
} else if(event->modifiers().testFlag(Qt::ControlModifier) && (event->key() == Qt::Key_H)) {
// Call copy with headers when Ctrl-H is pressed
} else if(event->modifiers().testFlag(Qt::ControlModifier) && event->modifiers().testFlag(Qt::ShiftModifier) && (event->key() == Qt::Key_C)) {
// Call copy with headers when Ctrl-Shift-C is pressed
copy(true);
} else if(event->key() == Qt::Key_Tab && hasFocus() &&
selectedIndexes().count() == 1 &&