30 #include "ui_modelviewoptionspage.h"
34 : IOptionsPage(parent)
41 m_page =
new Ui::ModelViewOptionsPage();
42 QWidget *w =
new QWidget(parent);
45 m_page->modelPathChooser->setExpectedKind(Utils::PathChooser::File);
46 m_page->modelPathChooser->setPromptDialogFilter(tr(
"3D model (*.dae *.3ds)"));
47 m_page->modelPathChooser->setPromptDialogTitle(tr(
"Choose 3D model"));
48 m_page->backgroundPathChooser->setExpectedKind(Utils::PathChooser::File);
49 m_page->backgroundPathChooser->setPromptDialogFilter(tr(
"Images (*.png *.jpg *.bmp *.xpm)"));
50 m_page->backgroundPathChooser->setPromptDialogTitle(tr(
"Choose background image"));
52 m_page->modelPathChooser->setPath(m_config->
acFilename());
53 m_page->backgroundPathChooser->setPath(m_config->
bgFilename());
54 m_page->enableVbo->setChecked(m_config->
vboEnabled());
62 m_config->
setBgFilename(m_page->backgroundPathChooser->path());
void setBgFilename(QString bgFile)
void setAcFilename(QString acFile)
ModelViewGadgetOptionsPage(ModelViewGadgetConfiguration *config, QObject *parent=nullptr)
void setVboEnabled(bool vboEnable)
QWidget * createPage(QWidget *parent)