summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
Commit message (Collapse)AuthorAgeFilesLines
* doc: Fixed some qdoc errors, numXxx() to xxxCount(), etc.Martin Smith2009-11-111-1/+8
|
* Doc: Fix warnings caused by deprecations.David Boddie2009-11-091-2/+2
| | | | Reviewed-by: Trust Me
* Merge branch '4.6-platform' into 4.6Denis Dzyubenko2009-11-092-2/+2
|\
| * Fixed pan gesture handlers in standard Qt widgets.Denis Dzyubenko2009-11-092-2/+2
| | | | | | | | Reviewed-by: Richard
* | Merge branch '4.6-api-review' into 4.6Marius Storm-Olsen2009-11-098-14/+94
|\ \ | |/ |/|
| * API review: Rename numPages() -> pageCount()Marius Storm-Olsen2009-11-092-1/+14
| | | | | | | | | | | | | | | | QPrintPreviewWidget wasn't following the Qt API naming convention of *Count()/set*Count(). Introduce proper function, and obsolete the old. Removed all usage of the old function in Qt. Reviewed-by: Andreas Aardal Hanssen
| * API review: Rename numDigits() and setNumDigits()Marius Storm-Olsen2009-11-092-13/+35
| | | | | | | | | | | | | | QLCDNumber doesn't follow the API convention of *Count and set*Count(). Introduce properly named functions, and obsolete the old ones. Reviewed-by: Andreas Aardal Hanssen
| * API review: Add convenience functions using QMarginsMarius Storm-Olsen2009-11-064-0/+45
| | | | | | | | | | | | | | We added the class QMargins, so we should use it wherever we deal with margins, as a convenience to the users. Reviewed-by: Andreas Aardal Hanssen
* | Merge commit 'origin/4.6' into 4.6Olivier Goffart2009-11-061-0/+2
|\ \ | | | | | | | | | | | | Conflicts: dist/changes-4.6.0
| * | Fix QT_NO_MENUBARJørgen Lind2009-11-061-0/+2
| |/ | | | | | | Reviewed-by: tom
* | Compile on MacOlivier Goffart2009-11-061-1/+1
| | | | | | | | Reviewed-by: Thierry
* | Merge commit 'origin/4.6' into 4.6Olivier Goffart2009-11-054-54/+63
|\ \ | |/
| * Merge commit '51c9b68' into 4.6Morten Johan Sørvig2009-11-043-53/+61
| |\ | | | | | | | | | | | | | | | Conflicts: dist/changes-4.6.0 src/gui/kernel/qevent.h
| | * Gesture api review.Denis Dzyubenko2009-11-031-4/+4
| | | | | | | | | | | | | | | | | | Changes to the gesture api after the review. Reviewed-by: Jasmin Blanchette
| | * Made native Pan gesture work on Windows.Denis Dzyubenko2009-11-033-53/+61
| | | | | | | | | | | | Reviewed-by: trustme
| * | Fixed an input method bug when erasing the last character.axis2009-11-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we didn't update the editor contents if the new preedit string was empty. However, it could be empty because the user just erased it, so the bug was fixed by checking whether the preedit string in the event and in the editor are different. RevBy: Denis Dzyubenko
* | | Fix crash in QMenu when using QWidgetActionOlivier Goffart2009-11-042-24/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the QWidgetAction is not the first in a menu, it crashed. This is because when the QEvent::ActionRemoved is sent, the event->before() is not set. We need to find another way to clean up the widgetItems list. This basically revert 4b6ab00e6d68c7 Reviewed-by: Thierry
* | | Merge commit 'origin/4.6' into 4.6Olivier Goffart2009-11-048-10/+28
|\ \ \ | |/ /
| * | Merge commit 'origin/4.6' into featureJørgen Lind2009-11-0214-74/+124
| |\ \
| * | | Fix QT_NO_MAINWINDOWJørgen Lind2009-10-291-0/+2
| | | | | | | | | | | | | | | | Reviewed-by: tom
| * | | FIX TABBARJørgen Lind2009-10-292-6/+16
| | | | | | | | | | | | | | | | Reviewed-by: tom
| * | | Fix LIBRARY and ICONJørgen Lind2009-10-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | However, compiling with QT_NO_ICON will still not work :( Reviewed-by: tom
| * | | Fix QT_NO_GROUPBOXJørgen Lind2009-10-292-2/+2
| | | | | | | | | | | | | | | | Reviewed-by: tom
| * | | Fix ValidatorJørgen Lind2009-10-291-0/+6
| | | | | | | | | | | | | | | | Reviewed-by: tom
* | | | Pressing return in a QWizard would erase the active password entry.Gabriel de Dietrich2009-11-031-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When echo mode was set to PasswordEchoOnEdit in a QLineEdit, and its text selected, pressing the return key would erase the text and start editing it instead of validating the password. Auto-test included. Reviewed-by: Olivier Task-number: QTBUG-4401
* | | | Make the combobox emit activated when it loses focusThierry Bastian2009-11-023-8/+32
| | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-1071 Reviewed-by: ogoffart
* | | | Merge origin/4.6 into team-widgets/4.6Olivier Goffart2009-11-023-6/+39
|\ \ \ \ | | |/ / | |/| |
| * | | Merge commit '8c4edbd04f350294462fd689748de2dd7cc84d47' into 4.6-upstreamBradley T. Hughes2009-10-303-6/+39
| |\ \ \ | | | |/ | | |/|
| | * | Fix tab widget painting in QGtkStyle with reverseJens Bache-Wiig2009-10-081-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also adds QStyleOptionTabWidgetFrameV2 so that we do not have to do ugly hacks in the style to obtain it. Task-number: QTBUG-5187 Reviewed-by: ogoffart
| | * | Tabs with corner widgets are drawn incorrectly in document mode on Mac.Prasanth Ullattil2009-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While drawing the tabbar frame, mac style needs the QTabBar pointer to calculate the correct size. Since the QTabWidget also uses the PE_FrameTabBarBase to draw background of the corner widgets, the mac style has to use position passed with the style option. This only works with horizontal tabs. Reviewed-by: Jens Bache-Wiig
| | * | Wrong font used when moving a tab in document mode.Prasanth Ullattil2009-10-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dragging is handled by a seperate window in document mode. The currently selected tabbar item is drawn to a pixmap for this purpose. That paintdevice was not initialized correctly. (e.g. font) Reviewed-by: Trond
| | * | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-platform-team into ↵Bradley T. Hughes2009-10-282-3/+25
| | |\ \ | | | |/ | | |/| | | | | 4.6-WM_NULL-driven
| | | * QTabbar is not behaving (painting) like native ones on Mac.Prasanth Ullattil2009-10-272-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a tab is clicked and mouse is moved outside that tab, it should be drawn as normal (not in sunken state). Reviewed-by: MortenS
* | | | Animations in mainwindow could sometimes misplace the tabbarThierry Bastian2009-10-302-8/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | We used to not start an animation of the current geometry was already set. The problem is that starting this animation might stop another animation. This has to happen. Otherwise subsequent calls to animate a widget might or might not be executed. Reviewed-by: ogoffart
* | | Fixes regression in QComboBox with keypad navigation while mouse is over the ↵Olivier Goffart2009-10-302-19/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | popup The problem is that is we move the selection with the keyboard in a way that causes the view to scroll, the current selection would jump. This happends since commit 9cb231d773db6deb that fixed the emission of the enter signal when the view is scrolled. We Therefor cannot use the enter signal. Catch manually the mouse move events to update the selection instead. Reviewed-by: Thierry
* | | Fix autotest for QMainWindowThierry Bastian2009-10-292-5/+8
| | |
* | | Merge commit origin/4.6 into team-widgets/4.6Olivier Goffart2009-10-292-34/+30
|\ \ \ | |/ /
| * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6axis2009-10-271-10/+10
| |\ \
| | * \ Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6axis2009-10-275-8/+5
| | |\ \ | | | |/
| | * | Fixed select softkey for comboboxes (QTBUG-4702).Janne Anttila2009-10-271-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The created keyed actions are passed to wrong widget if this pointer is passed insted of itemView. Also create softkey actions in setItemView method instead of constructor in order that custom items views are also working correctly. Task-number:: QTBUG-4702 AutoTest: All QComboBox tests passed Reviewed-by: Jason Barron
| * | | Implement support for wheel delta with finer resolution than 15 deg.Richard Moe Gustavsen2009-10-271-24/+20
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment, Qt, in many places, does not really understand that a mouse wheel, or touch pad, might operate on a much higher granularity than 15 degrees (that is, a delta of 120). This is clear disadvantage on mac, since the mighty mouse, and track pad, got a resolution that is close to 1 degree. This is called pixel scrolling. This patch first and formost changes the implementation of QAbstractSlider::wheelEvent to _really_ understand what to do when delta is less than 120. Rather than accumulate delta until 120 is reached, then scroll with a value equal to: offset * step * QApplication::wheelScrollLines (default = 3), we multiply offset directly, before waiting for 120. This means that event tough offset is below 120, multiplying it with wheelScrollLines and step will very often give a value over 120, menaing we can scroll much earlier and _much more_ fined grained. This also fixes some auto tests that was ifdeffed out because of specialised mac code written inside this function from before. (NB: we still plan to introduce a new event for pixel scrolling, perhaps for Qt-4.7) Rev-By: Andreas Rev-By: denis
* | | Allow to put the central widget in a QMainWindow after it was shownThierry Bastian2009-10-282-6/+9
| | | | | | | | | | | | Task-number: QTBUG-1171
* | | Double-clicking a dock widget titlebar could make it disappearThierry Bastian2009-10-281-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | If it wasn't already docked on a mainwindow, its state would become unexpected. Task-number: QTBUG-945 Reviewed-by: gabi
* | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6Jan-Arve Sæther2009-10-281-2/+15
|\ \ \
| * | | QSplitter would not show previously collapsed widgets.Gabriel de Dietrich2009-10-281-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After deleting or hiding the last non collapsed item in a QSplitter, none would be visible. We now check wether there is any non-hidden, collapsed widget, and set it to non-collapsed. Auto-test included. Task-number: QTBUG-4101 Reviewed-by: Olivier
* | | | Merge branch 'fixes' of ↵Jan-Arve Sæther2009-10-286-9/+6
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | git://gitorious.org/~fleury/qt/fleury-openbossa-clone into openbossa-fleury-fixes3 Conflicts: src/gui/graphicsview/qgraphicsanchorlayout_p.cpp src/gui/graphicsview/qgraphicsanchorlayout_p.h
| * | Line spacing fixesJoerg Bornemann2009-10-235-8/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QTextEdit (via QTextLayout) and QPlainTextEdit in Qt used to ignore any font leading but added one extra pixel in QFontMetrics. With many freetype fonts, this resulted in a "spacy" text layout. The necessary fixes on X11 and Windows were to take (positive) leading into account, to make the font database convert point sizes to pixel sizes without rounding to plain integer values, and to subtract the extra pixel from QFontMetrics from the font engines' descent value. The change also fixes several places in styles and widgets, where QFontMetrics::lineSpacing() was wrongly used instead of QFontMetrics::height(). Ideally we should also handle negative leading, which would require additional and bigger code changes in QTextLayout and QPlainTextEdit. In addition, all other editors we have tested seem to ignore leading on X11. If we choose to believe the values provided by freetype, our text layout would be one pixel smaller than everybody else's. On the Mac, this change does nothing. There our layout is still too spacy, and for smaller fonts quite ugly compared to native Mac applications. Done with mae. Reviewed-by: mae
| * QTextEdit: Fix the wrong order for call of Qt::WA_InputMethodEnabled in ↵Liang QI2009-10-221-1/+1
| | | | | | | | | | | | | | | | | | setReadOnly. Should set Qt::WA_InputMethodEnabled after set the flags, just because shouldEnableInputMethod() will read the flags. Task-number: QTBUG-4917 Reviewed-by: Shane Kearns
* | QToolBar has now a topLevelChanged signal like in QDockWidgetThierry Bastian2009-10-272-0/+17
| | | | | | | | | | Task-number: QTBUG-4169 Reviewed-by: ogoffart
* | QComboBox did not emit currentItemChanged when the model was resetThierry Bastian2009-10-273-20/+13
| | | | | | | | | | Task-number: QTBUG-569 Reviewed-by: ogoffart