CResourceBrowser: Make use of QList's initializer list

This commit is contained in:
Lioncash 2020-07-10 11:57:56 -04:00
parent d8c865e438
commit 62fda783f9
1 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,10 @@ CResourceBrowser::CResourceBrowser(QWidget *pParent)
#endif #endif
// Resize splitter // Resize splitter
mpUI->splitter->setSizes( QList<int>() << width() * 0.4 << width() * 0.6 ); mpUI->splitter->setSizes({
static_cast<int>(width() * 0.4),
static_cast<int>(width() * 0.6),
});
// Create context menu for the resource table // Create context menu for the resource table
new CResourceTableContextMenu(this, mpUI->ResourceTableView, mpModel, mpProxyModel); new CResourceTableContextMenu(this, mpUI->ResourceTableView, mpModel, mpProxyModel);