{
m_sessionkey = sessionkey;
socket->connectToHost(m_tcphost, m_port);
- setChatLog("");
+ setChatLog(">> Type /quit to close Chat View.\n");
}
void ChatClient::stopChat()
void ChatClient::onError()
{
- systemMessage("Connection error: " + socket->errorString() + "\n");
+ systemMessage("Connection error: " + socket->errorString());
if (socket->isOpen())
socket->close();
}
void ChatClient::sendMessage(const QString &message)
{
+ if (message.isEmpty())
+ return;
QString messageToSend = message + QChar('\n');
socket->write(messageToSend.toUtf8());
appendToChatLog("You: " + messageToSend);
void ChatClient::systemMessage(const QString &message)
{
- appendToChatLog(">> " + message);
+ appendToChatLog(">> " + message + "\n");
}
model: scoreModel.model
delegate: Components.ScoreDelegate {}
width: parent.width - 8; height: parent.height - 8; x: 4; y: 4; cacheBuffer: 100;
+ footer: Item {
+ width: highScoreTable.width
+ height: toolBar.height + 5
+ }
}