From 1ca44ebf2600402db9a44f3b3baa1fda224a6dae Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 21 Oct 2014 08:03:39 +0200 Subject: replace manual QWidget::move() with dialog flag --- facetracknoir/curve-config.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'facetracknoir/curve-config.cpp') diff --git a/facetracknoir/curve-config.cpp b/facetracknoir/curve-config.cpp index ebf43a8d..f00d3657 100644 --- a/facetracknoir/curve-config.cpp +++ b/facetracknoir/curve-config.cpp @@ -1,8 +1,7 @@ #include "./facetracknoir.h" #include "./curve-config.h" #include "opentrack/main-settings.hpp" -MapWidget::MapWidget(Mappings& m, main_settings& s, QWidget *parent) : - QWidget(parent, Qt::Dialog), +MapWidget::MapWidget(Mappings& m, main_settings& s) : m(m) { ui.setupUi( this ); @@ -45,9 +44,6 @@ MapWidget::MapWidget(Mappings& m, main_settings& s, QWidget *parent) : } setFont(qApp->font()); - QPoint offsetpos(120, 30); - this->move(parent->pos() + offsetpos); - connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); -- cgit v1.2.3