UiSettings s("InputWidget");
-#ifdef HAVE_KDE4
- s.notify("EnableSpellCheck", this, SLOT(setEnableSpellCheck(QVariant)));
- setEnableSpellCheck(s.value("EnableSpellCheck", false));
-#endif
-
s.notify("EnableEmacsMode", this, SLOT(setEnableEmacsMode(QVariant)));
setEnableEmacsMode(s.value("EnableEmacsMode", false));
}
-void InputWidget::setEnableSpellCheck(const QVariant &v)
-{
- ui.inputEdit->setSpellCheckEnabled(v.toBool());
-}
-
-
void InputWidget::setEnableEmacsMode(const QVariant &v)
{
ui.inputEdit->setEmacsMode(v.toBool());
BufferInfo InputWidget::currentBufferInfo() const
{
return selectionModel()->currentIndex().data(NetworkModel::BufferInfoRole).value<BufferInfo>();
-};
+}
void InputWidget::applyFormatActiveColor()
const Network *previousNet = Client::network(_networkId);
if (previousNet) {
- disconnect(previousNet, 0, this, 0);
+ disconnect(previousNet, nullptr, this, nullptr);
if (previousNet->me())
- disconnect(previousNet->me(), 0, this, 0);
+ disconnect(previousNet->me(), nullptr, this, nullptr);
}
_networkId = networkId;
const Identity *previousIdentity = Client::identity(_identityId);
if (previousIdentity)
- disconnect(previousIdentity, 0, this, 0);
+ disconnect(previousIdentity, nullptr, this, nullptr);
_identityId = identityId;