Compare commits

...

2 Commits

Author SHA1 Message Date
Malte Jürgens
6136e4f0cd bump version to v1.0.0-rc.4 2022-07-18 20:46:40 +02:00
Malte Jürgens
faf8e72314 add missing parent references to ensure program is closed properly 2022-07-18 20:46:06 +02:00
4 changed files with 11 additions and 11 deletions

View File

@@ -117,7 +117,7 @@ setInterval(() => {
) {
for (const el of document.getElementsByClassName("info-3pQQBb")) {
const aboutEl = document.createElement("div");
aboutEl.innerText = "discord-screenaudio v1.0.0-rc.3";
aboutEl.innerText = "discord-screenaudio v1.0.0-rc.4";
aboutEl.style.fontSize = "12px";
aboutEl.style.color = "var(--text-muted)";
aboutEl.classList.add("dirscordScreenaudioAboutText");

View File

@@ -7,7 +7,7 @@
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
QApplication::setApplicationName("discord-screenaudio");
QApplication::setApplicationVersion("1.0.0-rc.3");
QApplication::setApplicationVersion("1.0.0-rc.4");
QCommandLineParser parser;
parser.setApplicationDescription(

View File

@@ -24,7 +24,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
void MainWindow::setupWebView() {
m_webView = new QWebEngineView(this);
auto page = new DiscordPage;
auto page = new DiscordPage(this);
m_webView->setPage(page);
setCentralWidget(m_webView);
}

View File

@@ -12,24 +12,24 @@
StreamDialog::StreamDialog() : QWidget() {
setAttribute(Qt::WA_QuitOnClose, false);
auto layout = new QVBoxLayout;
auto layout = new QVBoxLayout(this);
auto targetLabel = new QLabel;
auto targetLabel = new QLabel(this);
targetLabel->setText("Which app do you want to stream sound from?");
layout->addWidget(targetLabel);
m_targetComboBox = new QComboBox;
m_targetComboBox = new QComboBox(this);
updateTargets();
layout->addWidget(m_targetComboBox);
auto qualityLabel = new QLabel;
auto qualityLabel = new QLabel(this);
qualityLabel->setText("Stream Quality");
layout->addWidget(qualityLabel);
auto qualityHBox = new QHBoxLayout;
auto qualityHBox = new QHBoxLayout(this);
layout->addLayout(qualityHBox);
m_qualityResolutionComboBox = new QComboBox;
m_qualityResolutionComboBox = new QComboBox(this);
m_qualityResolutionComboBox->addItem("2160p", "3840x2160");
m_qualityResolutionComboBox->addItem("1440p", "2560x1440");
m_qualityResolutionComboBox->addItem("1080p", "1920x1080");
@@ -40,7 +40,7 @@ StreamDialog::StreamDialog() : QWidget() {
m_qualityResolutionComboBox->setCurrentText("720p");
qualityHBox->addWidget(m_qualityResolutionComboBox);
m_qualityFPSComboBox = new QComboBox;
m_qualityFPSComboBox = new QComboBox(this);
m_qualityFPSComboBox->addItem("144 FPS", 144);
m_qualityFPSComboBox->addItem("60 FPS", 60);
m_qualityFPSComboBox->addItem("30 FPS", 30);
@@ -49,7 +49,7 @@ StreamDialog::StreamDialog() : QWidget() {
m_qualityFPSComboBox->setCurrentText("30 FPS");
qualityHBox->addWidget(m_qualityFPSComboBox);
auto button = new QPushButton;
auto button = new QPushButton(this);
button->setText("Start Stream");
connect(button, &QPushButton::clicked, this, &StreamDialog::startStream);
layout->addWidget(button, Qt::AlignRight | Qt::AlignBottom);