diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-07-24 17:14:01 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2009-07-24 17:14:01 (GMT) |
commit | 45edfc7465db4ca377db308d0a8fa80c068b2c11 (patch) | |
tree | 30dcaafdb16f08240429d951df0eb59fc9c5d0fb /examples/network/network-chat/chatdialog.cpp | |
parent | e49bf3037c2cd170c93c35f7657bef0e7af3d189 (diff) | |
download | Qt-45edfc7465db4ca377db308d0a8fa80c068b2c11.zip Qt-45edfc7465db4ca377db308d0a8fa80c068b2c11.tar.gz Qt-45edfc7465db4ca377db308d0a8fa80c068b2c11.tar.bz2 |
Adaptation done to make network-chat work on S60.
"Many attempts to communicate are nullified by saying too much."
Robert Greenleaf(1904-1990)
Diffstat (limited to 'examples/network/network-chat/chatdialog.cpp')
-rw-r--r-- | examples/network/network-chat/chatdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/network/network-chat/chatdialog.cpp b/examples/network/network-chat/chatdialog.cpp index b461412..c3b978d 100644 --- a/examples/network/network-chat/chatdialog.cpp +++ b/examples/network/network-chat/chatdialog.cpp @@ -54,6 +54,10 @@ ChatDialog::ChatDialog(QWidget *parent) listWidget->setFocusPolicy(Qt::NoFocus); connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed())); +#ifdef Q_OS_SYMBIAN + connect(sendButton, SIGNAL(clicked()), this, SLOT(returnPressed())); +#endif + connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed())); connect(&client, SIGNAL(newMessage(const QString &, const QString &)), this, SLOT(appendMessage(const QString &, const QString &))); connect(&client, SIGNAL(newParticipant(const QString &)), |