mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 03:52:39 -04:00
Added QKeyEvent to Deny or Delete Location in a easy way via Key Delete.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2064 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ffb5938a03
commit
d7a4129cd6
2 changed files with 13 additions and 1 deletions
|
@ -282,6 +282,17 @@ void PeersDialog::peertreeWidgetCostumPopupMenu( QPoint point )
|
|||
|
||||
}
|
||||
|
||||
void PeersDialog::keyPressEvent(QKeyEvent *e)
|
||||
{
|
||||
if(e->key() == Qt::Key_Delete)
|
||||
{
|
||||
removefriend() ;
|
||||
e->accept() ;
|
||||
}
|
||||
else
|
||||
MainPage::keyPressEvent(e) ;
|
||||
}
|
||||
|
||||
void PeersDialog::updateDisplay()
|
||||
{
|
||||
insertPeers() ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue