diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-23 13:09:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-23 13:09:56 +0200 |
commit | 41dc5c9bd5ea9ea5adfe26fa8779892b086e82ea (patch) | |
tree | 658fc6a60d800c78650557b00bac69cbd17ee10d | |
parent | 8ae1e1cb8f2107945715072b19e6996749bc8652 (diff) |
main: use RTTI to set dialog fixed size
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r-- | facetracknoir/facetracknoir.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp index 5b6ed347..0a47e661 100644 --- a/facetracknoir/facetracknoir.cpp +++ b/facetracknoir/facetracknoir.cpp @@ -768,6 +768,8 @@ void FaceTrackNoIR::showTrackerSettings() { if (lib) { pTrackerDialog = (ITrackerDialog*) lib->Dialog(); if (pTrackerDialog) { + auto foo = dynamic_cast<QWidget*>(pTrackerDialog); + foo->setFixedSize(foo->size()); if (Libraries && Libraries->pTracker) pTrackerDialog->registerTracker(Libraries->pTracker); pTrackerDialog->Initialize(this); @@ -787,6 +789,8 @@ void FaceTrackNoIR::showSecondTrackerSettings() { if (lib) { pSecondTrackerDialog = (ITrackerDialog*) lib->Dialog(); if (pSecondTrackerDialog) { + auto foo = dynamic_cast<QWidget*>(pSecondTrackerDialog); + foo->setFixedSize(foo->size()); if (Libraries && Libraries->pSecondTracker) pSecondTrackerDialog->registerTracker(Libraries->pSecondTracker); pSecondTrackerDialog->Initialize(this); @@ -806,6 +810,8 @@ void FaceTrackNoIR::showServerControls() { if (lib && lib->Dialog) { pProtocolDialog = (IProtocolDialog*) lib->Dialog(); if (pProtocolDialog) { + auto foo = dynamic_cast<QWidget*>(pProtocolDialog); + foo->setFixedSize(foo->size()); pProtocolDialog->Initialize(this); } } @@ -823,6 +829,8 @@ void FaceTrackNoIR::showFilterControls() { if (lib && lib->Dialog) { pFilterDialog = (IFilterDialog*) lib->Dialog(); if (pFilterDialog) { + auto foo = dynamic_cast<QWidget*>(pFilterDialog); + foo->setFixedSize(foo->size()); pFilterDialog->Initialize(this); if (Libraries && Libraries->pFilter) pFilterDialog->registerFilter(Libraries->pFilter); |