Code cleanup

This commit is contained in:
Christophe Dumez 2009-08-22 02:30:28 +00:00
parent 645ee86860
commit 687842a949
3 changed files with 36 additions and 36 deletions

View file

@ -911,7 +911,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
inDownloadList = false; inDownloadList = false;
break; break;
case 3: //RSSImp case 3: //RSSImp
rssWidget->on_delStream_button_clicked(); rssWidget->deleteSelectedFeeds();
return; return;
default: default:
return; return;

View file

@ -116,7 +116,7 @@ void RSSImp::on_newFeedButton_clicked() {
} }
// delete a stream by a button // delete a stream by a button
void RSSImp::on_delStream_button_clicked() { void RSSImp::deleteSelectedFeeds() {
QList<QTreeWidgetItem*> selectedItems = listStreams->selectedItems(); QList<QTreeWidgetItem*> selectedItems = listStreams->selectedItems();
QTreeWidgetItem *item; QTreeWidgetItem *item;
if(!selectedItems.size()) return; if(!selectedItems.size()) return;
@ -367,7 +367,7 @@ RSSImp::RSSImp(bittorrent *BTSession) : QWidget(), BTSession(BTSession){
connect(listNews, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayItemsListMenu(const QPoint&))); connect(listNews, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(displayItemsListMenu(const QPoint&)));
// Feeds list actions // Feeds list actions
connect(actionDelete_feed, SIGNAL(triggered()), this, SLOT(on_delStream_button_clicked())); connect(actionDelete_feed, SIGNAL(triggered()), this, SLOT(deleteSelectedFeeds()));
connect(actionRename_feed, SIGNAL(triggered()), this, SLOT(renameStream())); connect(actionRename_feed, SIGNAL(triggered()), this, SLOT(renameStream()));
connect(actionUpdate_feed, SIGNAL(triggered()), this, SLOT(refreshSelectedStreams())); connect(actionUpdate_feed, SIGNAL(triggered()), this, SLOT(refreshSelectedStreams()));
connect(actionNew_subscription, SIGNAL(triggered()), this, SLOT(on_newFeedButton_clicked())); connect(actionNew_subscription, SIGNAL(triggered()), this, SLOT(on_newFeedButton_clicked()));

View file

@ -48,7 +48,7 @@ class RSSImp : public QWidget, public Ui::RSS{
bittorrent *BTSession; bittorrent *BTSession;
public slots: public slots:
void on_delStream_button_clicked(); void deleteSelectedFeeds();
protected slots: protected slots:
void on_newFeedButton_clicked(); void on_newFeedButton_clicked();