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:
defnax 2010-01-17 17:58:28 +00:00
parent ffb5938a03
commit d7a4129cd6
2 changed files with 13 additions and 1 deletions

View File

@ -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() ;

View File

@ -55,10 +55,11 @@ class PeersDialog : public RsAutoUpdatePage
QPixmap picture;
virtual void updateDisplay() ; // overloaded from RsAutoUpdatePage
virtual void keyPressEvent(QKeyEvent *) ;
public slots:
void insertPeers();
void insertPeers();
void toggleSendItem( QTreeWidgetItem *item, int col );
void insertChat();