mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
changed the usage of "QMenu*" to a local "QMenu"
removed usage of "new QMouseEvent", it was a memory leak cleaned some includes git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2910 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e49cc6552c
commit
c3c6480f4b
30 changed files with 68 additions and 297 deletions
|
@ -27,8 +27,6 @@
|
|||
|
||||
#include <gpgme.h>
|
||||
|
||||
#include <QMenu>
|
||||
#include <QMouseEvent>
|
||||
#include <QGraphicsItem>
|
||||
|
||||
#include <iostream>
|
||||
|
@ -72,20 +70,6 @@ NetworkView::NetworkView(QWidget *parent)
|
|||
|
||||
}
|
||||
|
||||
void NetworkView::peerCustomPopupMenu( QPoint point )
|
||||
{
|
||||
|
||||
QMenu contextMnu( this );
|
||||
QMouseEvent *mevent = new QMouseEvent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier );
|
||||
|
||||
//QAction * voteupAct = new QAction(QIcon(IMAGE_EXPIORTFRIEND), tr( "Vote Link Up" ), this );
|
||||
//connect( voteupAct , SIGNAL( triggered() ), this, SLOT( voteup() ) );
|
||||
|
||||
contextMnu.clear();
|
||||
//contextMnu.addAction(voteupAct);
|
||||
contextMnu.exec( mevent->globalPos() );
|
||||
}
|
||||
|
||||
void NetworkView::changedFoFCheckBox( )
|
||||
{
|
||||
insertPeers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue