-----------------------------------------------------------------------------
| 38 | |
| 39 | //----------------------------------------------------------------------------- |
| 40 | DepthMapOptions::DepthMapOptions(QString const& settingsGroup, |
| 41 | QWidget* parent, Qt::WindowFlags flags) |
| 42 | : QWidget(parent, flags), d_ptr(new DepthMapOptionsPrivate) |
| 43 | { |
| 44 | QTE_D(); |
| 45 | |
| 46 | // Set up UI |
| 47 | d->UI.setupUi(this); |
| 48 | |
| 49 | d->filterOptions = new DepthMapFilterOptions(settingsGroup, this); |
| 50 | d->setPopup(d->UI.filterMenu, d->filterOptions); |
| 51 | d->UI.filterMenu->setEnabled(false); |
| 52 | |
| 53 | // Connect signals/slots |
| 54 | connect(d->UI.points, &QAbstractButton::toggled, |
| 55 | this, &DepthMapOptions::displayModeChanged); |
| 56 | connect(d->UI.surfaces, &QAbstractButton::toggled, |
| 57 | this, &DepthMapOptions::displayModeChanged); |
| 58 | |
| 59 | connect(d->UI.filter, &QAbstractButton::toggled, |
| 60 | this, QOverload<bool>::of(&DepthMapOptions::thresholdsChanged)); |
| 61 | connect(d->filterOptions, &DepthMapFilterOptions::filtersChanged, |
| 62 | this, QOverload<>::of(&DepthMapOptions::thresholdsChanged)); |
| 63 | } |
| 64 | |
| 65 | //----------------------------------------------------------------------------- |
| 66 | DepthMapOptions::~DepthMapOptions() |