Qt: disable progress_dialog resize

This commit is contained in:
Megamouse 2019-10-25 16:04:29 +02:00
parent 200162cf2a
commit 6fe32887b2
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ progress_dialog::progress_dialog(const QString &windowTitle, const QString &labe
: QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags)
{
setWindowTitle(windowTitle);
setFixedWidth(QLabel("This is the very length of the progressdialog due to hidpi reasons.").sizeHint().width());
setFixedSize(QLabel("This is the very length of the progressdialog due to hidpi reasons.").sizeHint().width(), sizeHint().height());
setValue(0);
setWindowModality(Qt::WindowModal);
connect(this, &QProgressDialog::canceled, this, &QProgressDialog::deleteLater);

View file

@ -262,7 +262,7 @@ bool update_manager::handle_json(const QByteArray& data, bool automatic)
return true;
}
bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool automatic)
bool update_manager::handle_rpcs3(const QByteArray& rpcs3_data, bool /*automatic*/)
{
if (m_expected_size != rpcs3_data.size())
{