Remove model preview from export widget
parent
e39acc9f25
commit
1853e45ea4
|
@ -68,14 +68,14 @@ ExportPreviewWidget::ExportPreviewWidget(Document *document, QWidget *parent) :
|
||||||
//containerLayout->setRowStretch(0, 1);
|
//containerLayout->setRowStretch(0, 1);
|
||||||
//containerLayout->setColumnStretch(0, 1);
|
//containerLayout->setColumnStretch(0, 1);
|
||||||
|
|
||||||
m_textureRenderWidget = new ModelWidget;
|
//m_textureRenderWidget = new ModelWidget;
|
||||||
m_textureRenderWidget->setMinimumSize(128, 128);
|
//m_textureRenderWidget->setMinimumSize(128, 128);
|
||||||
//m_textureRenderWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
//m_textureRenderWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
|
|
||||||
QVBoxLayout *renderLayout = new QVBoxLayout;
|
//QVBoxLayout *renderLayout = new QVBoxLayout;
|
||||||
renderLayout->setSpacing(0);
|
//renderLayout->setSpacing(0);
|
||||||
renderLayout->setContentsMargins(20, 0, 20, 0);
|
//renderLayout->setContentsMargins(20, 0, 20, 0);
|
||||||
renderLayout->addWidget(m_textureRenderWidget);
|
//renderLayout->addWidget(m_textureRenderWidget);
|
||||||
|
|
||||||
QWidget *hrLightWidget = Theme::createHorizontalLineWidget();
|
QWidget *hrLightWidget = Theme::createHorizontalLineWidget();
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ ExportPreviewWidget::ExportPreviewWidget(Document *document, QWidget *parent) :
|
||||||
topLayout->setSpacing(0);
|
topLayout->setSpacing(0);
|
||||||
topLayout->setContentsMargins(0, 0, 0, 0);
|
topLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
topLayout->addLayout(containerLayout);
|
topLayout->addLayout(containerLayout);
|
||||||
topLayout->addLayout(renderLayout);
|
//topLayout->addLayout(renderLayout);
|
||||||
|
|
||||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||||
mainLayout->addLayout(topLayout);
|
mainLayout->addLayout(topLayout);
|
||||||
|
@ -182,7 +182,7 @@ void ExportPreviewWidget::updateTexturePreview()
|
||||||
m_metalnessRoughnessAmbientOcclusionImage = *m_document->textureMetalnessRoughnessAmbientOcclusionImage;
|
m_metalnessRoughnessAmbientOcclusionImage = *m_document->textureMetalnessRoughnessAmbientOcclusionImage;
|
||||||
else
|
else
|
||||||
m_metalnessRoughnessAmbientOcclusionImage = QImage();
|
m_metalnessRoughnessAmbientOcclusionImage = QImage();
|
||||||
m_textureRenderWidget->updateMesh(m_document->takeResultTextureMesh());
|
//m_textureRenderWidget->updateMesh(m_document->takeResultTextureMesh());
|
||||||
resizePreviewImages();
|
resizePreviewImages();
|
||||||
checkSpinner();
|
checkSpinner();
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ private:
|
||||||
QImage m_colorImage;
|
QImage m_colorImage;
|
||||||
QImage m_normalImage;
|
QImage m_normalImage;
|
||||||
QImage m_metalnessRoughnessAmbientOcclusionImage;
|
QImage m_metalnessRoughnessAmbientOcclusionImage;
|
||||||
ModelWidget *m_textureRenderWidget;
|
//ModelWidget *m_textureRenderWidget;
|
||||||
WaitingSpinnerWidget *m_spinnerWidget;
|
WaitingSpinnerWidget *m_spinnerWidget;
|
||||||
QPushButton *m_saveButton;
|
QPushButton *m_saveButton;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue