summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* Return selectedFilter in QGtkStyle file dialogsLukáš Lalinský2009-07-202-5/+27
| | | | | | | | | | | Function setupGtkFileChooser is modified to optionally build a map of GtkFileFilters. File dialog methods then use gtk_file_chooser_get_filename to get the current GtkFileFilter and look it up in the map produced by setupGtkFileChooser. This value is then saved in the selectedFilter pointer. Merge-request: 846 Reviewed-by: Jens Bache-Wiig <jbache@trolltech.com>
* Doc: clarify relevance for QGraphicsItem and add a few \saVolker Hilsheimer2009-07-201-26/+84
|
* Doc: small improvementsVolker Hilsheimer2009-07-201-1/+1
|
* Doc: Make QAction::priority/Priority documentation clearerVolker Hilsheimer2009-07-201-9/+9
|
* Fixed includes in the gestures public headers.Denis Dzyubenko2009-07-202-10/+9
| | | | Reviewed-by: trustme
* Fixes build for Windows MobileThomas Hartmann2009-07-201-1/+0
| | | | Reviewed-by: Joerg
* doc: Changed several \reimp to \internalMartin Smith2009-07-204-16/+2
| | | | The base function was \internal pr private.
* compile against the Windows 7 SDK RCBradley T. Hughes2009-07-201-15/+16
|
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtOswald Buddenhagen2009-07-201-4/+208
|\
| * On Vista the native file dialog search feature return wrong paths.Prasanth Ullattil2009-07-201-4/+208
| | | | | | | | | | | | | | | | | | | | Windows Vista (& above) allows users to search from file dialogs. If user selects multiple files belonging to different folders from these search results, the GetOpenFileName() will return only one folder name for all the files. To retrieve the correct path for all selected files, we have to use Common Item Dialog interfaces. Task-number: 258087 Reviewed-by: Jens Bache-Wiig
* | Merge commit 'origin/4.5'Oswald Buddenhagen2009-07-208-33/+67
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/generated/JSDOMWindow.cpp src/3rdparty/webkit/WebCore/page/DOMWindow.idl src/corelib/io/qdiriterator.cpp src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h tests/auto/qxmlquery/tst_qxmlquery.cpp tools/linguist/lconvert/main.cpp
| * Fix the hand scrolling in QGraphicsView that will stop unexpectedly.Alexis Menard2009-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | If you start a hand scrolling and during moving, you press another button of the mouse than the left one, the scrolling suddently stop working. In mouseReleaseEvent we just stop the hand scrolling if the button is left. Task:258356 Reviewed-by:janarve
| * Fix crash when native socket notifiers would send a notification after being ↵Norwegian Rock Cat2009-07-201-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disabled. Spend a lot of time looking at this and at the CoreFoundation source code and it seems that we really do get a notification even after the notifier is disabled. I suspect there's a race condition between when we disable the socket notifier, but the kernel flags it as needing a read, then CoreFoundation just sends the notification without checking if the CFSocket has been disabled. No further notifications come of course. Since this breaks the invariant that was set in the assert, I'm replacing it with an if check. Task-number: 258198 Reviewed-by: Bradley T. Hughes
| * Fix deadlock in the QWS server when destroying lots of windowsTom Cooksey2009-07-172-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, don't call QWSWindowSurface::winId() in the destructor, as it will actually request a new id if there isn't already one around - which is a bit silly and highlighted the "real" bug. Second, make sure QWSDisplay::Data::takeId() asks for 1 new id before waiting for more ids to arrive. This is because waitForCreation() calls QWSServer::processEventQueue(). If the events in the queue cause takeId() to be called, QWSDisplay::Data::takeId() gets called recursively. Even though there will be a create 15 ids command in the queue, that will only allow 15 QWSDisplay::Data::takeId() calls to return. The 16th call to QWSDisplay::Data::takeId() on the stack will not be able to return because all the IDs have been taken and (because it has been called recursively) no new create id commands have been generated. So the 16th call to takeId() spins in waitForCreate(). Reviewed-by: Paul
| * Fix accidental selection of popup items under the mouse in QComboBoxmae2009-07-171-0/+2
| | | | | | | | | | | | | | | | | | | | If the widget under mouse is hidden, Qt can generate a synthetic mouse move event which gets delivered to the already hidden widget. This can then result in the wrong item being selected. Workaround: in QListView, ignore mouse move events when the widget is hidden. Reviewed-by: Denis
| * Enhanced QDirModel documentationMarkus Goetz2009-07-171-1/+4
| | | | | | | | Reviewed-by: Volker Hilsheimer
| * Better caching of file system icon providers.Norwegian Rock Cat2009-07-161-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | It turns out that we weren't doing any caching of icons provided by the file system. We now use the similar trick that's used on Windows which does some caching on the file extension. We do fill up the cache needlessly with extra information (16, 32, 64, and 128) icons. We probably could be better with a iconRef engine that generates these sizes on demand. Still performance is 100% better with this which means using it in itemviews works. Reviewed-by: Jens Bache-Wiig
| * QFileDialog static functions doesn't honor the DontUseNativeDialog flag.Alexis Menard2009-07-151-3/+3
| | | | | | | | | | | | | | Just add a check before calling hooks. Task-number:258084 Reviewed-by:jbache
| * Revert "QFileDialog: When passing an invalid path in static functions the ↵Alexis Menard2009-07-141-18/+3
| | | | | | | | | | | | native" This reverts commit a4c4f994fa51ff216f0d43098824617e14b8a284.
| * Fixed a potential memory leak on XPJens Bache-Wiig2009-07-131-2/+4
| | | | | | | | | | | | | | | | | | Calling OpenThemeData directly causes a leak when changing the style as we do not call the corresponding CloseThemeData. Task-number:257916 Reviewed-by:prasanth
* | compile fix after the last commitDenis Dzyubenko2009-07-201-1/+1
| |
* | QDesktopServices::openUrl failed for local file paths with a file schemaDenis Dzyubenko2009-07-201-2/+4
| | | | | | | | | | | | | | | | | | OpenUrl couldn't open relative urls because we were passing 'file:///' schema to the ShellExecute on Windows Reviewed-by: Prasanth Ullattil # with '#' will be ignored, and an empty message aborts the commit.
* | Compile fix with namepaceshjk2009-07-203-16/+13
| | | | | | | | | | | | Some QT_{BEGIN,END}_HEADER macros had been missing or misplaced. Reviewed-by: thiago
* | Doc: A few cleanups, fixes and improvements.Volker Hilsheimer2009-07-196-11/+14
| |
* | Doc: add \since 4.6 for new APIsVolker Hilsheimer2009-07-197-8/+30
| |
* | Doc: Document QAction::Priority and Qt::ToolButtonFollowStyle.Volker Hilsheimer2009-07-182-7/+27
| |
* | Doc: add documentation for new overloads, and mark old overloads thatVolker Hilsheimer2009-07-181-5/+57
| | | | | | | | might lead to incorrect results as obsolete (and explain why).
* | optimize painting of dithered disabled textOswald Buddenhagen2009-07-171-2/+3
| | | | | | | | | | | | no need to calculate the bounding rect twice Reviewed-by: jbache
* | Fix for selection with Shift-Arrow/Shift-Click in QListView's IconModeFrank Reininghaus2009-07-171-2/+8
| | | | | | | | | | | | | | | | | | | | | | This addresses the selection of items using Shift-Arrow or Shift-Click in QListView's IconMode if the items are in a grid layout. In the case that the items do not have the same size (e.g., because their text is wrapped), this commit prevents the unexpected selection of additional items. New unit tests are included. Merge-request: 666 Reviewed-by: Olivier Goffart
* | Fix compilation on Mac.Volker Hilsheimer2009-07-171-1/+1
| |
* | Implement QDesktopWidget::screenCount as a property, and add Q_PROPERTYVolker Hilsheimer2009-07-171-0/+4
| | | | | | | | for other attributes as well.
* | Merge branch 'screencountchanged'Volker Hilsheimer2009-07-176-47/+80
|\ \ | | | | | | | | | | | | Reviewed-by: denis Reviewed-by: Prasanth
| * | Implement QDesktopWidget::screenCountChanged signal on desktop platforms,Volker Hilsheimer2009-07-176-47/+80
| | | | | | | | | | | | | | | | | | | | | and add manual testcase. Provide replacement "screenCount" for numScreens and document numScreens as obsolete to be more consistent with other APIs.
* | | Add priority property to QActionJens Bache-Wiig2009-07-175-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need this to support the behavior in Gtk+ where, when Qt::ToolButtonTextBesideIcon is used, only text labels for important actions are shown. It will also enable us to prioritize actions in the future when for instance collapsing a toolbar. Task-number: 258290 Reviewed-by: thierry
* | | Lets the size of the completer be configurable in a way similar to QComboBox.Frédéric Mercille2009-07-173-3/+32
| | | | | | | | | | | | | | | Merge-request: 884 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | | Add reading of kde colors Link and LinkVisited colors from qt apps in ↵Jeremy Whiting2009-07-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | qapplication_x11.cpp so these two colors don't get overridden by the defaults when kde config is found. Merge-request: 917 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtMarius Bugge Monsen2009-07-1724-257/+434
|\ \ \
| * | | Move QMacStyle icon handling down to the common style.Norwegian Rock Cat2009-07-176-146/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is more follow the cue of what is done on X11, mainly, if you are creating things like messageboxes or file views, you want them to follow the desktop (yes, you do). If you disable desktop settings aware, you get the old look. This also meant shifting around some functions into qt_cocoa_helpers_mac to make them more readily available instead of living in differnt files. People who use standard pixmap get the old values, but I think that's fine. If you haven't moved onto standardIcon (introduced in 4.1), you don't get the latest bling. Review-by: Jens Bache-Wiig
| * | | Handle Jens' new variable.Norwegian Rock Cat2009-07-171-0/+3
| | | | | | | | | | | | | | | | | | | | In theory, the new "follow style" value will never be hit, let's make that explicit in the code.
| * | | Fixes: ItemView text editor is not visible with empty text and iconsOlivier Goffart2009-07-172-4/+16
| |/ / | | | | | | | | | | | | | | | | | | It was not visible wicause its height was 0 Task-number: 257481 Reviewed-by: mbm
| * | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtDavid Boddie2009-07-1710-21/+100
| |\ \
| | * | Fix MinGW (g++ 3.4.5) compilation.Friedemann Kleint2009-07-171-3/+4
| | | | | | | | | | | | | | | | | | | | ...to be reverted once it is deprecated. Reviewed-by: Thierry Bastian <thierry.bastian@nokia.com>
| | * | Allow picking up tool button style from the systemJens Bache-Wiig2009-07-167-4/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KDE and GNOME has the concept of a default tool button style that can be set system-wide. Qt currently allways default to IconOnly. I have added an optional Qt::ToolButtonSystemDefault value so you can opt-in to respect the system setting. We did not change the default because a lot of apps will look odd when for instance text is beside icons and the descriptive text is too long. Task-number: 237864 Reviewed-by: ogoffart
| | * | ItemViews: don't commit data from editors when hiding the viewThierry Bastian2009-07-162-2/+2
| | | | | | | | | | | | | | | | Task-number: 258106
| | * | Small simplification of code in ItemViews (delegate)Thierry Bastian2009-07-162-12/+6
| | | |
| * | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtDavid Boddie2009-07-1612-57/+130
| |\ \ \ | | |/ /
| | * | QTreeView: fix the scrollTo with position center and bottomThierry Bastian2009-07-161-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | This still needs to be autotested Task-number: 258225
| | * | Doc: fix qdoc errors and clarify purpose of deviceTransform parameterVolker Hilsheimer2009-07-163-39/+58
| | | | | | | | | | | | | | | | | | | | | | | | in new overloads. Reviewed-By: bnilsen
| | * | Fix warnings for mingwThierry Bastian2009-07-161-2/+2
| | | |
| | * | Fixed warnings on mingwThierry Bastian2009-07-161-2/+2
| | | |