mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #3 from Confuseh/master
sup with these wrong connects?
This commit is contained in:
commit
24fab22ecb
3 changed files with 5 additions and 5 deletions
|
@ -45,14 +45,14 @@ ChatWidgetInput::ChatWidgetInput()
|
||||||
|
|
||||||
QObject::connect(&settings::Settings::getInstance().getShowMessageLength(),
|
QObject::connect(&settings::Settings::getInstance().getShowMessageLength(),
|
||||||
&settings::BoolSetting::valueChanged, this,
|
&settings::BoolSetting::valueChanged, this,
|
||||||
&setMessageLengthVisisble);
|
&ChatWidgetInput::setMessageLengthVisisble);
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatWidgetInput::~ChatWidgetInput()
|
ChatWidgetInput::~ChatWidgetInput()
|
||||||
{
|
{
|
||||||
QObject::disconnect(
|
QObject::disconnect(
|
||||||
&settings::Settings::getInstance().getShowMessageLength(),
|
&settings::Settings::getInstance().getShowMessageLength(),
|
||||||
&settings::BoolSetting::valueChanged, this, &setMessageLengthVisisble);
|
&settings::BoolSetting::valueChanged, this, &ChatWidgetInput::setMessageLengthVisisble);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -25,14 +25,14 @@ ChatWidgetView::ChatWidgetView(ChatWidget *parent)
|
||||||
|
|
||||||
QObject::connect(&settings::Settings::getInstance(),
|
QObject::connect(&settings::Settings::getInstance(),
|
||||||
&settings::Settings::wordTypeMaskChanged, this,
|
&settings::Settings::wordTypeMaskChanged, this,
|
||||||
&wordTypeMaskChanged);
|
&ChatWidgetView::wordTypeMaskChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatWidgetView::~ChatWidgetView()
|
ChatWidgetView::~ChatWidgetView()
|
||||||
{
|
{
|
||||||
QObject::disconnect(&settings::Settings::getInstance(),
|
QObject::disconnect(&settings::Settings::getInstance(),
|
||||||
&settings::Settings::wordTypeMaskChanged, this,
|
&settings::Settings::wordTypeMaskChanged, this,
|
||||||
&wordTypeMaskChanged);
|
&ChatWidgetView::wordTypeMaskChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -13,7 +13,7 @@ public:
|
||||||
sizePolicy.setVerticalPolicy(QSizePolicy::Preferred);
|
sizePolicy.setVerticalPolicy(QSizePolicy::Preferred);
|
||||||
this->setSizePolicy(sizePolicy);
|
this->setSizePolicy(sizePolicy);
|
||||||
|
|
||||||
QObject::connect(this, &QTextEdit::textChanged, this, &updateGeometry);
|
QObject::connect(this, &QTextEdit::textChanged, this, &QWidget::updateGeometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize
|
QSize
|
||||||
|
|
Loading…
Reference in a new issue