Browse Source

- removed useless function (not used anymore)

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
b0bbbf0305
  1. 11
      src/GUI.cpp
  2. 1
      src/GUI.h

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, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(togglePausedState(const QModelIndex&)));
connect(downloadList->header(), SIGNAL(sectionPressed(int)), this, SLOT(sortDownloadList(int))); connect(downloadList->header(), SIGNAL(sectionPressed(int)), this, SLOT(sortDownloadList(int)));
connect(downloadList, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayDLListMenu(const QPoint&))); 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&))); connect(infoBar, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayInfoBarMenu(const QPoint&)));
// Start download list refresher // Start download list refresher
refresher = new QTimer(this); refresher = new QTimer(this);
@ -504,16 +503,6 @@ void GUI::on_actionExit_triggered(){
close(); 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){ void GUI::previewFile(QString filePath){
// Check if there is already one preview running // Check if there is already one preview running
if(previewProcess->state() == QProcess::NotRunning){ if(previewProcess->state() == QProcess::NotRunning){

1
src/GUI.h

@ -113,7 +113,6 @@ class GUI : public QMainWindow, private Ui::MainWindow{
void selectGivenRow(const QModelIndex& index); void selectGivenRow(const QModelIndex& index);
void togglePausedState(const QModelIndex& index); void togglePausedState(const QModelIndex& index);
void displayInfoBarMenu(const QPoint& pos); void displayInfoBarMenu(const QPoint& pos);
void displayGUIMenu(const QPoint& pos);
void on_actionPreview_file_triggered(); void on_actionPreview_file_triggered();
void previewFile(QString filePath); void previewFile(QString filePath);
void cleanTempPreviewFile(int, QProcess::ExitStatus); void cleanTempPreviewFile(int, QProcess::ExitStatus);

Loading…
Cancel
Save