summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-06-231-5/+12
|\ | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebKit/qt/ChangeLog tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
| * Remove some warnings in the Cocoa build.Norwegian Rock Cat2009-06-231-5/+12
| | | | | | | | | | | | | | | | | | | | After discussing with some of the Objective-C people I have finally got a fair number of the warnings to disappear in both 10.5 and 10.6. I also took the opportunity to remove a bunch of other warnings. Reviewed by: Morten Sørvig
* | QDockWidget: size incorrect when moving separator on fixed-size dock.Thierry Bastian2009-06-234-61/+58
| |
* | QDockWidget: removed separator for not resizable dock widgetThierry Bastian2009-06-224-52/+61
| | | | | | | | Task-number: 212058
* | doc: Fixed typo.Martin Smith2009-06-221-6/+5
| | | | | | | | Task-number: 256287
* | QMenu: fixed a bug that prevented from opening a context menu with midThierry Bastian2009-06-191-3/+3
| | | | | | | | | | | | button and still be able to activate an action Task-number: 253494
* | Use QTransform more efficiently.Bjørn Erik Nilsen2009-06-181-2/+1
| | | | | | | | Reviewed-by: Samuel
* | QMenuBar: fixed highlight problem on actions without menuThierry Bastian2009-06-181-1/+2
| | | | | | | | | | | | | | | | An item without menu could stay highlighted even when the mouse left the menu bar. Task-number: 256322 Reviewed-by: alexis
* | Merge license header changes from 4.5Volker Hilsheimer2009-06-16152-304/+304
|\ \ | |/
| * Update license headers as requested by the marketing department.Jason McDonald2009-06-16152-304/+304
| | | | | | | | Reviewed-by: Trust Me
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtMorten Sørvig2009-06-162-0/+2
|\ \
| * | We should make sure the text cursor is visible when using input methods.Denis Dzyubenko2009-06-162-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | When typing directly text cursor is always visible (and if it isn't, the widget automatically scrolls to make it visible). It should work the same when typing using input methods. Task-number: 254766 Reviewed-by: trustme
* | | Implement QMenu::separatorsCollapsible on Mac/Cocoa.Morten Sørvig2009-06-162-12/+52
|/ / | | | | | | | | | | | | | | | | | | Hide duplicate separators and separators at the beginning and end of the menu. The main challenge here is that separators and "normal" menu items can be added in any order, for example add all the separators first and then fill in the items. This means that we have to redo the visibility decision for separators above and below when adding normal items. Reviewed-by: Prasanth Ullattil
* | Fix QPlainTextEdit auto testmae2009-06-151-1/+1
| | | | | | | | | | Width 0 was used as magic value to optimize the widget's startup and initial resize. We now use the illegal value -1 as magic value insetad.
* | doc: Fixed several qdoc warnings.Martin Smith2009-06-121-4/+5
| |
* | QMenu, QMenuBar: small cleanupThierry Bastian2009-06-126-19/+13
| | | | | | | | | | Removed calls to the widget getters because we have the members directly in the private class.
* | Fixed ToolBar layout so that when a toolbar is resized to its sizeHintThierry Bastian2009-06-111-3/+4
| | | | | | | | we get a "sticky" effect
* | Removed qApp and replaced with QApplication:: for static member callsThierry Bastian2009-06-1110-24/+24
| |
* | remove q->layout() and q->parentWidget() code where unnecessaryThierry Bastian2009-06-119-60/+60
| |
* | removed superflous indirection (ie. using q->..) instead of using theThierry Bastian2009-06-104-41/+37
| | | | | | | | private class member.
* | Fix some possible double connected signalsOlivier Goffart2009-06-101-1/+1
| | | | | | | | | | Task-number: 250147 Reviewed-by: Thierry
* | small code cleanup that improves some loopsThierry Bastian2009-06-103-9/+12
| | | | | | | | it uses les foreach
* | Fix wrong sizing of toolbars when they have anough spaceThierry Bastian2009-06-053-69/+104
| | | | | | | | | | | | | | | | | | | | What could happen starting with 4.4 is that you could move a toolbar. If you then added actions, the toolbar would grom and make the other toolbars move to the right although it had enough space already to show the newly created actions. Autotest will follow shortly. Task-number: 226060
* | All of Qt's own code compiles with -pedantic now (but pcre and webkit don't ↵David Faure2009-06-042-3/+3
| | | | | | | | | | | | | | seem fixable easily) Merge-request: 594 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* | Merge commit 'origin/4.5'Olivier Goffart2009-06-042-15/+39
|\ \ | |/
| * Document that textVisible is optional when it comes to styles.Norwegian Rock Cat2009-06-041-0/+2
| | | | | | | | | | | | | | | | No progress bars on the mac show text and it would be bad if we allowed it. There's nothing stopping people from connecting the valueChanged() signal to a slot and have a real label layed out correctly that actually updates with the amount of time it takes to complete, etc. This is more what they do on Mac OS X if they decide to show a label.
| * BT: Fix a crash in the SDI example in CocoaNorwegian Rock Cat2009-06-031-15/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was quite a bug and it showed to some issues that I hadn't taken into account when doing the initial port to Cocoa. The issue was that we weren't "merging" items into the application menu if an item had already been associated with it. Which seems OK for applications that create one window with one menubar, but breaks down horrible when you have multiple windows with each having their own menubar. The result is that items in the application menu potentially go to the wrong window (and the potential crash). Since there can only ever be one "Quit", "About", or "Preferences" menu item in Cocoa, we need to make sure that we keep these items in sync whenever we switch the menubar or remove actions that are being deleted. That's what we do here. FWIW, QActions with "ApplicationSpecificRole" for their menu role have potential to cause memory leaks or other bugs if abused. If you are a happy open source hacker who wants a thankless job, solving them would get you lots of goodwill in my book. Task-number: 255038 Reviewed-by: Richard Moe Gustavsen
* | Fixed the frame that would sometimes not be painted around widgets inThierry Bastian2009-06-041-1/+1
| | | | | | | | | | | | | | a QStatusBar Task-number: 253717 Reviewed-by: ogoffart
* | Change crazy casts from QString to NSSting to qt_mac_QStringToNSString.Norwegian Rock Cat2009-06-031-7/+7
| | | | | | | | | | These function exist for making code not look so crazy, so let's actually use that in code where it didn't exist before.
* | Fixed the QMenu to open submenus even if the pointing device is movingThierry Bastian2009-06-031-5/+7
| | | | | | | | | | | | | | but the current highlighted item doesn't change Task-number: 254238 Reviewed-by: ogoffart
* | Removed a warning (qreal should be used, and not float)Thierry Bastian2009-06-031-1/+1
| |
* | Wrong default argument for my previous fix.Norwegian Rock Cat2009-05-291-1/+1
| | | | | | | | | | | | Argh! This was a private function and I assumed that I had the boolean correct, but I was wrong. Anyway, we don't need to do the group fade be default ever, so always have it false.
* | Do not hide the left edge of widget in statusbarOlivier Goffart2009-05-291-1/+1
| | | | | | | | | | | | | | Could be caused by change d2cba538 Reviewed-by: jbache Task-number: 254083
* | Mac: App menus reactivated when a sheet is used on a modal dialog.Richard Moe Gustavsen2009-05-291-14/+14
| | | | | | | | | | | | | | | | We need to check all window anchestors of the sheet to make sure that there it is not in effekt application modal Task-number: 254543 Reviewed-by: Trenton Schulz
* | Ensure a hierarchy of menus fade out together.Norwegian Rock Cat2009-05-292-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | On Mac OS X, when you have a large hierarchies of menus and you select the item at the end of the hierarchy. It will flash and then the rest will fade out at the same time. Qt would do a phased approach which was what no one expected. Introduce a QMacWindowFader class that can hold an arbitrary number of qwidgets and then on command fade them all down pased on the set duration. The API is a bit clumsy but is prefect for this internal API. Task-#: 251700 Reviewed-by: Richard Moe Gustavsen
* | Respect PM_ScrollView_ScrollBarSpacing in QAbstractScrollArea::minimumSizeHint()Christoph Feck2009-05-281-0/+6
| | | | | | | | | | Reviewed-by: Olivier Goffart Request-url: http://qt.gitorious.org/qt/qt/merge_requests/382
* | improved string operations all over the placeThierry Bastian2009-05-282-5/+5
| | | | | | | | | | used character operations whenever possible better usage of QLatin1String
* | Use Qt::UniqueConnection instead of disconnect/connectOlivier Goffart2009-05-281-2/+1
| | | | | | | | | | | | | | Also fix an issue in QTreeView where a signal could be connected several times Reviewed-by: Thierry
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-05-271-4/+7
|\ \ | |/ | | | | | | Conflicts: tests/auto/qtreeview/tst_qtreeview.cpp
| * BT:Fix a clipping issue in tabbar tabsJens Bache-Wiig2009-05-251-4/+7
| | | | | | | | | | | | | | | | | | | | On XP and Vista where tabs use taboverlap, the currently dragged would loose the outline. We need to compensate for the taboverlap when creating the draggable widget, otherwise the outline will be clipped. Task-number: 254453 Reviewed-by: nrc
* | Remove used variableOlivier Goffart2009-05-272-4/+1
| | | | | | | | | | | | olsFrameStyle was old. Reviewed-by: jbache
* | Do not use the locale in QDoubleSpinBoxPrivate::roundOlivier Goffart2009-05-271-3/+1
| | | | | | | | | | | | | | | | | | | | We had a report from a customer saying this breaks if the decimal separator is the same as the group separator. This is not really something we want to support, but because this fix is easy and cleanup the code I decided to fix it. Reviewed-by: Thierry Task-number: 253962
* | Fixed 'crazy' warnings about using a string instead of a characterThierry Bastian2009-05-255-14/+14
| | | | | | | | | | | | | | Wherever I found that we were using a string instead of a single char I fixed the code. Reviewed-by: olivier
* | Merge branch '4.5' of ../qt-45-documentationDavid Boddie2009-05-202-9/+19
|\ \ | |/
| * QComboBox: style change event should not resets custom item delegatesOlivier Goffart2009-05-202-9/+19
| | | | | | | | | | | | | | | | | | Regression from 4.4 introduced while fixing task 167106 Autotest: tst_QComboBox::task253944_itemDelegateIsReset() Task-number: 253944 Reviewed-by: jbache
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-05-199-9/+9
|\ \ | |/
| * Replace all occurences of "heirarchy" with "hierarchy"Andre Haupt2009-05-181-1/+1
| | | | | | | | | | Signed-off-by: Andre Haupt <andre@bitwigglers.org> Reviewed-By: Thiago Macieira
| * Fix some typos in the documentation.Frederik Schwarzer2009-05-188-8/+8
| | | | | | | | | | | | Usually, "the the" is not proper English Reviewed-By: Thiago Macieira
* | Merge commit 'origin/4.5'Olivier Goffart2009-05-182-5/+5
|\ \ | |/ | | | | | | | | | | Conflicts: src/corelib/kernel/qobject.cpp src/corelib/kernel/qobject_p.h src/network/access/qhttpnetworkconnection.cpp
| * QCalendarWidget::setDateTextFormat() reset the format is the date is invalidBenjamin Poulain2009-05-181-1/+1
| | | | | | | | | | | | | | | | | | According to the documentation, QCalendarWidget::setDateTextFormat() should reset the format if the date is not valid. New tests included for the formating of this widget. Task-number: 252943 Reviewed-by: Olivier