mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -06:00
Tune the look of the asset dialog
This commit is contained in:
@@ -115,6 +115,7 @@ PropertiesDialog QListWidget {
|
||||
*/
|
||||
AssetsDialog QTreeView {
|
||||
min-width: 40em;
|
||||
min-height: 40em;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -129,10 +129,7 @@ AssetsDialog::AssetsDialog(openspace::Profile& profile, const std::string& asset
|
||||
{
|
||||
setWindowTitle("Assets");
|
||||
_assetTreeModel.importModelData(assetBasePath, userAssetBasePath);
|
||||
createWidgets();
|
||||
}
|
||||
|
||||
void AssetsDialog::createWidgets() {
|
||||
QBoxLayout* layout = new QVBoxLayout(this);
|
||||
{
|
||||
QLabel* heading = new QLabel("Select assets from /data/assets");
|
||||
@@ -173,18 +170,19 @@ void AssetsDialog::createWidgets() {
|
||||
nRows,
|
||||
_assetTreeModel.index(-1, 0)
|
||||
);
|
||||
layout->addWidget(_assetTree);
|
||||
layout->addWidget(_assetTree, 4);
|
||||
}
|
||||
{
|
||||
QWidget* box = new QWidget;
|
||||
QBoxLayout* boxLayout = new QVBoxLayout(box);
|
||||
QLabel* summaryHeading = new QLabel("Selection summary");
|
||||
summaryHeading->setObjectName("heading");
|
||||
layout->addWidget(summaryHeading);
|
||||
}
|
||||
{
|
||||
boxLayout->addWidget(summaryHeading);
|
||||
_summary = new QTextEdit;
|
||||
_summary->setReadOnly(true);
|
||||
_summary->setText(createTextSummary());
|
||||
layout->addWidget(_summary);
|
||||
boxLayout->addWidget(_summary);
|
||||
layout->addWidget(box, 1);
|
||||
}
|
||||
|
||||
layout->addWidget(new Line);
|
||||
|
||||
Submodule ext/ghoul updated: 0282811937...0a7f66f9a1
Reference in New Issue
Block a user