fix copy message
This commit is contained in:
@@ -1386,8 +1386,8 @@ void MainWindow::setupchatTab() {
|
||||
QModelIndex index = ui->listChat->currentIndex();
|
||||
QString memo_chat = index.data(Qt::DisplayRole).toString();
|
||||
QClipboard *clipboard = QGuiApplication::clipboard();
|
||||
int startPos = memo_chat.indexOf("<pre>") + 3;
|
||||
int endPos = memo_chat.indexOf("</pre>");
|
||||
int startPos = memo_chat.indexOf("<p>") + 3;
|
||||
int endPos = memo_chat.indexOf("</p>");
|
||||
int length = endPos - startPos;
|
||||
QString copymemo = memo_chat.mid(startPos, length);
|
||||
|
||||
@@ -1401,8 +1401,8 @@ void MainWindow::setupchatTab() {
|
||||
QString memo_chat = index.data(Qt::DisplayRole).toString();
|
||||
QClipboard *clipboard = QGuiApplication::clipboard();
|
||||
|
||||
int startPos = memo_chat.indexOf("<pre>") + 3;
|
||||
int endPos = memo_chat.indexOf("</pre>");
|
||||
int startPos = memo_chat.indexOf("<p>") + 3;
|
||||
int endPos = memo_chat.indexOf("</p>");
|
||||
int length = endPos - startPos;
|
||||
QString copymemo = memo_chat.mid(startPos, length);
|
||||
int startPosT = memo_chat.indexOf("<small>") + 7;
|
||||
@@ -1439,8 +1439,8 @@ void MainWindow::setupchatTab() {
|
||||
QModelIndex index = ui->listChat->currentIndex();
|
||||
QString memo_chat = index.data(Qt::DisplayRole).toString();
|
||||
|
||||
int startPos = memo_chat.indexOf("<pre>") + 3;
|
||||
int endPos = memo_chat.indexOf("</pre>");
|
||||
int startPos = memo_chat.indexOf("<p>") + 3;
|
||||
int endPos = memo_chat.indexOf("</p>");
|
||||
int length = endPos - startPos;
|
||||
QString copymemo = memo_chat.mid(startPos, length);
|
||||
int startPosT = memo_chat.indexOf("<small>") + 7;
|
||||
|
||||
Reference in New Issue
Block a user