- // Compatibility methods with the rest of the classes which still expect this to be a QLineEdit
- inline QString text() const { return toPlainText(); }
- inline QString html() const { return toHtml(); }
- inline int cursorPosition() const { return textCursor().position(); }
- inline void insert(const QString &newText) { insertPlainText(newText); }
- inline void backspace() { keyPressEvent(new QKeyEvent(QEvent::KeyPress, Qt::Key_Backspace, Qt::NoModifier)); }
- inline bool hasSelectedText() const { return textCursor().hasSelection(); }
+ // Compatibility methods with the rest of the classes which still expect this to be a QLineEdit
+ inline QString text() const { return toPlainText(); }
+ inline QString html() const { return toHtml(); }
+ inline int cursorPosition() const { return textCursor().position(); }
+ inline void insert(const QString &newText) { insertPlainText(newText); }
+ inline void backspace() { keyPressEvent(new QKeyEvent(QEvent::KeyPress, Qt::Key_Backspace, Qt::NoModifier)); }
+ inline bool hasSelectedText() const { return textCursor().hasSelection(); }