mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-18 02:47:12 -05: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
@ -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() ;
|
||||
|
@ -55,6 +55,7 @@ class PeersDialog : public RsAutoUpdatePage
|
||||
|
||||
QPixmap picture;
|
||||
virtual void updateDisplay() ; // overloaded from RsAutoUpdatePage
|
||||
virtual void keyPressEvent(QKeyEvent *) ;
|
||||
|
||||
public slots:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user