fix: 解决bug84966
Description: 读取文字完成后,将编辑edit恢复到最上方 Log: 与编辑有关 Bug: https://pms.uniontech.com/zentao/bug-view-84966.html Change-Id: Idb43a72f249211b1ce1616d73c65e7cfc7011c26
This commit is contained in:
parent
558274fd80
commit
00be899bd0
|
@ -332,6 +332,9 @@ void MainWidget::loadString(const QString &string)
|
|||
if (!string.isEmpty()) {
|
||||
m_resultWidget->setCurrentWidget(m_plainTextEdit);
|
||||
m_plainTextEdit->appendPlainText(string);
|
||||
//读取完了显示在最上方
|
||||
m_plainTextEdit->moveCursor(QTextCursor::Start) ;
|
||||
m_plainTextEdit->ensureCursorVisible() ;
|
||||
//新增识别完成按钮恢复
|
||||
if (m_copyBtn) {
|
||||
m_copyBtn->setEnabled(true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user