diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-05-09 09:07:02 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-05-23 13:38:22 +0200 |
commit | 5feefb0c039dae04290d1fca7c2f24276b6f7582 (patch) | |
tree | afdf2f260f2a150ec048809313d8207f0e04612c /src/gui/widgets/qlinecontrol_p.h | |
parent | 6e99936502345eab6ef7862e2cb3740bcc1caef2 (diff) |
Enablers for TextInput
In order to use the scene graph text node in TextInput, we
need enablers. Most of this is to enable selections,
which in turn means we need to be able to extract a certain
set of glyphs from a QTextLine.
Diffstat (limited to 'src/gui/widgets/qlinecontrol_p.h')
-rw-r--r-- | src/gui/widgets/qlinecontrol_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/qlinecontrol_p.h b/src/gui/widgets/qlinecontrol_p.h index 9764ba9c59..1530c756dc 100644 --- a/src/gui/widgets/qlinecontrol_p.h +++ b/src/gui/widgets/qlinecontrol_p.h @@ -302,6 +302,8 @@ public: void setCursorBlinkPeriod(int msec); void resetCursorBlinkTimer(); + bool cursorBlinkStatus() const { return m_blinkStatus; } + QString cancelText() const { return m_cancelText; } void setCancelText(const QString &text) { m_cancelText = text; } @@ -318,6 +320,11 @@ public: bool processEvent(QEvent *ev); + QTextLayout *textLayout() + { + return &m_textLayout; + } + private: void init(const QString &txt); void removeSelectedText(); |