Utilize templates for Settings class
Use boost2::signals for the valueChanged signal (a LOT less messy to
deal with than qt signals)
Remove unused settings classes (BoolSetting, FloatSetting, IntSetting,
StringSetting)
What's left: Implement the remaining signals
This commit is contained in:
@@ -41,18 +41,23 @@ ChatWidgetInput::ChatWidgetInput()
|
||||
this->refreshTheme();
|
||||
|
||||
this->setMessageLengthVisisble(
|
||||
settings::Settings::getInstance().getShowMessageLength().get());
|
||||
settings::Settings::getInstance().showMessageLength.get());
|
||||
|
||||
QObject::connect(&settings::Settings::getInstance().getShowMessageLength(),
|
||||
/* XXX(pajlada): FIX THIS
|
||||
QObject::connect(&settings::Settings::getInstance().showMessageLength,
|
||||
&settings::BoolSetting::valueChanged, this,
|
||||
&ChatWidgetInput::setMessageLengthVisisble);
|
||||
*/
|
||||
}
|
||||
|
||||
ChatWidgetInput::~ChatWidgetInput()
|
||||
{
|
||||
/* XXX(pajlada): FIX THIS
|
||||
QObject::disconnect(
|
||||
&settings::Settings::getInstance().getShowMessageLength(),
|
||||
&settings::BoolSetting::valueChanged, this, &ChatWidgetInput::setMessageLengthVisisble);
|
||||
&settings::BoolSetting::valueChanged, this,
|
||||
&ChatWidgetInput::setMessageLengthVisisble);
|
||||
*/
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user