mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
- removed useless function (not used anymore)
This commit is contained in:
parent
6dd78d33ab
commit
b0bbbf0305
2 changed files with 0 additions and 12 deletions
11
src/GUI.cpp
11
src/GUI.cpp
|
@ -177,7 +177,6 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent){
|
|||
connect(downloadList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(togglePausedState(const QModelIndex&)));
|
||||
connect(downloadList->header(), SIGNAL(sectionPressed(int)), this, SLOT(sortDownloadList(int)));
|
||||
connect(downloadList, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayDLListMenu(const QPoint&)));
|
||||
// connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayGUIMenu(const QPoint&)));
|
||||
connect(infoBar, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayInfoBarMenu(const QPoint&)));
|
||||
// Start download list refresher
|
||||
refresher = new QTimer(this);
|
||||
|
@ -504,16 +503,6 @@ void GUI::on_actionExit_triggered(){
|
|||
close();
|
||||
}
|
||||
|
||||
void GUI::displayGUIMenu(const QPoint& pos){
|
||||
QMenu myGUIMenu(this);
|
||||
myGUIMenu.addAction(actionOpen);
|
||||
myGUIMenu.addAction(actionDownload_from_URL);
|
||||
myGUIMenu.addAction(actionStart_All);
|
||||
myGUIMenu.addAction(actionPause_All);
|
||||
myGUIMenu.addAction(actionExit);
|
||||
myGUIMenu.exec(mapToGlobal(pos));
|
||||
}
|
||||
|
||||
void GUI::previewFile(QString filePath){
|
||||
// Check if there is already one preview running
|
||||
if(previewProcess->state() == QProcess::NotRunning){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue