From b68ab726e6e0fe57f3ca2c984b3ac55bfee995e5 Mon Sep 17 00:00:00 2001 From: confuseh Date: Sun, 22 Jan 2017 18:43:32 +0000 Subject: [PATCH] sup with these wrong connects? --- widgets/chatwidgetinput.cpp | 4 ++-- widgets/chatwidgetview.cpp | 4 ++-- widgets/resizingtextedit.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/widgets/chatwidgetinput.cpp b/widgets/chatwidgetinput.cpp index 8d292c259..f54f3ac9f 100644 --- a/widgets/chatwidgetinput.cpp +++ b/widgets/chatwidgetinput.cpp @@ -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 diff --git a/widgets/chatwidgetview.cpp b/widgets/chatwidgetview.cpp index fb7d21273..0f92fc515 100644 --- a/widgets/chatwidgetview.cpp +++ b/widgets/chatwidgetview.cpp @@ -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 diff --git a/widgets/resizingtextedit.h b/widgets/resizingtextedit.h index 50412065e..6445e1a08 100644 --- a/widgets/resizingtextedit.h +++ b/widgets/resizingtextedit.h @@ -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