mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-27 00:08:54 -04:00
Merge pull request #2580 from jpark37/remux-fix
UI: Fix text handling for dialogs
This commit is contained in:
2 files changed
+6
-4
No files matched your search
@@ -92,6 +92,9 @@ QWidget *ImporterEntryPathItemDelegate::createEditor(
|
||||
QSizePolicy::ControlType::LineEdit));
|
||||
layout->addWidget(text);
|
||||
|
||||
QObject::connect(text, SIGNAL(editingFinished()), this,
|
||||
SLOT(updateText()));
|
||||
|
||||
QToolButton *browseButton = new QToolButton();
|
||||
browseButton->setText("...");
|
||||
browseButton->setSizePolicy(buttonSizePolicy);
|
||||
@@ -121,8 +124,6 @@ void ImporterEntryPathItemDelegate::setEditorData(
|
||||
{
|
||||
QLineEdit *text = editor->findChild<QLineEdit *>();
|
||||
text->setText(index.data().toString());
|
||||
QObject::connect(text, SIGNAL(textEdited(QString)), this,
|
||||
SLOT(updateText()));
|
||||
editor->setProperty(PATH_LIST_PROP, QVariant());
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -112,6 +112,9 @@ QWidget *RemuxEntryPathItemDelegate::createEditor(
|
||||
QSizePolicy::ControlType::LineEdit));
|
||||
layout->addWidget(text);
|
||||
|
||||
QObject::connect(text, SIGNAL(editingFinished()), this,
|
||||
SLOT(updateText()));
|
||||
|
||||
QToolButton *browseButton = new QToolButton();
|
||||
browseButton->setText("...");
|
||||
browseButton->setSizePolicy(buttonSizePolicy);
|
||||
@@ -143,8 +146,6 @@ void RemuxEntryPathItemDelegate::setEditorData(QWidget *editor,
|
||||
{
|
||||
QLineEdit *text = editor->findChild<QLineEdit *>();
|
||||
text->setText(index.data().toString());
|
||||
QObject::connect(text, SIGNAL(textEdited(QString)), this,
|
||||
SLOT(updateText()));
|
||||
editor->setProperty(PATH_LIST_PROP, QVariant());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user