summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-21 08:03:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-21 08:03:39 +0200
commit1ca44ebf2600402db9a44f3b3baa1fda224a6dae (patch)
tree59068533286c66c2d5564eb3f874c4a6f8c28fe0 /facetracknoir/facetracknoir.cpp
parent31a0400bb07424e371bc7504a5147ae9fcced683 (diff)
replace manual QWidget::move() with dialog flag
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index c3de12ba..0333c120 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -364,14 +364,14 @@ void FaceTrackNoIR::showFilterSettings() {
void FaceTrackNoIR::showKeyboardShortcuts() {
shortcuts_widget = std::make_shared<KeyboardShortcutDialog>();
- shortcuts_widget->show();
- shortcuts_widget->raise();
+ shortcuts_widget->setWindowFlags(Qt::Dialog);
connect(shortcuts_widget.get(), SIGNAL(reload()), this, SLOT(bindKeyboardShortcuts()));
+ shortcuts_widget->show();
}
void FaceTrackNoIR::showCurveConfiguration() {
- mapping_widget = std::make_shared<MapWidget>(pose, s, this);
- mapping_widget->show();
+ mapping_widget = std::make_shared<MapWidget>(pose, s);
+ mapping_widget->setWindowFlags(Qt::Dialog);
mapping_widget->raise();
}