sup with these wrong connects?

This commit is contained in:
confuseh 2017-01-22 18:43:32 +00:00
parent be92a82891
commit b68ab726e6
3 changed files with 5 additions and 5 deletions

View file

@ -45,14 +45,14 @@ ChatWidgetInput::ChatWidgetInput()
QObject::connect(&settings::Settings::getInstance().getShowMessageLength(),
&settings::BoolSetting::valueChanged, this,
&setMessageLengthVisisble);
&ChatWidgetInput::setMessageLengthVisisble);
}
ChatWidgetInput::~ChatWidgetInput()
{
QObject::disconnect(
&settings::Settings::getInstance().getShowMessageLength(),
&settings::BoolSetting::valueChanged, this, &setMessageLengthVisisble);
&settings::BoolSetting::valueChanged, this, &ChatWidgetInput::setMessageLengthVisisble);
}
void

View file

@ -25,14 +25,14 @@ ChatWidgetView::ChatWidgetView(ChatWidget *parent)
QObject::connect(&settings::Settings::getInstance(),
&settings::Settings::wordTypeMaskChanged, this,
&wordTypeMaskChanged);
&ChatWidgetView::wordTypeMaskChanged);
}
ChatWidgetView::~ChatWidgetView()
{
QObject::disconnect(&settings::Settings::getInstance(),
&settings::Settings::wordTypeMaskChanged, this,
&wordTypeMaskChanged);
&ChatWidgetView::wordTypeMaskChanged);
}
bool

View file

@ -13,7 +13,7 @@ public:
sizePolicy.setVerticalPolicy(QSizePolicy::Preferred);
this->setSizePolicy(sizePolicy);
QObject::connect(this, &QTextEdit::textChanged, this, &updateGeometry);
QObject::connect(this, &QTextEdit::textChanged, this, &QWidget::updateGeometry);
}
QSize