Commit 263572d8 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

add hudItem to toggle overlay

parent b9e43b11
......@@ -15,6 +15,7 @@
#include "dtkVisualizationCanvas.h"
#include <dtkWidgets/dtkWidgetsHUD>
#include <dtkWidgets/dtkWidgetsHUDItem>
#include <dtkWidgets/dtkWidgetsOverlayPane>
#include <QVTKOpenGLWidget.h>
......@@ -73,10 +74,15 @@ dtkVisualizationCanvasPrivate::dtkVisualizationCanvasPrivate(QWidget *parent) :
this->hud = new dtkWidgetsHUD(parent);
dtkWidgetsHUDItem *settings = this->hud->addItem(fa::sliders);
settings->setToolTip("Fields Settings");
this->overlay = new dtkWidgetsOverlayPane(parent);
this->overlay->setBound(600);
this->overlay->toggle();
connect(settings, SIGNAL(clicked()), this->overlay, SLOT(toggle()));
connect(this->overlay, &dtkWidgetsOverlayPane::entered, [=] () {
this->GetInteractor()->Disable();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment