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:
thunder2 2010-05-14 20:55:44 +00:00
parent e49cc6552c
commit c3c6480f4b
30 changed files with 68 additions and 297 deletions

View file

@ -22,8 +22,6 @@
#include <QContextMenuEvent>
#include <QCursor>
#include <QMenu>
#include <QMouseEvent>
#include <QPixmap>
#include <QPoint>
#include <iostream>
@ -126,7 +124,6 @@ void BlogsDialog::blogListCustomPopupMenu( QPoint point )
}
QMenu contextMnu( this );
QMouseEvent *mevent = new QMouseEvent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier );
QAction *createblogpostAct = new QAction(QIcon(":/images/mail_reply.png"), tr( "Post to Blog" ), this );
connect( createblogpostAct , SIGNAL( triggered() ), this, SLOT( createMsg() ) );
@ -161,9 +158,7 @@ void BlogsDialog::blogListCustomPopupMenu( QPoint point )
contextMnu.addAction( blogdetailsAct );
}
contextMnu.exec( mevent->globalPos() );
contextMnu.exec(QCursor::pos());
}
void BlogsDialog::createBlog()