Need to override default Ctrl+C action for amount as default behaviour is just to copy DisplayRole text
| 623 | |
| 624 | // Need to override default Ctrl+C action for amount as default behaviour is just to copy DisplayRole text |
| 625 | bool TransactionView::eventFilter(QObject *obj, QEvent *event) |
| 626 | { |
| 627 | if (event->type() == QEvent::KeyPress) |
| 628 | { |
| 629 | QKeyEvent *ke = static_cast<QKeyEvent *>(event); |
| 630 | if (ke->key() == Qt::Key_C && ke->modifiers().testFlag(Qt::ControlModifier)) |
| 631 | { |
| 632 | GUIUtil::copyEntryData(transactionView, 0, TransactionTableModel::TxPlainTextRole); |
| 633 | return true; |
| 634 | } |
| 635 | } |
| 636 | return QWidget::eventFilter(obj, event); |
| 637 | } |
| 638 | |
| 639 | // show/hide column Watch-only |
| 640 | void TransactionView::updateWatchOnlyColumn(bool fHaveWatchOnly) |
nothing calls this directly
no test coverage detected