adjust light functionality,
bugs: - background cannot be changed during runtime
This commit is contained in:
@@ -101,6 +101,12 @@ void MainWindow::setupWidgets()
|
||||
connect(wireframe, &QAction::triggered, viewer, &OglViewerWidget::toggleWireframe);
|
||||
ui->mainToolBar->addAction(wireframe);
|
||||
|
||||
QAction *light = new QAction(QIcon(":/images/toolbar/light.png"), "Light", this);
|
||||
light->setCheckable(true);
|
||||
light->setChecked(false);
|
||||
connect(light, &QAction::triggered, viewer, &OglViewerWidget::toggleLight);
|
||||
ui->mainToolBar->addAction(light);
|
||||
|
||||
ui->mainToolBar->addSeparator();
|
||||
|
||||
QAction *fileInfo = new QAction(QIcon(":/images/toolbar/info.png"), "File info", this);
|
||||
|
||||
Reference in New Issue
Block a user