summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qplaintextedit_p.h
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-05-27 16:55:18 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-05-27 16:55:18 (GMT)
commitf96614f608d080b89fde95118f0eb35443b671ea (patch)
treea84abd361df10bbd738df670d6375122c457761a /src/gui/widgets/qplaintextedit_p.h
parentd9e42d5c30ec551e6bded0277712eb0c6718b659 (diff)
downloadQt-f96614f608d080b89fde95118f0eb35443b671ea.zip
Qt-f96614f608d080b89fde95118f0eb35443b671ea.tar.gz
Qt-f96614f608d080b89fde95118f0eb35443b671ea.tar.bz2
InputMethods supported enabled for QPlainTextEdit.
Diffstat (limited to 'src/gui/widgets/qplaintextedit_p.h')
-rw-r--r--src/gui/widgets/qplaintextedit_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/qplaintextedit_p.h b/src/gui/widgets/qplaintextedit_p.h
index 0739d53..56a3aa9 100644
--- a/src/gui/widgets/qplaintextedit_p.h
+++ b/src/gui/widgets/qplaintextedit_p.h
@@ -91,7 +91,10 @@ public:
return r;
}
inline QRectF cursorRect() { return cursorRect(textCursor()); }
- void ensureCursorVisible() { textEdit->ensureCursorVisible(); }
+ void ensureCursorVisible() {
+ textEdit->ensureCursorVisible();
+ emit microFocusChanged();
+ }
QPlainTextEdit *textEdit;
@@ -148,6 +151,7 @@ public:
uint backgroundVisible : 1;
uint centerOnScroll : 1;
uint inDrag : 1;
+ uint clickCausedFocus : 1;
int topLine;