summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* repair the mouse cursor on Windows CEJoerg Bornemann2009-07-151-0/+4
| | | | | | | | The LoadImage function doesn't seem to work for loading cursors from resources. Also, it isn't marked as deprecated for Windows CE like on desktop Windows. So we'll just use it again. Reviewed-by: thartman
* Bad drawing of styled viewports within QAbstractScrollAreaOlivier Goffart2009-07-155-52/+40
| | | | | | | | | | | | | | | | This patch includes lots of refactoring, but the real problem was that in QWidgetPrivate::paintBackground we call drawPrimitive(PE_Widget) with a potentialy translated painter, but the opt.rect is not translated. When having a scroll area the calling function used to translated the painter and then pass the offset around to rectify. but drawPrimitive cannot rectify it. The solution is not to translate the painter but use other way to rectify the brush Task-number: 257517 Reviewed-by: bnilsen
* Fix painting of the background of QAbstractItemView, QTextEdit and coOlivier Goffart2009-07-151-1/+1
| | | | when only setting a border with the stylesheet
* support context menu for system tray icons on Windows CEJoerg Bornemann2009-07-141-2/+11
| | | | | | | | This is Windows CE only. For Windows mobile we don't support context menus for system tray icons. Task-number: 250528 Reviewed-by: thartman
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtMarius Bugge Monsen2009-07-143-15/+19
|\
| * Make sure QGraphicsScene::update() only requires one event-loopBjørn Erik Nilsen2009-07-143-15/+19
| | | | | | | | | | | | | | | | | | | | | | iteration before the views are updated. A full scene update (scene.update()) already supported it because the scene called update() on the views directly. However, partially scene updates (scene.update(rect)) required two event-loop iterations before the views were updated. Auto-test included.
* | Remove sendGestureEvent().Marius Bugge Monsen2009-07-141-68/+0
| |
* | Add QGraphicsView::filtersChildEvents property.Marius Bugge Monsen2009-07-145-9/+149
|/ | | | This obsoletes QGraphicsView::handlesChildEvents.
* Use the correct font metrics function.Olivier Goffart2009-07-142-8/+2
| | | | | | | | Qt::TextShowMnemonic removes the '&' for us. This is required if we want the multi-lenght-variant strings working. Reviewed-by: Thierry
* Make the window title set by setWindowFilePath() match our docs.Norwegian Rock Cat2009-07-142-4/+4
| | | | | | | | | | | | | | | On the mac, we were setting the absolute path of the file passed in while we document that we only set the filename. The filename is actually what all the other Mac apps do, so we should really do it. Unfortunately, this task laid around longer than it should, but the description text was bad. Additionally, fix a bug in the Cocoa version where we would set a proxy icon for items that didn't exist, this is not a good idea. Task-number: 220501 Reviewed-by: Trust Me
* Remove this foundItem boolean.Norwegian Rock Cat2009-07-141-4/+1
| | | | | | | Found while documenting this internally. I guess I had a reason for it at one point, but it seems that I'm more concerned about what index. So just get rid of this.
* use qt_mac_QStringToNString & qt_mac_NSStringToQStringNorwegian Rock Cat2009-07-142-6/+5
| | | | | | These functions hide all this horrible casting and we've had them for a while. When I see them, I try to replace them as it keeps the code much more readable.
* Build fix for mingwThierry Bastian2009-07-149-18/+17
| | | | | we should include qt_windows.h and not windows.h because we have to define WINVER to 0x500.
* Compile without qt3supportOlivier Goffart2009-07-131-1/+1
|
* Fixes: The keyboard navigation of QComboBox don't work with the completionNoah White-Hamerslough2009-07-131-2/+2
| | | | | | Merge-request: 653 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com> Task-number: 247560
* QToolTip: Uses QPalette::ToolTipText default text color for rich text.Thomas Sondergaard2009-07-131-0/+1
| | | | | | Task-number: 248429 Merge-request: 786 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* Added QTextListFormat::ListUpperRoman and QTextListFormat::ListLowerRoman ↵Nils Jeisecke2009-07-139-7/+85
| | | | | | | for roman numbering of lists as supported by HTML/ODF Reviewed-by: Olivier Goffart Merge-request: 681
* QTreeView: now dragging lots of items is fastThierry Bastian2009-07-134-2/+47
|
* Fix font propagation issues with QComboBox and the popup menu.Norwegian Rock Cat2009-07-133-4/+16
| | | | | | | | | | | | | | | This has always been a bit bumpy, the problem is that the popup normally has its own styling from the desktop, plus it's its own top-level and that is normally a boundary for propagation. Of course, people are surprised by this (especially when it works for editable). So, we need to be a bit better propagating the info. Also the QStyleOptionMenuItem has the correct font, but if it's set on a window, by the time it reaches the popup, its resolve mask is very weak, so it will fail to resolve at all. Setting the point size allows the font to have a bit of strength. Task-number: 257486 Reviewed-by: Jens Bache-Wiig
* Cut-off in QGraphicsView not hit if setting a scene rect.Bjørn Erik Nilsen2009-07-131-1/+1
| | | | | | | | | | QGraphicsScene::sceneRect() returns the growingItemsBoundingRect if not a particular scene rect is set; otherwise the sceneRect is returned. This cut-off aims to do less processing when the exposed region covers the entire scene, but it won't get hit in case of a sceneRect because we always check against the growingItemsBoundingRect. Task-number: 257192
* Unified common code in QSyntaxHighlighter::rehighlight() and ↵J-P Nurmi2009-07-131-17/+14
| | | | | | | QSyntaxHighlighter::rehighlightBlock() Merge-request: 379 Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* Added QSyntaxHighlighter::rehighlightBlock(QTextBlock)J-P Nurmi2009-07-132-0/+28
| | | | | Merge-request: 379 Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* Fix crash after "Remove QT_WA and non-Unicode code paths, dropping Win9x and ↵Bjoern Erik Nilsen2009-07-131-1/+2
| | | | | | | | | | | NT support" tst_QGraphicsProxyWidget crashed because the QAlphaWidget tried to access a deleted widget. Before we had the if check, but that was removed with this commit: 55137901. Completely wrong, we must check the widget pointer before using it. Reviewed-by: jbache
* Merge commit 'origin/4.5'Bill King2009-07-132-6/+3
|\ | | | | | | | | | | | | | | Conflicts: src/plugins/kbddrivers/usb/main.cpp tests/auto/qnetworkreply/tst_qnetworkreply.cpp tests/auto/qwidget/tst_qwidget.cpp
| * Fixed a crash with input methodsPierre Rossi2009-07-102-6/+3
| | | | | | | | | | | | | | | | | | The inputContext's focusWidget was not reset when disabling input methods. Thanks to Benjamin P. Task-number: 257832 Reviewed-by: Denis
* | Fixed linking of QtSvg with MSVC.Rohan McGovern2009-07-133-19/+18
| |
* | QListView: small refactoringThierry Bastian2009-07-112-67/+61
| | | | | | | | It is useless to store the vector of modelindex from intersectingSet
* | ItemViews selection: improve performance of QItemSelection::indexesThierry Bastian2009-07-111-12/+23
| | | | | | | | On windows it makes it 2x faster
* | build fix on windowsThierry Bastian2009-07-111-0/+1
| |
* | ItemViews: make dragging faster when lots of items are selectedThierry Bastian2009-07-114-11/+55
| | | | | | | | | | | | | | QListView know exactly what they have on their viewport and we only paint items clipped to the viewport. So we don't need to ask for each item its visualRect. NB: QTreeView and QTableView probably deservee the same treatment
* | Merge commit 'qt/master' into graphicssceneindexBjørn Erik Nilsen2009-07-10130-4194/+2093
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem_p.h tests/auto/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp tests/auto/qgraphicsview/tst_qgraphicsview.cpp
| * | QListView: improve performance on QListView::selectedIndexesThierry Bastian2009-07-101-7/+9
| | | | | | | | | | | | Task-number: 233342
| * | Fix compilation on SnowLeopardNorwegian Rock Cat2009-07-102-5/+5
| | | | | | | | | | | | | | | | | | On 64-bit an id (void *) is 64-bit also, so, it really should be a pointer, but I'll make it a 64-bit int for the time being just so stuff compiles.
| * | ItemViews: make the pixmap from drag and drop more efficientThierry Bastian2009-07-102-14/+21
| | | | | | | | | | | | | | | | | | | | | We don't need to draw all the items that are selected. We just need those whose rect intersects the one from the viewport. Task-number: 233342
| * | Tablet events get delivered to the widget where the tablet down happend.Luc Devallonne2009-07-101-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | This is basically the Windows version of the bug fixed in change 82e825ed841bce324a6892fcbace03f9936d4f4f Merge-request: 855 Reviewed-by: Norwegian Rock Cat <qt-info@nokia.com>
| * | QTableView: auto-scrolling could be broken by invisible sectionsThierry Bastian2009-07-101-2/+2
| | | | | | | | | | | | Task-number: 248688
| * | QTableView: horizontal scrollbar could be inoperent with big columnsThierry Bastian2009-07-101-0/+4
| | | | | | | | | | | | Task-number: 240266
| * | QMainWindow: it is useless to apply the stte after a call to plugThierry Bastian2009-07-101-5/+0
| | | | | | | | | | | | The layoutState is already current (ie. already applied).
| * | QFileDialog: the side urls are now always cleaned when they are localThierry Bastian2009-07-101-4/+9
| | | | | | | | | | | | Task-number: 257579
| * | QDoubleSpinBox: make sure people can't choose too many decimalsThierry Bastian2009-07-101-3/+4
| | | | | | | | | | | | | | | | | | Maximum number of decimals is DBL_MAX_10_EXP + DBL_DIG Task-number: 257291
| * | Support Tablet coordinate on Windows with non-zero physical originLuc Devallonne2009-07-102-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most Wacom tablet have a coordinate origin at 0 (Bamboo,Intous), but some tablet (like DTF 720, which have an integrated screen) have a non zero coordinate origin. Which lead to an errounous y/a tablet pos reported by Qt tablet event. Merge-request: 822 Reviewed-by: Norwegian Rock Cat <qt-info@nokia.com>
| * | Ensure that when we hide QToolBar in unified, unified follows.Norwegian Rock Cat2009-07-0910-42/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basically if you would hide a toolbar in the unified toolbar, you would still see a little bit of area at the top instead of having everything flush with the titlebar. This change basically unsures that the unified toolbar makes a decision to hide itself if all the toolbars inside it are hidden. It makes the behavior of clicking on the toolbar button behave more or less correctly since we are going to show the unified toolbar whether we want to or not. This all will get the toolbar button switch event to be dispatched in Cocoa as well. Also add an optimization for checking if we need to change the geometry. If we don't have any items the other toolbar areas, we can skip the set geometry call, which wrecks havoc with things in Cocoa. We still don't solve the case of someone who has hidden the items with the toolbar button then goes full-screen, then goes back out. I'm not motivated to solve it as is because we need to keep track of the hides we do on the button press vs. other hides from the user and still people can workaround it easy enough by handling window state change and doing what is recommended in the docs. Task-number: 208439 Rev-by: Denis
| * | Add the complex control SC_SpinBoxEditField to style optionNils Christian Roscher-Nielsen2009-07-091-1/+1
| | | | | | | | | | | | Reviewed-by: Thierry
| * | Compile fix.Denis Dzyubenko2009-07-091-0/+1
| | |
| * | Fix compile issueThierry Bastian2009-07-093-13/+20
| | |
| * | QTabBar: now uses QVariantAnimation over QTimeLineThierry Bastian2009-07-094-73/+65
| | | | | | | | | | | | QTimeLine is now no more used in private APIs
| * | QTreeView: cleanup of useless private slotsThierry Bastian2009-07-094-48/+20
| | | | | | | | | | | | currentChange is slot in the public class (QAbstractItemView
| * | QTreeView: use QVariantAnimation over QTimeLineThierry Bastian2009-07-094-67/+55
| | |
| * | Remove unneeded assert.Friedemann Kleint2009-07-091-1/+0
| | | | | | | | | | | | | | | Triggered on Designer startup on Linux. Acked-by: Thierry Bastian <thierry.bastian@nokia.com>
| * | Directly copy QGenericMatrix members instead of using qMemCopy()Rhys Weatherley2009-07-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Using qMemCopy limits QGenericMatrix to plain old types like float and double. Copying the values normally will allow copy constructors to work on non plain types. Reviewed-by: trustme