summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Removing the "resetInternalData" slot in QAbstractProxyModelGabriel de Dietrich2011-05-102-26/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commits 0916a68056154ecb60e4ea2c79726ab2e49b1532 and 6f1384fcbeea993d5be47590c696de60215b7608. This effectively reverts most of MR 694. Reviewed-by: Olivier (cherry picked from commit 06e104b9c305d3db0dd1848e6e633ee3888fd1de)
| * | | Fix warnings on unused parameters and variablesThiago Macieira2011-05-102-2/+1
| | | | | | | | | | | | | | | | (cherry picked from commit 940f16babab76b328b7c9bfdb5435102c689b76b)
| * | | 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)
| * | | Make text rendering working outside the gui thread on Symbian.Laszlo Agocs2011-05-103-11/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was previously not possible to render text (QPainter::drawText) in a secondary thread on Symbian, it always resulted in some kind of panic. This patch corrects it. For S60 5.0 and earlier the behavior is not changed, threaded text rendering is only supported on Symbian^3 and newer. This also means QFontDatabase::supportsThreadedFontRendering() will return true from now on, but only on Symbian^3 and higher. Task-number: QTBUG-18516 Reviewed-by: mread (cherry picked from commit 0c62e02b80570bf8b92eff7acceb9018df61c89e)
| * | | Typos in internal api docs.Frederik Gladhorn2011-05-101-2/+2
| | | | | | | | | | | | | | | | (cherry picked from commit 81f79b80337a4ef967fdd2b0773f0523c1ce9261)
| * | | Revert "Fixed a crash in QListView"Thierry Bastian2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This caused regressions in the QListView This reverts commit 5b3872b2d7523d44ba454a76613e7a3fa45387f7. (cherry picked from commit 0edbaca5e7b718bb9bbbeaccc9e322b525b4327e)
| * | | Fixed a crash on Windows XP with mingw in threaded-codeThierry Bastian2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The thread callback doesn't align the stack on 16-bytes on WinXP. That causes a crash when we call SSE code. So now we tell the compiler to force that alignment of the stack. Task: QTBUG-18631 Reviewed-By: Olivier (cherry picked from commit 364ce5b7f5379499562b4f4f5a68da7ba068fe1e)
| * | | Symbian's QElapsedTimer::restart() fixed to return ms rather than usmread2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Symbian's QElapsedTimer::restart() had accidently been changed to return a microsecond count rather than milliseconds, when the elapsed timer resolution was increased. This fixes it back to milliseconds. Reviewed-by: Shane Kearns (cherry picked from commit 39202973e3fb7ff37033290b29efa1b9edc674fb)
| * | | Create a cleanup stack for each new thread on Symbian.Laszlo Agocs2011-05-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The native thread implementation in Qt 4.8 did not call CTrapCleanup::New() which resulted in E32USER-CBASE 69 panics in applications when they tried to use the cleanup stack in a thread's run() function. In 4.7 this was working because OpenC's pthread implementation created a CTrapCleanup automatically. Now we do it also in the native Symbian thread implementation. Trask-number: QTBUG-18822 Reviewed-by: Murray Read (cherry picked from commit 41aa023ef6019ac9745b780c953f48b8bbc42a42)
| * | | Do not modify window size for fullscreen windows in setGeometry_sysMiikka Heikkinen2011-05-101-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Minimum sizes of widgets can cause windows to expand beyond screen limits in QWidgetPrivate::setGeometry_sys. Normally this is not noticeable as the window size is forced in various places to the clientRect, but there are certain sequences where the size set in setGeometry_sys is the final one, resulting in too large windows. Removed the modification of window size in setGeometry_sys for fullscreen windows for which the correct size is already requested. Task-number: QTBUG-18749 Reviewed-by: Sami Merila (cherry picked from commit da8f333cfe17a53d475208efa36fa369a9ee4638)
| * | | Totally kill MR 916Gabriel de Dietrich2011-05-1011-779/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ... the hard way. Reviewed-by: Trust me (cherry picked from commit 443d5b17619002cd6bb428198c453271a01accab)
| * | | Another attempt at fixing the MSVC2005 build.Samuel Rødal2011-05-101-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently direct casting is illegal there too, even though they don't have the cast operators. Reviewed-by: Kim (cherry picked from commit 45c60ceac3d5a401543d7d56a44d1f9227464431)
| * | | Compile fix in qdrawhelper_sse2.cpp for MSVC 2005.Samuel Rødal2011-05-101-0/+5
| | | | | | | | | | | | | | | | (cherry picked from commit 7f921ea08c296e7451a44a1dae15350ae183ea20)
| * | | 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)
| * | | Compile fix in qdrawhelper_sse2.cpp.Samuel Rødal2011-05-101-1/+1
| | | | | | | | | | | | | | | | (cherry picked from commit 7cc4ffce36c24596630ca83cd6418869d6383670)
| * | | Build fix on QMenuBarThierry Bastian2011-05-102-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed-By: gabi Merge-Request: 916 (cherry picked from commit ea585d567bf0970c57e31846da044295d80774ba)
| * | | Do not call setSizePolicy from ctor, it might call a virtual functionJan-Arve Sæther2011-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | More specifically, it might very well call updateGeometry() Reviewed-by: Frederik Gladhorn (cherry picked from commit febdcef08f22310cbd70ec13b315f70ff8e41e83)
| * | | 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)
| * | | Added support for six-parameter radial gradients.Samuel Rødal2011-05-1017-128/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The extended radial gradients conform to the radial gradient specification in HTML 5 canvas. Task-number: QTBUG-14075 Reviewed-by: Andreas Kling (cherry picked from commit da55c1ea92474e989e5582b02815936bbf584405)
| * | | Improved gradient table generation performance for two-stop gradients.Samuel Rødal2011-05-105-72/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two stops is a fairly common case so we gain quite a bit by special casing it. Improves performance by 10 % in parcycle benchmark, and by 90 % in a synthetic benchmark. Reviewed-by: Andreas Kling (cherry picked from commit 5b74a70ac630073582be56f8a0539624a1080185)
| * | | Optimized radial gradient fetch using SSE 2.Samuel Rødal2011-05-103-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On an i7 this improves performance by 22 % in parcycle, 107 % in default svgviewer example, and 283 % in a synthetic radial gradient benchmark. Reviewed-by: Andreas Kling (cherry picked from commit 26bd3dccdee8c6a8f1cf9d254a2a6be7d403aa8d)
| * | | Improved qt_gradient_clamp for reflect spreads.Samuel Rødal2011-05-101-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using GRADIENT_STOPTABLE_SIZE * 2 as the modulo gives more correct behaviour, and also improves performance slightly. Reviewed-by: Benjamin Poulain (cherry picked from commit 44dd7ef86a3970694a4f8fd9516575c0533a336e)
| * | | Prepared for SIMD implementation of radial gradients.Samuel Rødal2011-05-102-177/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made the radial gradient fetch func into a template to be able to optimize the inner loop using SIMD instructions. Reviewed-by: Benjamin Poulain (cherry picked from commit f16c261348193b4c03f796db4e1e3a5db09267a2)
| * | | Fix incorrect rendering of checked menu items on Windows ClassicJonathan Liu2011-05-102-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify rendering of checked menu items when using Windows Classic style to be more native looking. Changes: * Checked menu items with no icon are not drawn sunken * Disabled checked menu items with an icon have a plain background instead of a checkerboard pattern same as when enabled * Check mark is drawn with highlighted text color when selected to match text * Fix check mark offset for disabled unselected checked menu item as the entire check mark was drawn shifted (1, 1) * Fix color of check mark shadow for disabled unselected checked menu item as it was same color as the check mark when it should be a light color Task-number: QTBUG-15098 Merge-request: 2513 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com> (cherry picked from commit e89a2b72050dd782da16ff24bc2eb84dc36ed6a5)
| * | | Fix OpenGL build break on SymbianGuoqing Zhang2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QT-4871 Reviewed-by: Dmitry Trofimov (cherry picked from commit f3092b91a7a2e9e34dfe7eefb3c6b0ed8c3c3786)
| * | | 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)
| * | | Fixed a crash in QListViewThierry Bastian2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that QAbstractScrollArea calls layoutChildren on resize but the QListView requires that updateGeometries is called before. Task: QTBUG-18558 Reviewed-By: Pierre (cherry picked from commit 5b3872b2d7523d44ba454a76613e7a3fa45387f7)
| * | | Doc: Fixed reference to a name in a table.David Boddie2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-18679 (cherry picked from commit a769192ef0393afa07c08a1672b45604fdf64be1)
| * | | Fix progressbar animation on VistaJens Bache-Wiig2011-05-101-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes two issues. - The indeterminate animation was sometimes incorrectly disabled when value was 0 - The progress animation was incorrectly stopped when progress bars were disabled Task-number: QTBUG-10957 Reviewed-by: richard (cherry picked from commit 05e46b93ccb2334ec3722cf1205058f778d11458)
| * | | QTabWidget/Win: do not add content margin when documentMode enabledJonathan Liu2011-05-101-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QTabWidget has 2 pixel bottom and right content margin. This removes the margin to maximize the area available for content and improve consistency with other Qt styles when documentMode is enabled. Task-number: QTBUG-15769 Merge-request: 957 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@nokia.com> (cherry picked from commit 23dd5cb45547de167f5c2e78554e9c3013e59998)
| * | | QTableView: prevent QTableView from hanging when removing rows.Pierre Rossi2011-05-102-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was introduced in cd2afafb where we removed some code that was meant to adjust the header's offset upon row removal. The problem with this is that visualIndexAt() is likely to return -1 in QHeaderView::paintEvent, which in turn will lead to calling paintSection for each and every section. Task-number: QTBUG-18551 Reviewed-by: Thierry (cherry picked from commit d814e378987348ce2123d083b01ea6fb6c3e6bbf)
| * | | QFileSystemModel: Handle QDir::NoDot and QDir::NoDotDot for setFilterJonathan Liu2011-05-101-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for QDir::NoDot and QDir::NoDotDot for setFilter in QFileSystemModel. Task-number: QTBUG-14760 Reviewed-by: Frederik (cherry picked from commit b60d82fd56897b1a1d3cc730172f71c27a497ede)
| * | | Don't crash when requesting text.Frederik Gladhorn2011-05-101-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes during initialization the QAccessibleItemRow will still be in an invalid state. Reviewed-by: Jan-Arve (cherry picked from commit 90b4cf4b1aa0f70a62118e200e76dc1dc57985cc)
| * | | Let QAccessibleButton::text return something even when not visible.Frederik Gladhorn2011-05-101-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Buttons would not report their text when hidden, which is inconsistent. Reviewed-by: Jan-Arve (cherry picked from commit 1897ca20a343121422b354a7910814ddd37abd17)
| * | | Fixed regression where AT client did not always announce stuff properly.Jan-Arve Sæther2011-05-101-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression that was created by 75e478abdf336bbdc1b00e2ca4f5293d5455a0cb. That broke accessibility on 64 bit windows, since lParam can both be 0x00000000fffffffc and 0xfffffffffffffffc. However, MSDN explicitly says that lParam should be casted to a DWORD, which would result in (an unsigned) 0xfffffffc in both cases. This can then be compared to OBJID_CLIENT (defined to ((LONG)0xFFFFFFFC). Reviewed-by: Prasanth Ullattil (cherry picked from commit 504941bc50234c225f162192491815bc4d6c38cf)
| * | | Don't use inactive borders for spinbox on MacJens Bache-Wiig2011-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was probably caused by the fact that the only spinbox visible in the main control panel has an inactive frame border. In XCode 4, however the spin buttons are generally attached to an active lineedit frame, so we change the default for 4.8. Reviewed-by: gabriel (cherry picked from commit 6c9d808c5726893e9aa673ca8b0cbebae67f641c)
| * | | Cocoa: respect QT_NO_EXCEPTION in color dialogRichard Moe Gustavsen2011-05-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the macro is set, we should not use cocoa exceptions either, as this causes compile failures Rev-By: jbache (cherry picked from commit cdb5729d8e1ffc4a00b52d6d4bbee34a9820a193)
| * | | Make navigation in TabWidgets consistent.Frederik Gladhorn2011-05-101-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | navigate would not return the right index in the parent if the current widget was not the visible one. Reviewed-by: Jan-Arve (cherry picked from commit fdeeaa9d61efea9cca783a1d4098ae505df24390)
| * | | Fix text for checkable buttons, unit tests.Frederik Gladhorn2011-05-101-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return Check/Uncheck for checkable buttons. Partially revive the buttons unit test. Reviewed-by: Jan-Arve (cherry picked from commit 6040eeebfb1ab3be3906295c373033cd5b5d9dc3)
| * | | Window and Application fixes for accessibility.Frederik Gladhorn2011-05-102-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Return app name instead of window title for root accessibility object. Return Window as accessible type for the main window. Reviewed-by: Jan-Arve (cherry picked from commit 9a5b0d7a579572cd7e7faf869ab1a6684800f592)
| * | | Call QAccessible::updateAccessibility when changing accessible name.Frederik Gladhorn2011-05-101-0/+2
| | | | | | | | | | | | | | | | | | | | Reviewed-by: Jan-Arve (cherry picked from commit e783275cfb71e7325472b3aea54e109a7a854bf7)