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…
Reference in New Issue