summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
Commit message (Collapse)AuthorAgeFilesLines
* Update cursor position when selection is reversed.Andrew den Exter2011-07-261-7/+7
| | | | | | | | | | | | | | A reversed selection will have the same resolved start and end positions but a different cursor position so testing the end points alone doesn't guarantee the selection is the same. Task-number: QTBUG-19456 Reviewed-by: Martin Jones Change-Id: I516e5a501ec878d673f21e54d688fd2d21b624ef Reviewed-on: http://codereview.qt.nokia.com/2080 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Delay masking the last character in Password echo mode.Andrew den Exter2011-07-252-3/+77
| | | | | | | | | | | | | | | | | | | | | | If QT_GUI_PASSWORD_ECHO_DELAY is defined in qplatformdefs.h with an integer value in milliseconds, QLineEdit and TextInput will display the last character entered unmasked for that delay period and then mask the character as normal. If QT_GUI_PASSWORD_ECHO_DELAY is not defined then the behaviour is unchanged. Task-number: QTBUG-17003 Reviewed-by: Martin Jones (cherry picked from commit f9e7aee2019d321edd655bfde7de43f20a106971) Conflicts: src/declarative/graphicsitems/qdeclarativetextinput.cpp tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp Change-Id: I3683223189b7176e4ef5081ee315c95a0efb9cfe Reviewed-on: http://codereview.qt.nokia.com/2060 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Doc: Removed documentation for deleted code.David Boddie2011-07-217-161/+0
| | | | | | | Change-Id: Icdbc05decac3dfe3fc18ce073c494e1fce4ea347 Reviewed-on: http://codereview.qt.nokia.com/1824 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: David Boddie
* Update the documentation after moving examples.Casper van Donderen2011-07-051-1/+1
| | | | | | | Change-Id: I7aa52785979df9eddd7b91e62abd0ef10adc74b7 Reviewed-on: http://codereview.qt.nokia.com/1031 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: David Boddie
* Don't crash on an invalid replacementStart from an input method.Andrew den Exter2011-06-011-1/+3
| | | | | | | | | | | | | Ensure the cursor position does not exceed the bounds of the current text. Change-Id: If38f7729372562324d11eadd1a976c0c6da91863 Task-number: QTBUG-19054 Reviewed-by: Martin Jones (cherry picked from commit 6fbfb1ab3f26ad672eb24f9b4a0ce1a8eea08298) Reviewed-on: http://codereview.qt.nokia.com/290 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Update licenseheader text in source files for qtbase Qt moduleJyri Tahtela2011-05-24156-2652/+2652
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Doc: Fixed qdoc warnings.David Boddie2011-05-232-2/+2
|
* Enablers for TextInputEskil Abrahamsen Blomfeldt2011-05-231-0/+7
| | | | | | | 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.
* Make QLineControl send accessibility updates.Frederik Gladhorn2011-05-124-3/+11
| | | | | | | | | | To make it emit the signals for the right object, it needs its parent to be the QGraphicsItem/SGItem/QLineEdit. According to IA2 it should emit TextUpdated and CursorMoved signals. TextChanged is deprecated. More fine grained signals would be desireable but this makes changes work at all. Reviewed-by: Morten Sorvig
* Move QTextCursor::MoveStyle to Qt namespaceJiang Jiang2011-05-114-11/+12
| | | | | | | | | | We cannot use QTextCursor::MoveStyle enums in QTextLine because QTextCursor is not a QObject, while referring to that enum in Q_PROPERTY requires it to be. That's why we need to move the enums in Qt namespace. Reviewed-by: David Boddie (cherry picked from commit 5eba82b752e85a5d6cb3a893214ed2646d75f362)
* Ensure that QDateTimeEdit::calendarWidget() will always return a valid widget.Robin Burchell2011-05-102-18/+33
| | | | | | | | | | | | | | | | | | This case may be triggered in the (admittedly slightly abnormal) case where a user wishes to embed the calendar widget in a layout or, for whatever reason, do something else that will change its ownership. We work around this by detecting when it is deleted and recreating the widget. This will also have a positive side effect if setCalendarWidget() is called with a widget which is then subsequently deleted, returning the default widget instead of a pointer to (now deleted) memory. Reviewed-by: Denis Dzyubenko Merge-request: 2568 Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com> (cherry picked from commit 124ec3200f8453142717fcfe7a4aa0a55164aaa6)
* Fixes warnings about unused variablesOlivier Goffart2011-05-105-8/+1
| | | | | Reviewed-by: jbache (cherry picked from commit e8019cf8feb402303e6d253f5ca58bebfda42679)
* Fix insert and scroll to bottom casemae2011-05-101-0/+5
| | | | | | | | | | | | | | When using QtextCursor::insert() with a large text followed by setting the vertical scrollbar to its maximum value (scroll to bottom), QPlainTextEdit would not behave properly if a document size change was triggered by the insertion due to line wrapping. This was visible in Qt Creator. Auto test included. Reviewed-by: con (cherry picked from commit 5d144faf3c524ab557b88f69c4b755e20237e846)
* Totally kill MR 916Gabriel de Dietrich2011-05-1011-779/+385
| | | | | | | ... the hard way. Reviewed-by: Trust me (cherry picked from commit 443d5b17619002cd6bb428198c453271a01accab)
* Reverting merge request 916Gabriel de Dietrich2011-05-107-58/+70
| | | | | | | Revert "Introduce menubar plugin system" This reverts commits 56c3de426d97ab7c8fb..f7b60fffb673b182e63 (cherry picked from commit c6514537a8568050f5812a2b55fcf47a3ec2fce1)
* Reverting merge request 916Gabriel de Dietrich2011-05-102-1/+3
| | | | | | | Revert "Build fix on QMenuBar" This reverts commit ea585d567bf0970c57e31846da044295d80774ba. (cherry picked from commit 68542b72f53f52df43063677e24994463872e81b)
* Build fix on QMenuBarThierry Bastian2011-05-102-3/+1
| | | | | | Reviewed-By: gabi Merge-Request: 916 (cherry picked from commit ea585d567bf0970c57e31846da044295d80774ba)
* Fix copyright and a few codestyle mistakesThierry Bastian2011-05-103-114/+113
| | | | | | Reviewed-By: Trust-Me Merge-Request: 916 (cherry picked from commit 56c3de426d97ab7c8fbb3f5766e1872d6f2e91e9)
* Renamed QAbstractMenuBarImpl to QAbstractMenuBarInterfaceAurélien Gâteau2011-05-105-14/+14
| | | | | | Merge-request: 916 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com> (cherry picked from commit 3d188ffae259584c4351c5fa766a49da9b189112)
* Make ctor and dtor of QAbstractMenuBarImpl inlineAurélien Gâteau2011-05-103-47/+3
| | | | | | | | This way the class does not need to be exported Merge-request: 916 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com> (cherry picked from commit a624a4011adca00d7334462c4d33f574c465110a)
* QAbstractMenuBarImpl::allowSetVisible => setVisibleAurélien Gâteau2011-05-104-14/+6
| | | | | | | | | This makes it possible to alter the behavior of QMenuBar::setVisible(). It seems to be needed for the Mac menubar. Merge-request: 916 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com> (cherry picked from commit bafeffd7b8b2c40761369ba496ee655dff6cf2a5)
* Introduce menubar plugin systemAurélien Gâteau2011-05-104-1/+41
| | | | | | Merge-request: 916 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com> (cherry picked from commit be0d346052d69693c2780e62401f3c0d4b0d89d4)
* Introduce QAbstractMenuBarImplAurélien Gâteau2011-05-107-299/+694
| | | | | | Merge-request: 916 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com> (cherry picked from commit 0432a6b79d35ac7db909a81793417107ebfb668f)
* Hide Q<Platform>MenuActionAurelien Gateau2011-05-105-10/+10
| | | | | | | | | This will help abstracting the platform specific parts of QMenuBarPrivate in a common interface. Merge-request: 916 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com> (cherry picked from commit c664954295c0605c73f7e69deb9f6130c5f5fb05)
* Fix warning about initialization orderAurélien Gâteau2011-05-101-3/+3
| | | | | | Merge-request: 916 Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com> (cherry picked from commit f7b60fffb673b182e633545bffd1d310337aca50)
* Fix a bug with menu overflowing from a lower resolution second screen.Pierre Rossi2011-05-102-14/+51
| | | | | | | | | | The menu needs to take into account the screen geometry of the screen it's about to be shown on (not the last screen it was shown on) when updating its actions rects Task-number: QTBUG-2748 Reviewed-by: Thierry (cherry picked from commit b10265efba544b1e4820f45b86354d442f6abf26)
* Calculate the submenu position after emitting aboutToShow()Pierre Rossi2011-05-101-21/+21
| | | | | | | | | The rationale behind this is that if the submenu gets populated in a slot connected to aboutToShow(), we'll have to do it again anyway. Task-number: QTBUG-14739 Reviewed-by: Thierry (cherry picked from commit 0848b860b9251e76b9319f65554f932ab68e33cc)
* Support visual cursor movement for BIDI textJiang Jiang2011-04-294-6/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bidi input can in some contexts be more intuitive if the cursor works in visual way: pressing left arrow key always make cursor move one character to the left regardless the language of text, pressing right arrow key always make cursor move to the right. It is also the behavior of Mac OS X. Based on the above reason and requests from Symbian we implemented this support for visual movement in BIDI text. 3 public properties are added to QTextDocument, QTextLayout and QLineEdit respectively: - QTextDocument::defaultCursorMoveStyle can be used to control the cursor behavior in all widgets based on QTextDocument, like QTextEdit, QPlainTextEdit, etc. When set to QTextCursor:: Visual, it will enable visual movement for all the cursors in the corresponding text edit. Default is QTextCursor::Logical. - QTextLayout::cursorMoveStyle is used for low-level cursor manipulation. When set to Visual, it will enable visual movement behavior for all the cursor related methods, including cursorToX, xToCursor and drawCursor. Default is Logical. - QLineEdit::cursorMoveStyle is used to control cursor movement behavior in QLineEdit. Default is Logical.: Task-number: QTBUG-13859 Reviewed-by: Eskil (cherry picked from commit c480dd641f5d22d1ee72cb27bf39e24c6df65658)
* Initial import from the monolithic Qt.Qt by Nokia2011-04-27158-0/+101598
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12