mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 10:56:57 +03:00
chore(clang-tidy): modernize the code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
2e45d135c5
commit
effa8bedb1
42 changed files with 854 additions and 786 deletions
|
|
@ -56,9 +56,9 @@ ResourceDownloadDialog::ResourceDownloadDialog(QWidget* parent,
|
|||
BaseInstance* inst,
|
||||
bool suppressInitialSearch)
|
||||
: QDialog(parent)
|
||||
, m_base_model(baseModel)
|
||||
, m_baseModel(baseModel)
|
||||
, m_buttons(QDialogButtonBox::Help | QDialogButtonBox::Ok | QDialogButtonBox::Cancel)
|
||||
, m_vertical_layout(this)
|
||||
, m_verticalLayout(this)
|
||||
, m_suppressInitialSearch(suppressInitialSearch)
|
||||
, m_instance(inst)
|
||||
{
|
||||
|
|
@ -135,7 +135,7 @@ void ResourceDownloadDialog::initializeContainer()
|
|||
m_container = new PageContainer(this, {}, this);
|
||||
m_container->setSizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Expanding);
|
||||
m_container->layout()->setContentsMargins(0, 0, 0, 0);
|
||||
m_vertical_layout.addWidget(m_container);
|
||||
m_verticalLayout.addWidget(m_container);
|
||||
|
||||
m_container->addButtons(&m_buttons);
|
||||
|
||||
|
|
@ -206,7 +206,7 @@ void ResourceDownloadDialog::confirm()
|
|||
.filename = task->getFilename(),
|
||||
.provider = ModPlatform::ProviderCapabilities::name(task->getProvider()),
|
||||
.required_by = extraInfo.requiredBy,
|
||||
.version_type = task->getVersion().version_type.toString(),
|
||||
.version_type = task->getVersion().versionType.toString(),
|
||||
.enabled = !extraInfo.maybeInstalled });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue