mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-01 10:53:30 +00:00
CResourceBrowser: Make use of QList's initializer list
This commit is contained in:
parent
d8c865e438
commit
62fda783f9
@ -137,7 +137,10 @@ CResourceBrowser::CResourceBrowser(QWidget *pParent)
|
||||
#endif
|
||||
|
||||
// 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
|
||||
new CResourceTableContextMenu(this, mpUI->ResourceTableView, mpModel, mpProxyModel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user