mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Follow project coding style. Issue #2192.
This commit is contained in:
@@ -31,47 +31,48 @@
|
||||
#ifndef STATUSBAR_H
|
||||
#define STATUSBAR_H
|
||||
|
||||
#include <QStatusBar>
|
||||
#include <QFrame>
|
||||
#include <QLabel>
|
||||
#include <QTimer>
|
||||
#include <QGridLayout>
|
||||
#include <QPushButton>
|
||||
#include <QHBoxLayout>
|
||||
#include <QObject>
|
||||
|
||||
class StatusBar: public QObject {
|
||||
Q_OBJECT
|
||||
class QStatusBar;
|
||||
class QFrame;
|
||||
class QLabel;
|
||||
class QTimer;
|
||||
class QPushButton;
|
||||
class QHBoxLayout;
|
||||
|
||||
class StatusBar: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
StatusBar(QStatusBar *bar);
|
||||
~StatusBar();
|
||||
StatusBar(QStatusBar *bar);
|
||||
~StatusBar();
|
||||
|
||||
QPushButton* connectionStatusButton() const;
|
||||
QPushButton* connectionStatusButton() const;
|
||||
|
||||
public slots:
|
||||
void showRestartRequired();
|
||||
void stopTimer();
|
||||
void refreshStatusBar();
|
||||
void updateAltSpeedsBtn(bool alternative);
|
||||
void toggleAlternativeSpeeds();
|
||||
void capDownloadSpeed();
|
||||
void capUploadSpeed();
|
||||
void showRestartRequired();
|
||||
void stopTimer();
|
||||
void refreshStatusBar();
|
||||
void updateAltSpeedsBtn(bool alternative);
|
||||
void toggleAlternativeSpeeds();
|
||||
void capDownloadSpeed();
|
||||
void capUploadSpeed();
|
||||
|
||||
private:
|
||||
QStatusBar *m_bar;
|
||||
QPushButton *dlSpeedLbl;
|
||||
QPushButton *upSpeedLbl;
|
||||
QLabel *DHTLbl;
|
||||
QFrame *statusSep1;
|
||||
QFrame *statusSep2;
|
||||
QFrame *statusSep3;
|
||||
QFrame *statusSep4;
|
||||
QPushButton *connecStatusLblIcon;
|
||||
QPushButton *altSpeedsBtn;
|
||||
QTimer *refreshTimer;
|
||||
QWidget *container;
|
||||
QHBoxLayout *layout;
|
||||
|
||||
QStatusBar *m_bar;
|
||||
QPushButton *dlSpeedLbl;
|
||||
QPushButton *upSpeedLbl;
|
||||
QLabel *DHTLbl;
|
||||
QFrame *statusSep1;
|
||||
QFrame *statusSep2;
|
||||
QFrame *statusSep3;
|
||||
QFrame *statusSep4;
|
||||
QPushButton *connecStatusLblIcon;
|
||||
QPushButton *altSpeedsBtn;
|
||||
QTimer *refreshTimer;
|
||||
QWidget *container;
|
||||
QHBoxLayout *layout;
|
||||
};
|
||||
|
||||
#endif // STATUSBAR_H
|
||||
|
||||
Reference in New Issue
Block a user