UI: Add connection status square to status bar

Closes jp9000/obs-studio#720
This commit is contained in:
cg2121
2016-12-07 20:00:56 -06:00
committed by jp9000
parent d1b78edbf3
commit cdf8a40bf1
2 changed files with 79 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ private:
QLabel *sessionTime;
QLabel *cpuUsage;
QLabel *kbps;
QLabel *statusSquare;
obs_output_t *streamOutput = nullptr;
obs_output_t *recordOutput = nullptr;
@@ -40,6 +41,13 @@ private:
uint64_t lastBytesSent = 0;
uint64_t lastBytesSentTime = 0;
QPixmap transparentPixmap;
QPixmap greenPixmap;
QPixmap grayPixmap;
QPixmap redPixmap;
float lastCongestion = 0.0f;
QPointer<QTimer> refreshTimer;
obs_output_t *GetOutput();