From 5aaac871b90b3d5aa642e44fba5b86577134f8ec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 18 Jun 2015 10:46:22 +0200 Subject: Revert "options: add support for QRadioButton" This reverts commit 21f6b1c681ca6efe4511486994264b8d8c8d9463. --- opentrack/options.hpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/opentrack/options.hpp b/opentrack/options.hpp index b7cc44a4..7c3f6847 100644 --- a/opentrack/options.hpp +++ b/opentrack/options.hpp @@ -30,7 +30,6 @@ #include #include #include -#include #include @@ -454,12 +453,4 @@ namespace options { base_value::connect(t, SIGNAL(currentChanged(int)), &v, SLOT(setValue(int)), v.DIRECT_CONNTYPE); base_value::connect(&v, SIGNAL(valueChanged(int)), t, SLOT(setCurrentIndex(int)), v.SAFE_CONNTYPE); } - - template<> - inline void tie_setting(value& v, QRadioButton* t) - { - t->setChecked(v); - base_value::connect(t, SIGNAL(toggled(bool)), &v, SLOT(setValue(bool)), v.DIRECT_CONNTYPE); - base_value::connect(&v, SIGNAL(valueChanged(bool)), t, SLOT(setChecked(bool)), v.SAFE_CONNTYPE); - } } -- cgit v1.2.3