mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 11:56:57 +03:00
fix build
also fixed some warninigs of unused vars and formated the code again
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
(cherry picked from commit d05b996c8a)
This commit is contained in:
parent
e32297d531
commit
27ea967fc8
21 changed files with 27 additions and 63 deletions
|
|
@ -28,7 +28,8 @@ class HideCheckboxProxyModel : public QIdentityProxyModel {
|
|||
public:
|
||||
using QIdentityProxyModel::QIdentityProxyModel;
|
||||
|
||||
QVariant data(const QModelIndex& index, int role) const override {
|
||||
QVariant data(const QModelIndex& index, int role) const override
|
||||
{
|
||||
if (role == Qt::CheckStateRole) {
|
||||
return {};
|
||||
}
|
||||
|
|
@ -45,7 +46,7 @@ ProfileSelectDialog::ProfileSelectDialog(const QString& message, int flags, QWid
|
|||
m_accounts = APPLICATION->accounts();
|
||||
|
||||
auto proxy = new HideCheckboxProxyModel(ui->view);
|
||||
proxy->setSourceModel(m_accounts.get());
|
||||
proxy->setSourceModel(m_accounts);
|
||||
ui->view->setModel(proxy);
|
||||
|
||||
// Set the message label.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue