added auto-scroll to rich text effect

This commit is contained in:
itsmattkc
2019-03-14 23:34:10 +11:00
parent 9fc542e688
commit 16da36f364
8 changed files with 98 additions and 31 deletions
+4 -1
View File
@@ -24,6 +24,7 @@
#include <QDialogButtonBox>
#include <QPushButton>
#include <QIcon>
#include <QTimer>
#include <QDebug>
#include "ui/icons.h"
@@ -166,7 +167,9 @@ TextEditDialog::TextEditDialog(QWidget *parent, const QString &s, bool rich_text
textEdit->setPlainText(s);
}
UpdateUIFromTextCursor();
// Helps ensure the UI elements update correctly at the beginning - when the cursor is at the start, the UI elements
// show up blank...
textEdit->moveCursor(QTextCursor::End);
}
const QString& TextEditDialog::get_string() {