fix: the reencode dialog codec help text being weirdly coloured on different platforms
refactor: build.sh
This commit is contained in:
@@ -57,13 +57,10 @@ void ReencodeDialog::buildUi()
|
||||
|
||||
m_presetCombo = new QComboBox(this);
|
||||
|
||||
// Create the description label BEFORE connecting signals and adding items
|
||||
m_presetDesc = new QLabel(this);
|
||||
m_presetDesc->setWordWrap(true);
|
||||
m_presetDesc->setStyleSheet("color: palette(mid);");
|
||||
settingsGrid->addWidget(m_presetDesc, 1, 1, 1, 2);
|
||||
|
||||
// Now connect the signal and add items (signal may fire during addItem)
|
||||
connect(m_presetCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, &ReencodeDialog::onPresetChanged);
|
||||
for (const auto &p : m_presets)
|
||||
@@ -94,7 +91,7 @@ void ReencodeDialog::buildUi()
|
||||
m_table->setAlternatingRowColors(true);
|
||||
root->addWidget(m_table, 1);
|
||||
|
||||
// Progress row
|
||||
// progress row
|
||||
auto *progressLayout = new QHBoxLayout;
|
||||
m_statusLabel = new QLabel("Ready", this);
|
||||
m_statusLabel->setMinimumWidth(120);
|
||||
@@ -106,7 +103,7 @@ void ReencodeDialog::buildUi()
|
||||
progressLayout->addWidget(m_overallBar, 1);
|
||||
root->addLayout(progressLayout);
|
||||
|
||||
// Button row
|
||||
// button row
|
||||
auto *btnLayout = new QHBoxLayout;
|
||||
btnLayout->addStretch();
|
||||
m_startStopBtn = new QPushButton("Start Encoding", this);
|
||||
|
||||
Reference in New Issue
Block a user