mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-10 14:07:56 +00:00
CResourceBrowser: Make use of QList's initializer list
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user