mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-30 03:04:20 +01:00
configure_per_game_addons: Stretch first column and not last
This provides more sensible column widths.
This commit is contained in:
parent
550844e5e8
commit
8dc1913db8
@ -47,6 +47,9 @@ ConfigurePerGameAddons::ConfigurePerGameAddons(Core::System& system_, QWidget* p
|
|||||||
item_model->setHeaderData(0, Qt::Horizontal, tr("Patch Name"));
|
item_model->setHeaderData(0, Qt::Horizontal, tr("Patch Name"));
|
||||||
item_model->setHeaderData(1, Qt::Horizontal, tr("Version"));
|
item_model->setHeaderData(1, Qt::Horizontal, tr("Version"));
|
||||||
|
|
||||||
|
tree_view->header()->setStretchLastSection(false);
|
||||||
|
tree_view->header()->setSectionResizeMode(0, QHeaderView::ResizeMode::Stretch);
|
||||||
|
|
||||||
// We must register all custom types with the Qt Automoc system so that we are able to use it
|
// We must register all custom types with the Qt Automoc system so that we are able to use it
|
||||||
// with signals/slots. In this case, QList falls under the umbrella of custom types.
|
// with signals/slots. In this case, QList falls under the umbrella of custom types.
|
||||||
qRegisterMetaType<QList<QStandardItem*>>("QList<QStandardItem*>");
|
qRegisterMetaType<QList<QStandardItem*>>("QList<QStandardItem*>");
|
||||||
@ -138,5 +141,5 @@ void ConfigurePerGameAddons::LoadConfiguration() {
|
|||||||
item_model->appendRow(list_items.back());
|
item_model->appendRow(list_items.back());
|
||||||
}
|
}
|
||||||
|
|
||||||
tree_view->setColumnWidth(0, 5 * tree_view->width() / 16);
|
tree_view->resizeColumnToContents(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user