-
-
Save oppahero/853842a7c969ef4a59bb9feb2d298b98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Server::on_client_textSend(QString uname,QString text){ | |
//client that send the signal to this slot | |
ClientThread* sender_client = (ClientThread*)sender(); | |
QString currentTime = QTime::currentTime().toString("H:m A/"); | |
QString message = "/text:"+currentTime + uname + " : " + text + "\n"; | |
sendTextToAll(message,sender_client); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment