mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-10 12:54:46 +00:00
21 lines
534 B
C++
21 lines
534 B
C++
|
#include "SubaddressView.h"
|
||
|
|
||
|
#include "model/ModelUtils.h"
|
||
|
|
||
|
SubaddressView::SubaddressView(QWidget *parent) : QTreeView(parent) {
|
||
|
|
||
|
}
|
||
|
|
||
|
void SubaddressView::keyPressEvent(QKeyEvent *event){
|
||
|
QModelIndexList selectedRows = selectionModel()->selectedRows();
|
||
|
|
||
|
if(!selectedIndexes().isEmpty()){
|
||
|
if(event->matches(QKeySequence::Copy)){
|
||
|
QModelIndex index = this->currentIndex();
|
||
|
ModelUtils::copyColumn(&index, index.column());
|
||
|
}
|
||
|
else
|
||
|
QTreeView::keyPressEvent(event);
|
||
|
}
|
||
|
}
|