mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-27 02:42:26 -04:00
frontend: Split Qt UI Widget implementations into single files per class
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
#include <QPainter>
|
||||
#include <QPixmap>
|
||||
#include "obs-app.hpp"
|
||||
#include "window-basic-main.hpp"
|
||||
#include "moc_window-basic-status-bar.cpp"
|
||||
#include "window-basic-main-outputs.hpp"
|
||||
#include "qt-wrappers.hpp"
|
||||
#include "platform.hpp"
|
||||
|
||||
#include "OBSBasicStatusBar.hpp"
|
||||
#include "ui_StatusBarWidget.h"
|
||||
|
||||
#include <widgets/OBSBasic.hpp>
|
||||
|
||||
#include "moc_OBSBasicStatusBar.cpp"
|
||||
|
||||
static constexpr int bitrateUpdateSeconds = 2;
|
||||
static constexpr int congestionUpdateSeconds = 4;
|
||||
static constexpr float excellentThreshold = 0.0f;
|
||||
@@ -16,13 +12,6 @@ static constexpr float goodThreshold = 0.3333f;
|
||||
static constexpr float mediocreThreshold = 0.6667f;
|
||||
static constexpr float badThreshold = 1.0f;
|
||||
|
||||
StatusBarWidget::StatusBarWidget(QWidget *parent) : QWidget(parent), ui(new Ui::StatusBarWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
StatusBarWidget::~StatusBarWidget() {}
|
||||
|
||||
OBSBasicStatusBar::OBSBasicStatusBar(QWidget *parent)
|
||||
: QStatusBar(parent),
|
||||
excellentPixmap(QIcon(":/res/images/network-excellent.svg").pixmap(QSize(16, 16))),
|
||||
|
||||
Reference in New Issue
Block a user