mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
- Use Alternating row colors in {Peers, trackers, Files} lists too (if enabled)
This commit is contained in:
parent
b115b0c6a3
commit
2273ea4099
2 changed files with 14 additions and 5 deletions
|
@ -60,6 +60,8 @@
|
||||||
#include "speedlimitdlg.h"
|
#include "speedlimitdlg.h"
|
||||||
#include "preferences.h"
|
#include "preferences.h"
|
||||||
#include "console_imp.h"
|
#include "console_imp.h"
|
||||||
|
#include "trackerlist.h"
|
||||||
|
#include "peerlistwidget.h"
|
||||||
#include "torrentpersistentdata.h"
|
#include "torrentpersistentdata.h"
|
||||||
#include "transferlistfilterswidget.h"
|
#include "transferlistfilterswidget.h"
|
||||||
#include "propertieswidget.h"
|
#include "propertieswidget.h"
|
||||||
|
@ -730,6 +732,9 @@ void GUI::loadPreferences(bool configure_session) {
|
||||||
unsigned int new_refreshInterval = Preferences::getRefreshInterval();
|
unsigned int new_refreshInterval = Preferences::getRefreshInterval();
|
||||||
transferList->setRefreshInterval(new_refreshInterval);
|
transferList->setRefreshInterval(new_refreshInterval);
|
||||||
transferList->setAlternatingRowColors(Preferences::useAlternatingRowColors());
|
transferList->setAlternatingRowColors(Preferences::useAlternatingRowColors());
|
||||||
|
properties->getFilesList()->setAlternatingRowColors(Preferences::useAlternatingRowColors());
|
||||||
|
properties->getTrackerList()->setAlternatingRowColors(Preferences::useAlternatingRowColors());
|
||||||
|
properties->getPeerList()->setAlternatingRowColors(Preferences::useAlternatingRowColors());
|
||||||
// Queueing System
|
// Queueing System
|
||||||
if(Preferences::isQueueingSystemEnabled()) {
|
if(Preferences::isQueueingSystemEnabled()) {
|
||||||
if(!configure_session || !BTSession->isQueueingEnabled()) {
|
if(!configure_session || !BTSession->isQueueingEnabled()) {
|
||||||
|
|
|
@ -70,6 +70,15 @@ private:
|
||||||
DownloadedPiecesBar *downloaded_pieces;
|
DownloadedPiecesBar *downloaded_pieces;
|
||||||
PieceAvailabilityBar *pieces_availability;
|
PieceAvailabilityBar *pieces_availability;
|
||||||
|
|
||||||
|
public:
|
||||||
|
PropertiesWidget(QWidget *parent, GUI* main_window, TransferListWidget *transferList, Bittorrent* BTSession);
|
||||||
|
~PropertiesWidget();
|
||||||
|
const QTorrentHandle& getCurrentTorrent() const;
|
||||||
|
Bittorrent* getBTSession() const;
|
||||||
|
TrackerList* getTrackerList() const { return trackerList; }
|
||||||
|
PeerListWidget* getPeerList() const { return peersList; }
|
||||||
|
QTreeView* getFilesList() const { return filesList; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QPushButton* getButtonFromIndex(int index);
|
QPushButton* getButtonFromIndex(int index);
|
||||||
bool applyPriorities();
|
bool applyPriorities();
|
||||||
|
@ -102,11 +111,6 @@ public slots:
|
||||||
void reloadPreferences();
|
void reloadPreferences();
|
||||||
void openDoubleClickedFile(QModelIndex);
|
void openDoubleClickedFile(QModelIndex);
|
||||||
|
|
||||||
public:
|
|
||||||
PropertiesWidget(QWidget *parent, GUI* main_window, TransferListWidget *transferList, Bittorrent* BTSession);
|
|
||||||
~PropertiesWidget();
|
|
||||||
const QTorrentHandle& getCurrentTorrent() const;
|
|
||||||
Bittorrent* getBTSession() const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PROPERTIESWIDGET_H
|
#endif // PROPERTIESWIDGET_H
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue