summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.6'Thiago Macieira2009-08-2775-491/+1012
|\ | | | | | | | | Conflicts: src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
| * Merge branch '4.5' into 4.6Thiago Macieira2009-08-271-3/+10
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: tests/auto/linguist/lupdate/testdata/good/backslashes/project.ts.result tests/auto/linguist/lupdate/testdata/good/lacksqobject/expectedoutput.txt tests/auto/linguist/lupdate/testdata/good/mergecpp_noobsolete/finddialog.cpp tests/auto/linguist/lupdate/testdata/good/mergecpp_noobsolete/project.ts.result tests/auto/linguist/lupdate/testdata/good/mergecpp_obsolete/finddialog.cpp tests/auto/linguist/lupdate/testdata/good/mergecpp_obsolete/project.ts.result tests/auto/linguist/lupdate/testdata/good/parsecpp/finddialog.cpp tests/auto/qcombobox/tst_qcombobox.cpp tests/auto/xmlpatternsview/view/FunctionSignaturesView.cpp tests/auto/xmlpatternsview/view/MainWindow.cpp tests/auto/xmlpatternsview/view/TestCaseView.cpp tests/auto/xmlpatternsview/view/TestResultView.cpp tests/auto/xmlpatternsview/view/TreeSortFilter.cpp tests/auto/xmlpatternsview/view/UserTestCase.cpp tests/auto/xmlpatternsview/view/XDTItemItem.cpp tests/auto/xmlpatternsview/view/main.cpp tests/auto/xmlpatternsxqts/lib/ASTItem.h tests/auto/xmlpatternsxqts/lib/DebugExpressionFactory.h tests/auto/xmlpatternsxqts/lib/ExpressionNamer.h tests/auto/xmlpatternsxqts/lib/ExternalSourceLoader.h tests/auto/xmlpatternsxqts/lib/Global.h tests/auto/xmlpatternsxqts/lib/ResultThreader.h tests/auto/xmlpatternsxqts/lib/TestBaseLine.h tests/auto/xmlpatternsxqts/lib/TestCase.h tests/auto/xmlpatternsxqts/lib/TestResult.h tests/auto/xmlpatternsxqts/lib/TestResultHandler.h tests/auto/xmlpatternsxqts/lib/TestSuiteHandler.h tests/auto/xmlpatternsxqts/lib/Worker.h tests/auto/xmlpatternsxqts/lib/XMLWriter.h tests/auto/xmlpatternsxqts/lib/XQTSTestCase.h
| | * Fix subControlRect of the Mac style for the QComboBoxBenjamin Poulain2009-08-251-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | The subControlRect of the arrow and the listBoxPopup where assuming the widget rect is at the origin. Reviewed-by: Richard Moe Gustavsen Reviewed-by: Pierre Rossi
| * | QTabBar: Fix the position of button in tabs.Olivier Goffart2009-08-272-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | Use the PM_TabBarTabHSpace instead of the hardcoded '6' Use a spacing of 4px instead of 2px between the buttons and the text. Reviewed-by: jbache
| * | QTabBar: fix text being croped when there is an icon on the tabOlivier Goffart2009-08-272-19/+12
| | | | | | | | | | | | | | | | | | | | | By making sure the computation in QTabBar::tabSizeHint and QCommonStylePrivate::tabLayout are the same Reviewed-by: jbache
| * | Refactor the way QCommonStyle layout the tabOlivier Goffart2009-08-272-81/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge all the code in a common layoutTab function This commit only moves the code around and doesn't change any behavour. The fixes for the broken layouts will go in another commit Reviewed-by: jbache
| * | Doc: Explained how mouse events are handled by QGraphicsView.Geir Vattekar2009-08-271-3/+5
| | | | | | | | | | | | | | | Task-number: 259924 Reviewed-by: Andreas Aardal Hanssen
| * | Gestures: Implement swipe gestureRichard Moe Gustavsen2009-08-277-4/+171
| | | | | | | | | | | | Note: if this fails building on any platform, talk to Denis!
| * | Fix compile error on WindowsPrasanth Ullattil2009-08-272-2/+2
| | | | | | | | | | | | | | | | | | Changed QSize to QSizeF Reviewed-by: Trust Me
| * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6David Boddie2009-08-275-73/+99
| |\ \
| | * | Gestures: make all screen points floatRichard Moe Gustavsen2009-08-273-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | This is more in accordance with touch points, and graphics view Rev-By: Discussed with Denis and Brad
| | * | Mac: Fix Imageviewer example, and bugfix gesturesRichard Moe Gustavsen2009-08-273-2/+4
| | | | | | | | | | | | | | | | Rev-By: denis
| | * | Cocoa: implement pan gestures to follow mouseRichard Moe Gustavsen2009-08-272-13/+14
| | | |
| | * | Cocoa: Implement single touch panRichard Moe Gustavsen2009-08-273-56/+79
| | | |
| * | | Doc: Fixed recommended code as suggested in the public task.David Boddie2009-08-271-1/+2
| |/ / | | | | | | | | | | | | Task-number: 155124 Reviewed-by: Trust Me
| * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6David Boddie2009-08-2714-27/+165
| |\ \
| | * | Fixed clipping bugs in QGLWidgets (very noticeable in sub-attaq).Samuel Rødal2009-08-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the paint engine used by QGLWidgets was the GL 2 paint engine the backing store assumed partial update support, which is not the case. We need to check for both QPaintEngine::OpenGL and QPaintEngine::OpenGL2. Reviewed-by: Trond
| | * | Implement IME reconversion on windows.Prasanth Ullattil2009-08-273-1/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows IME supports reconversion of text. e.g. On a Japanese layout, up on pressing the HENKAN key a list of choices for the current word are shown in a popup. This patch adds that support to Qt. We will select the current word in the widget and the choices are shown as in the editing mode. Task-number:225588 Reviewed-by: axis
| | * | Doc: Widgets may ignore the role set with QWidget::setForegroundRole().Geir Vattekar2009-08-271-0/+8
| | | | | | | | | | | | | | | | | | | | Task-number: 182860 Reviewed-by: Trust Me
| | * | Make sure itemAt() reflects the visual order.Jan-Arve Sæther2009-08-274-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This means it should respect the order that was defined with insertItem() and addItem(). Note that this is not strictly necessary (as now explicitly written in the docs for QGraphicsLayout::itemAt()), but commit 2ec56d158dc140f68efb45e2e0613f0e4026ddf6 broke the order and for people that relied on this that commit caused a regression. In addition, after commit 2ec56d158dc140f68efb45e2e0613f0e4026ddf6 it was not longer possible to query the "item at visual index". Thus, instead of adding another function (like QGGL::itemAt(int,int)) we make sure that itemAt() also returns the "item at visual index".
| | * | Doc fixes.Jan-Arve Sæther2009-08-271-9/+30
| | | |
| | * | Remove warning.Jan-Arve Sæther2009-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | It was initialized correctly though, just that some compilers could not see that.
| | * | Do not crash when double-clicking a tab in a QTabBar with movable tabsFrank Reininghaus2009-08-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check if QTabBarPrivate's movingTab member is 0 before dereferencing it. This fixes a crash when double-clicking a tab. New unit test included. http://bugs.kde.org/show_bug.cgi?id=202767 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com> Merge-Request: 1337
| | * | doc: Add Graphics Effect images.Bjørn Erik Nilsen2009-08-261-3/+17
| | | |
| | * | reverting the definition of WINVER and _WIN32_WINNT in qglobal.hJoerg Bornemann2009-08-261-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This just caused too much problems and must be solved another way. In qfsfileengine_win.cpp we define FSCTL_GET_REPARSE_POINT and all of the other stuff that's needed for NTFS symlink support, if its not defined. This is the case if _WIN32_WINNT is less than 0x0500. All other changes in this commit are just reversions of commits that were done for the infamous qglobal.h change. Discussed with prasanth, tested by pulse.
| * | | Doc: First review/editing of the QTouchEvent class documentation.David Boddie2009-08-271-27/+30
| | | | | | | | | | | | | | | | Reviewed-by: Trust Me
| * | | Doc: Added a section to tidy things up. This document needs more work.David Boddie2009-08-261-10/+12
| |/ / | | | | | | | | | Reviewed-by: Trust Me
| * | Improved QPainter API for allowing native painting in GL / VG.Samuel Rødal2009-08-263-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | Previously we were using QPaintEngine::syncState() which is not ideal naming-wise, since it actually prepares for native painting instead of syncing the painter's state to native state. Reviewed-by: Trond
| * | doc: Misspelled class names.Bjørn Erik Nilsen2009-08-261-2/+2
| | |
| * | QAbstractItemView sometimes doesn't allow changing the selectionThierry Bastian2009-08-261-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you do a selection with the mouse and react to selectionChanged by changing the selection. Those changes would be overwritten by QAbstractItemView::mouseReleaseEvent. It is useless to set the selection on mouse release. We already do that on mouse press. Task-number: 250683 Reviewed-by: ogoffart
| * | doc: fixes qdoc warnings/errors related to the Graphics Effect framework.Bjørn Erik Nilsen2009-08-262-71/+144
| | | | | | | | | | | | Reviewed-by: Kavindra
| * | Avoid undefined text metrics when GetTextMetrics() in QFontEngineWinEskil Abrahamsen Blomfeldt2009-08-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If GetTextMetrics() should fail, the results are undefined. When the undefined data are used, e.g. when painting text, this can cause a crash. To avoid the crash and make it clear that the metrics cannot be retrieved, we zero out the entire structure. Task-number: 251172 Reviewed-by: gunnar
| * | Remove superfluous '.data()' call from dashStroker.Jason Barron2009-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | The extra ".data()" call is not needed here because QScopedPointer overloads operator!() to do the right thing here. Reviewed-by: Eskil Blomfeldt
| * | Fixes typo in doc and missing return in anchor layoutLeonardo Sobral Cunha2009-08-261-2/+4
| | | | | | | | | | | | Reviewed-by: janarve
| * | QToolbar now collapses when draggedThierry Bastian2009-08-263-5/+5
| | | | | | | | | | | | | | | | | | | | | Previously it wouldn't and the layout could appear to be broken. Task-number: 248817 Reviewed-by: Gabriel De Dietrich
| * | Doc - Completed review of documentation for the QGraphicsEffect group ofKavindra Devi Palaraja2009-08-261-77/+95
| | | | | | | | | | | | | | | | | | classes Reviewed-By: TrustMe
| * | Fix warning.Olivier Goffart2009-08-261-1/+3
| | | | | | | | | | | | | | | | | | The member need to be initialized in the same order as in which they are declared Reviewed-by: Thierry
| * | Fix "We mean it." comments in graphicsviewOlivier Goffart2009-08-2610-20/+20
| | |
| * | fix warnings on Windows CEJoerg Bornemann2009-08-265-4/+9
| | | | | | | | | | | | | | | | | | | | | Lots of warnings in the qreal == float case. Some Q_UNUSED added. Reviewed-by: thartman
| * | Make QWS compile with namespacesPaul Olav Tvete2009-08-2617-35/+66
| | | | | | | | | | | | Reviewed-by: hjk
| * | QLineEdit: reenable the delete action from the context menuThierry Bastian2009-08-265-13/+2
| | | | | | | | | | | | | | | | | | | | | We now need to connect to the slot in the QLineControl and not to the slot of the QLineEdit (the QLineEdit slot is now also removed). Reviewed-by: Alan Alpert
| * | Cocoa, the menus can be disabled after a modal dialogRichard Moe Gustavsen2009-08-261-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Why this happends is a bit blurry. From before, I know that cocoa is a bit buggy regarding setting a menu item hidden or not. The solution back then resulted in the function syncNSMenuItemEnabled in qmenu_mac.mm. This patch basically applies the same (silly) trick; disabling the menuitem before enabling it. This seems to force an update to the menu items enabled state. For the record: this is not a fix that I embrace. I hope we can remove it again some day. See task for how to reproduce. Task: 259600 Rev-By: alexis
| * | Fix another minor copy'n'paste error from QLineControl refactoringAlan Alpert2009-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Had left the cursor flash time as half the QApplication cursor flash time by mistake. The new function sets the whole period and not just the time between toggling cursor visibility. Reviewed-by: Trust Me
| * | Doc - Removed a trailing whitespace and more cleanupsKavindra Devi Palaraja2009-08-251-11/+6
| | | | | | | | | | | | Reviewed-By: TrustMe
| * | Doc - Reviewing documentation for QGraphicsEffect and QGraphicsEffectSourceKavindra Devi Palaraja2009-08-251-24/+30
| | | | | | | | | | | | Reviewed-By: TrustMe
| * | QTableWidget didn't repaint a cell after takeItemThierry Bastian2009-08-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The problem was that the mode was not emitting dataChanged. Note: This still needs to be autotested. Task-number: 234641 Reviewed-by: ogoffart
* | | Introduce QGraphicsItem::ItemIsPanel, light-weight window.Andreas Aardal Hanssen2009-08-267-124/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ItemIsPanel allows items that act like windows. They can be activated and deactivated just like windows and focus is handled just like with windows. The main difference is that panels are more light-weight. There's less built-in functionality (e.g., clicking a panel doesn't automatically activate nor raise it). This patch also introduces QGraphicsItem::panel(), QGraphicsItem::isPanel(), and QGraphicsItem::isActive(), as well as QGraphicsScene::activePanel(), QGraphicsScene::setActivePanel(). and QGraphicsScene::isActive(). Regular windows (QGraphicsWidgets with Qt::Window set) are also panels, with added functionality. The ItemIsPanel flag is set automatically for windows. Reviewed-by: brad
* | | Fix another minor copy'n'paste error from QLineControl refactoringAlan Alpert2009-08-261-2/+2
|/ / | | | | | | | | | | | | | | Had left the cursor flash time as half the QApplication cursor flash time by mistake. The new function sets the whole period and not just the time between toggling cursor visibility. Reviewed-by: Trust Me
* | QWidgetanimator: the animations are children of the widget they animateThierry Bastian2009-08-251-1/+1
| | | | | | | | | | | | This will remove a false pmemleak under valgrind. Reviewed-by: ogoffart
* | Micro-optimization in QPainterPath::toFillPolygonsThorbjørn Lindeijer2009-08-251-7/+1
| | | | | | | | | | | | | | | | QRectF::intersects was optimized as part of the Falcon project, and is now a bit faster than the inline version used here (drawing of dashed lines was measured to take 16% less time). Reviewed-by: Lars Knoll <lars.knoll@nokia.com>