examples/network/network-chat/chatdialog.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    56     connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
    56     connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
    57 #ifdef Q_OS_SYMBIAN
    57 #ifdef Q_OS_SYMBIAN
    58     connect(sendButton, SIGNAL(clicked()), this, SLOT(returnPressed()));
    58     connect(sendButton, SIGNAL(clicked()), this, SLOT(returnPressed()));
    59 #endif
    59 #endif
    60     connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
    60     connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
    61     connect(&client, SIGNAL(newMessage(const QString &, const QString &)),
    61     connect(&client, SIGNAL(newMessage(QString,QString)),
    62             this, SLOT(appendMessage(const QString &, const QString &)));
    62             this, SLOT(appendMessage(QString,QString)));
    63     connect(&client, SIGNAL(newParticipant(const QString &)),
    63     connect(&client, SIGNAL(newParticipant(QString)),
    64             this, SLOT(newParticipant(const QString &)));
    64             this, SLOT(newParticipant(QString)));
    65     connect(&client, SIGNAL(participantLeft(const QString &)),
    65     connect(&client, SIGNAL(participantLeft(QString)),
    66             this, SLOT(participantLeft(const QString &)));
    66             this, SLOT(participantLeft(QString)));
    67 
    67 
    68     myNickName = client.nickName();
    68     myNickName = client.nickName();
    69     newParticipant(myNickName);
    69     newParticipant(myNickName);
    70     tableFormat.setBorder(0);
    70     tableFormat.setBorder(0);
    71     QTimer::singleShot(10 * 1000, this, SLOT(showInformation()));
    71     QTimer::singleShot(10 * 1000, this, SLOT(showInformation()));