Commit Graph

4 Commits

Author SHA1 Message Date
J-P Nurmi 14f46dc101 texteditor: remove uninitialized/duplicate pointer member
Use textDocument() similarly than textCursor() is already used,
to access the underlying document and cursors.

Change-Id: I1f90f95420132251792f4f9dda302c0509fbad0c
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2016-08-12 07:56:13 +00:00
J-P Nurmi 01eda3fa22 texteditor: re-order the property accessors
There's no reason to register all setters as slots. Properties are fine
for QML usage. Re-order them also in the .cpp file in the same order
than they are in the header. It's a bit easier to follow when logical
pairs are next to each other.

Change-Id: Ib8097ecafe10f2c785b05b045694c338977860ef
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2016-08-12 07:56:08 +00:00
J-P Nurmi 0d8e87d7f6 texteditor: simplify saveAs() - let FileDialog handle the suffix
Change-Id: Id1b415ebcbe12a9eeff9b54dcfa2cec67054a8d6
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2016-08-12 07:56:03 +00:00
Mitch Curtis fcf4a1ed81 Add Text Editor example
A follow up commit will contain the touch UI.

Change-Id: I26275fdd31294506821fa3e3e4a4bb63329665b9
Task-number: QTBUG-54952
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
2016-08-11 16:47:48 +00:00