mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-24 02:28:33 +02:00
Receive: always copy full address
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user