Simple streamlink support (#97)
* Simple streamlink support Relies on settings entry & loads best available quality by default.
This commit is contained in:
@@ -312,6 +312,8 @@ void SettingsDialog::addTabs()
|
||||
auto scroll = new QSlider(Qt::Horizontal);
|
||||
form->addRow("Mouse scroll speed:", scroll);
|
||||
|
||||
form->addRow("Streamlink Path", createLineEdit(settings.streamlinkPath));
|
||||
|
||||
// v->addWidget(scroll);
|
||||
// v->addStretch(1);
|
||||
// vbox->addLayout(v);
|
||||
@@ -583,6 +585,18 @@ QHBoxLayout *SettingsDialog::createCombobox(
|
||||
return box;
|
||||
}
|
||||
|
||||
QLineEdit *SettingsDialog::createLineEdit(pajlada::Settings::Setting<std::string> &setting)
|
||||
{
|
||||
auto widget = new QLineEdit(QString::fromStdString(setting.getValue()));
|
||||
|
||||
QObject::connect(widget, &QLineEdit::textChanged, this,
|
||||
[&setting](const QString &newValue) {
|
||||
setting = newValue.toStdString();
|
||||
});
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
||||
void SettingsDialog::okButtonClicked()
|
||||
{
|
||||
this->close();
|
||||
|
||||
Reference in New Issue
Block a user