Merge pull request #3 from Confuseh/master

sup with these wrong connects?
This commit is contained in:
fourtf 2017-01-22 19:52:05 +01:00 committed by GitHub
commit 24fab22ecb
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