|
|
@ -362,7 +362,7 @@ void properties::getPriorities(QStandardItem *parent, int *priorities) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void properties::displayFilesListMenu(const QPoint& pos){ |
|
|
|
void properties::displayFilesListMenu(const QPoint&){ |
|
|
|
if(h.get_torrent_info().num_files() == 1) return; |
|
|
|
if(h.get_torrent_info().num_files() == 1) return; |
|
|
|
QMenu myFilesLlistMenu(this); |
|
|
|
QMenu myFilesLlistMenu(this); |
|
|
|
QModelIndex index; |
|
|
|
QModelIndex index; |
|
|
@ -374,8 +374,7 @@ void properties::displayFilesListMenu(const QPoint& pos){ |
|
|
|
myFilesLlistMenu.addAction(actionHigh); |
|
|
|
myFilesLlistMenu.addAction(actionHigh); |
|
|
|
myFilesLlistMenu.addAction(actionMaximum); |
|
|
|
myFilesLlistMenu.addAction(actionMaximum); |
|
|
|
// Call menu
|
|
|
|
// Call menu
|
|
|
|
// XXX: why mapToGlobal() is not enough?
|
|
|
|
myFilesLlistMenu.exec(QCursor::pos()); |
|
|
|
myFilesLlistMenu.exec(mapToGlobal(pos)+QPoint(22,95)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void properties::ignoreSelection(){ |
|
|
|
void properties::ignoreSelection(){ |
|
|
|