mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 05:17:44 +00:00
Improve content margins on various layouts, set sensible size for window
This commit is contained in:
parent
47d612eb8f
commit
085f26a719
5 changed files with 11 additions and 4 deletions
|
@ -46,8 +46,11 @@ BoneEditor::BoneEditor(GearView* gearView, QWidget* parent) : gearView(gearView)
|
|||
|
||||
layout->addWidget(boneListWidget);
|
||||
|
||||
auto transformLayout = new QVBoxLayout();
|
||||
layout->addLayout(transformLayout);
|
||||
|
||||
auto transformGroup = new QGroupBox("Bone Transform");
|
||||
layout->addWidget(transformGroup);
|
||||
transformLayout->addWidget(transformGroup);
|
||||
auto transformGroupLayout = new QFormLayout();
|
||||
transformGroup->setLayout(transformGroupLayout);
|
||||
|
||||
|
@ -75,7 +78,7 @@ BoneEditor::BoneEditor(GearView* gearView, QWidget* parent) : gearView(gearView)
|
|||
connect(boneListWidget, &QTreeWidget::itemClicked, this, &BoneEditor::treeItemClicked);
|
||||
|
||||
auto raceDeformGroup = new QGroupBox("Race Deform");
|
||||
layout->addWidget(raceDeformGroup);
|
||||
transformLayout->addWidget(raceDeformGroup);
|
||||
auto raceDeformGroupLayout = new QFormLayout();
|
||||
raceDeformGroup->setLayout(raceDeformGroupLayout);
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
|
||||
FullModelViewer::FullModelViewer(GameData* data, FileCache& cache) : data(data) {
|
||||
setWindowTitle("Full Model Viewer");
|
||||
setMinimumWidth(640);
|
||||
setMinimumHeight(480);
|
||||
setMinimumWidth(1280);
|
||||
setMinimumHeight(720);
|
||||
|
||||
auto layout = new QVBoxLayout();
|
||||
setLayout(layout);
|
||||
|
@ -50,6 +50,7 @@ FullModelViewer::FullModelViewer(GameData* data, FileCache& cache) : data(data)
|
|||
connect(gearView, &GearView::modelReloaded, this, &FullModelViewer::updateCharacterParameters);
|
||||
|
||||
auto viewportLayout = new QHBoxLayout();
|
||||
viewportLayout->setContentsMargins(0, 0, 0, 0);
|
||||
viewportLayout->addWidget(gearView, 1);
|
||||
layout->addLayout(viewportLayout);
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
GearListWidget::GearListWidget(GameData* data, QWidget* parent) : data(data) {
|
||||
auto layout = new QVBoxLayout();
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
setLayout(layout);
|
||||
|
||||
auto searchModel = new QSortFilterProxyModel();
|
||||
|
|
|
@ -11,6 +11,7 @@ SingleGearView::SingleGearView(GameData* data, FileCache& cache) : data(data) {
|
|||
gearView = new GearView(data, cache);
|
||||
|
||||
auto layout = new QVBoxLayout();
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->addWidget(gearView);
|
||||
setLayout(layout);
|
||||
|
||||
|
|
|
@ -145,6 +145,7 @@ private:
|
|||
|
||||
MDLPart::MDLPart(GameData* data, FileCache& cache) : data(data), cache(cache) {
|
||||
auto viewportLayout = new QVBoxLayout();
|
||||
viewportLayout->setContentsMargins(0, 0, 0, 0);
|
||||
setLayout(viewportLayout);
|
||||
|
||||
renderer = new Renderer();
|
||||
|
|
Loading…
Add table
Reference in a new issue