- s.notify("ShowNickSelector", this, SLOT(setShowNickSelector(QVariant)));
- setShowNickSelector(s.value("ShowNickSelector", true));
-
- s.notify("ShowStyleButtons", this, SLOT(setShowStyleButtons(QVariant)));
- setShowStyleButtons(s.value("ShowStyleButtons", true));
-
- s.notify("EnablePerChatHistory", this, SLOT(setEnablePerChatHistory(QVariant)));
- setEnablePerChatHistory(s.value("EnablePerChatHistory", true));
-
- s.notify("MaxNumLines", this, SLOT(setMaxLines(QVariant)));
- setMaxLines(s.value("MaxNumLines", 5));
-
- s.notify("EnableScrollBars", this, SLOT(setScrollBarsEnabled(QVariant)));
- setScrollBarsEnabled(s.value("EnableScrollBars", true));
-
- s.notify("EnableLineWrap", this, SLOT(setLineWrapEnabled(QVariant)));
- setLineWrapEnabled(s.value("EnableLineWrap", true));
-
- s.notify("EnableMultiLine", this, SLOT(setMultiLineEnabled(QVariant)));
- setMultiLineEnabled(s.value("EnableMultiLine", true));
-
- ActionCollection *coll = QtUi::actionCollection();
-
- Action *activateInputline = coll->add<Action>("FocusInputLine");
- connect(activateInputline, SIGNAL(triggered()), SLOT(setFocus()));
- activateInputline->setText(tr("Focus Input Line"));
- activateInputline->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L));
-
- connect(inputLine(), SIGNAL(textEntered(QString)), SLOT(onTextEntered(QString)), Qt::QueuedConnection); // make sure the line is already reset, bug #984
- connect(inputLine(), SIGNAL(currentCharFormatChanged(QTextCharFormat)), this, SLOT(currentCharFormatChanged(QTextCharFormat)));
+ connect(inputLine(),
+ &MultiLineEdit::textEntered,
+ this,
+ &InputWidget::onTextEntered,
+ Qt::QueuedConnection); // make sure the line is already reset, bug #984
+ connect(inputLine(), &QTextEdit::currentCharFormatChanged, this, &InputWidget::currentCharFormatChanged);