summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
Commit message (Collapse)AuthorAgeFilesLines
* Ensure all the standard shorcuts are used for the Close Action in MDIAndy Shaw2009-07-231-1/+1
| | | | | | | | Since there is more than one standard shorcut for closing a MDI window, then ensure that all of them can be used. Task-number: 161999 Reviewed-by: Simon Hausmann
* Show text even if maximum == 0Olivier Goffart2009-07-221-1/+1
|
* Support for very large range in QProgressBarOlivier Goffart2009-07-221-2/+2
| | | | | | Regression since my last commit. Task-number: 152227
* Simplify the computation of the QProgressBar progress.Olivier Goffart2009-07-221-2/+2
| | | | | | | This is also a work around for a bug in gcc on powerpc (embedded-linux) Task-number: 258358 Reviewed-by: jbache
* Doc: small improvementsVolker Hilsheimer2009-07-201-1/+1
|
* doc: Changed several \reimp to \internalMartin Smith2009-07-201-4/+0
| | | | The base function was \internal pr private.
* Doc: Document QAction::Priority and Qt::ToolButtonFollowStyle.Volker Hilsheimer2009-07-181-3/+2
|
* Add priority property to QActionJens Bache-Wiig2009-07-171-2/+8
| | | | | | | | | | | 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
* Allow picking up tool button style from the systemJens Bache-Wiig2009-07-161-1/+9
| | | | | | | | | | | | 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
* Fixed warnings on mingwThierry Bastian2009-07-161-2/+2
|
* 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
* 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-141-2/+3
| | | | | | 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-141-0/+1
| | | | | we should include qt_windows.h and not windows.h because we have to define WINVER to 0x500.
* Fix font propagation issues with QComboBox and the popup menu.Norwegian Rock Cat2009-07-131-2/+4
| | | | | | | | | | | | | | | 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
* 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
* Fixed linking of QtSvg with MSVC.Rohan McGovern2009-07-131-1/+1
|
* 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).
* 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
* Ensure that when we hide QToolBar in unified, unified follows.Norwegian Rock Cat2009-07-095-24/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* QTabBar: now uses QVariantAnimation over QTimeLineThierry Bastian2009-07-094-73/+65
| | | | QTimeLine is now no more used in private APIs
* Remove unneeded assert.Friedemann Kleint2009-07-091-1/+0
| | | | | Triggered on Designer startup on Linux. Acked-by: Thierry Bastian <thierry.bastian@nokia.com>
* Make compileBill King2009-07-081-0/+1
|
* Merge commit 'origin/4.5'Bill King2009-07-081-5/+1
|\ | | | | | | | | | | | | | | | | | | Conflicts: src/sql/drivers/ibase/qsql_ibase.cpp tests/auto/q3sqlcursor/tst_q3sqlcursor.cpp tests/auto/qsqldatabase/tst_databases.h tests/auto/qsqldatabase/tst_qsqldatabase.cpp translations/qt_ru.ts
| * Update QGroupBox on focusBenjamin Poulain2009-07-081-5/+1
| | | | | | | | | | | | | | | | We cannot assume the position of the decorations when a QGroupBox get the focus. Task-number: 257660 Reviewed-by: Thierry
* | Fix possible crash in QDockAreasThierry Bastian2009-07-081-1/+1
| |
* | QMainWindow: fix the use of animation and improve code qualityThierry Bastian2009-07-083-52/+38
| |
* | QMenuBar: the extension could be visible when it shouldn'tThierry Bastian2009-07-081-2/+2
| | | | | | | | | | If you had invisible actions in the menubar, it would always show the extension button
* | Animations: fix compilation with QT_NO_ANIMATIONThierry Bastian2009-07-082-1/+24
| |
* | QMainWindow: compile fix when defining QT_NO_DOCKWIDGETThierry Bastian2009-07-081-2/+1
| |
* | QMainWindow: fixed a crash in some cases when deleting the widgetThierry Bastian2009-07-082-13/+6
| | | | | | | | | | | | | | | | This happened because the rubberband used as a gapindicator was not allocated on the heap and might have been deleted by the QMainWindow destructor. Task-number: 257626
* | QMainWindow: made use of QPropertyAnimation for animationsThierry Bastian2009-07-084-149/+59
| | | | | | | | This required some refactoring as well. Now code is leaner and cleaner
* | Fixes a crash when scrolling a scrollarea with a mouse wheel.Denis Dzyubenko2009-07-071-0/+1
| | | | | | | | | | | | | | | | | | This fixes a crashed introduced in 60e965fd35037f4a27816d2aeccafdff0d6ae9d6 - those lines were removed by accident. Reviewed-by: João Abecasis Author: João Abecasis
* | QColumnView: didn't react to addition of rows/cols in the current viewThierry Bastian2009-07-072-4/+1
| | | | | | | | Task-number: 246999
* | QMainWindow: layout private API cleanupThierry Bastian2009-07-072-35/+35
| | | | | | | | using const references to pass parameter
* | Make sure we send a ValueChanged event if the spinbox value has changedJan-Arve Sæther2009-07-071-0/+9
| | | | | | | | | | | | | | | | | | Unfortunately the codepath for keyPressEvent does not call updateState, so we have to add the same line in two places. Note that updateState() is only called from mousePressEvent() and mouseMoveEvent(). Task-number: 254053
* | QMenu: with tearoff handle, it would reserve the space for it twiceThierry Bastian2009-07-071-8/+5
| | | | | | | | sizeHint is now fixed
* | QToolBar: better management of positions when hiding/unhidingThierry Bastian2009-07-071-11/+5
| | | | | | | | | | | | | | The toolbar that one would unhide could be packed at the right of the screen. This was because the last toolbar always has a size that fills the space. So if you unhide a toolbar situated after this one, it got "compressed".
* | QFontComboBox: used to emit currentFontChanged twice when setting it.Thierry Bastian2009-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | Setting the current font would change the current font and then it would try to select the right model index and get the font only from the text of the combobox. This was resetting the point size of the font, resulting in emitting the signal a second time. In the case of the user, it was also causing signals to be called in a loop. Task-number: 229731
* | QMenu: the scroller now takes the qapp's global strut into accountThierry Bastian2009-07-062-25/+25
| | | | | | | | Task-number: 257118
* | QMenu: scrolling in menus was brokenThierry Bastian2009-07-062-16/+24
| |
* | doc: Added not about Mac OS X.Martin Smith2009-07-061-0/+7
| | | | | | | | | | | | | | On Mac OS X, QMenuBar::clear() does not remove menu items that have been merged into the system menu bar. Task-number: 255222
* | QToolBar: avoid repaints when entering/leaving a toolbarThierry Bastian2009-07-031-0/+4
| | | | | | | | | | | | HoverEnter/Leave now do nothing. Task-number: 256103
* | QPlainTextEdit pixel dust redrawing problem on clear()mae2009-07-021-3/+2
| | | | | | | | | | With document margins, the mapping from content-coordinates to visual coordinates went wrong.
* | Refactored gesture apiDenis Dzyubenko2009-07-028-3/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewritten the api almost from scratch, making it simplier and more flexible at the same time. The current implementation will not have complex gseturemanager class inside Qt, but the QGesture base class, which represents both a gesture recognizer and a gesture itself with a set of properties. A set of common gestures that can use used in third-party applications (and in Qt itself internally) is supposed to be found in qstandardgestures.h, and a base class for user-defined gestures is in qgesture.h Gesture implementation for Pan on Windows7 has also been added as a reference implementation for platform gestures.
* | Don't insert text into a text widget when a modifier is pressed.Denis Dzyubenko2009-07-021-1/+2
| | | | | | | | | | | | | | | | For example when an unhandled key sequence (i.e. that has now shortcut assosiated with it) like Alt-L is pressed, we shouldn't insert the 'L' text from the QKeyEvent::text() into the text widget. Reviewed-by: Thomas Zander
* | Merge branch '4.5'Thiago Macieira2009-07-021-3/+4
|\ \ | |/
| * Document unified toolbar change with regard to full screen change.Norwegian Rock Cat2009-07-011-3/+4
| |
* | QMainWindow: cleanup of code in QWidgetAnimatorThierry Bastian2009-07-016-107/+66
| |