mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 05:22:31 -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
|
@ -39,7 +39,6 @@
|
|||
#include <QMenu>
|
||||
#include <QCursor>
|
||||
#include <QPoint>
|
||||
#include <QMouseEvent>
|
||||
#include <QPixmap>
|
||||
#include <QHeaderView>
|
||||
#include <QStandardItemModel>
|
||||
|
@ -276,9 +275,6 @@ TransfersDialog::TransfersDialog(QWidget *parent)
|
|||
|
||||
void TransfersDialog::downloadListCostumPopupMenu( QPoint point )
|
||||
{
|
||||
QMenu contextMnu( this );
|
||||
QMouseEvent mevent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier );
|
||||
|
||||
std::set<QStandardItem *> items;
|
||||
std::set<QStandardItem *>::iterator it;
|
||||
getIdOfSelectedItems(items);
|
||||
|
@ -331,7 +327,7 @@ void TransfersDialog::downloadListCostumPopupMenu( QPoint point )
|
|||
chunkMenu.addAction(chunkStreamingAct);
|
||||
chunkMenu.addAction(chunkRandomAct);
|
||||
|
||||
contextMnu.clear();
|
||||
QMenu contextMnu( this );
|
||||
|
||||
if (addPlayOption)
|
||||
contextMnu.addAction(playAct);
|
||||
|
@ -414,7 +410,7 @@ void TransfersDialog::downloadListCostumPopupMenu( QPoint point )
|
|||
|
||||
contextMnu.addSeparator();
|
||||
|
||||
contextMnu.exec( mevent.globalPos() );
|
||||
contextMnu.exec(QCursor::pos());
|
||||
}
|
||||
|
||||
TransfersDialog::~TransfersDialog()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue