projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use 'using' instead of 'typedef'
[quassel.git]
/
src
/
qtui
/
inputwidget.cpp
diff --git
a/src/qtui/inputwidget.cpp
b/src/qtui/inputwidget.cpp
index
48d9bc6
..
3233f04
100644
(file)
--- a/
src/qtui/inputwidget.cpp
+++ b/
src/qtui/inputwidget.cpp
@@
-118,11
+118,6
@@
InputWidget::InputWidget(QWidget *parent)
UiSettings s("InputWidget");
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));
s.notify("EnableEmacsMode", this, SLOT(setEnableEmacsMode(QVariant)));
setEnableEmacsMode(s.value("EnableEmacsMode", false));
@@
-189,12
+184,6
@@
void InputWidget::setCustomFont(const QVariant &v)
}
}
-void InputWidget::setEnableSpellCheck(const QVariant &v)
-{
- ui.inputEdit->setSpellCheckEnabled(v.toBool());
-}
-
-
void InputWidget::setEnableEmacsMode(const QVariant &v)
{
ui.inputEdit->setEmacsMode(v.toBool());
void InputWidget::setEnableEmacsMode(const QVariant &v)
{
ui.inputEdit->setEmacsMode(v.toBool());
@@
-385,7
+374,7
@@
const Network *InputWidget::currentNetwork() const
BufferInfo InputWidget::currentBufferInfo() const
{
return selectionModel()->currentIndex().data(NetworkModel::BufferInfoRole).value<BufferInfo>();
BufferInfo InputWidget::currentBufferInfo() const
{
return selectionModel()->currentIndex().data(NetworkModel::BufferInfoRole).value<BufferInfo>();
-}
;
+}
void InputWidget::applyFormatActiveColor()
void InputWidget::applyFormatActiveColor()
@@
-438,9
+427,9
@@
void InputWidget::setNetwork(NetworkId networkId)
const Network *previousNet = Client::network(_networkId);
if (previousNet) {
const Network *previousNet = Client::network(_networkId);
if (previousNet) {
- disconnect(previousNet,
0, this, 0
);
+ disconnect(previousNet,
nullptr, this, nullptr
);
if (previousNet->me())
if (previousNet->me())
- disconnect(previousNet->me(),
0, this, 0
);
+ disconnect(previousNet->me(),
nullptr, this, nullptr
);
}
_networkId = networkId;
}
_networkId = networkId;
@@
-483,7
+472,7
@@
void InputWidget::setIdentity(IdentityId identityId)
const Identity *previousIdentity = Client::identity(_identityId);
if (previousIdentity)
const Identity *previousIdentity = Client::identity(_identityId);
if (previousIdentity)
- disconnect(previousIdentity,
0, this, 0
);
+ disconnect(previousIdentity,
nullptr, this, nullptr
);
_identityId = identityId;
_identityId = identityId;