summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-23 13:09:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-23 13:09:56 +0200
commit41dc5c9bd5ea9ea5adfe26fa8779892b086e82ea (patch)
tree658fc6a60d800c78650557b00bac69cbd17ee10d /facetracknoir/facetracknoir.cpp
parent8ae1e1cb8f2107945715072b19e6996749bc8652 (diff)
main: use RTTI to set dialog fixed size
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp8
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);