Browse Source

Code cleanup

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
687842a949
  1. 2
      src/GUI.cpp
  2. 4
      src/rss_imp.cpp
  3. 10
      src/rss_imp.h

2
src/GUI.cpp

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

4
src/rss_imp.cpp

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

10
src/rss_imp.h

@ -41,16 +41,16 @@ class bittorrent; @@ -41,16 +41,16 @@ class bittorrent;
class RSSImp : public QWidget, public Ui::RSS{
Q_OBJECT
private:
private:
RssManager *rssmanager;
QTimer *refreshTimeTimer;
QString selectedFeedUrl;
bittorrent *BTSession;
public slots:
void on_delStream_button_clicked();
public slots:
void deleteSelectedFeeds();
protected slots:
protected slots:
void on_newFeedButton_clicked();
void on_updateAllButton_clicked();
void on_markReadButton_clicked();
@ -73,7 +73,7 @@ class RSSImp : public QWidget, public Ui::RSS{ @@ -73,7 +73,7 @@ class RSSImp : public QWidget, public Ui::RSS{
void restoreSlidersPosition();
void showFeedDownloader();
public:
public:
RSSImp(bittorrent *BTSession);
~RSSImp();
QTreeWidgetItem* getTreeItemFromUrl(QString url) const;

Loading…
Cancel
Save