set chatinput maximum
This commit is contained in:
@@ -58,3 +58,8 @@ void Chat::checkInvisible() {
|
||||
default: { myW->tabWidget->startBlinkChatTab(); }
|
||||
}
|
||||
}
|
||||
|
||||
void Chat::checkInputLength(QString string) {
|
||||
|
||||
if(string.toUtf8().length() > 120) myW->lineEdit_ChatInput->setMaxLength(string.length());
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ public slots:
|
||||
void sendMessage();
|
||||
void receiveMessage(QString playerName, QString msg);
|
||||
void checkInvisible();
|
||||
void checkInputLength(QString);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user