summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* QMenuBar does not respect the border-image stylesheet propertyGabriel de Dietrich2009-08-111-1/+16
| | | | | | | | | | | Added WA_StyledBackground to QMenuBar when using style sheets. This also implies that CE_PanelMenuBar (drawing only the menubar border) no longer needs to be drawn. Tested in uiloader/baselne/css_borderimage_allwidgets.ui. Task-number: 230363 Reviewed-by: olivier
* Optimize qt_format_text test operations: try not to detachOswald Buddenhagen2009-08-111-40/+28
| | | | Reviewed-by: Oswald Buddenhagen
* Change QFontMetrics::width to return the width of the longest variant if the ↵Olivier Goffart2009-08-111-2/+4
| | | | | | | string is a multi-length one Task-number: QT-10 Reviewed-by: Oswald Buddenhagen
* Make QFontMetrics::elidedText aware of multi-length stringsOlivier Goffart2009-08-111-2/+15
| | | | | Reviewed-by: Oswald Buddenhagen Task-number: QT-10
* Add the Qt::TextLongestVariant flag so QFontMetrics::size returns the size ↵Olivier Goffart2009-08-112-2/+3
| | | | | | | | | of the biggest string In case the strings contains multiple strings separated by \x9c Reviewed-by: Oswald Buddenhagen Task-number: QT-10
* Handle multi-length strings in the low-level formatting codeOlivier Goffart2009-08-111-13/+21
| | | | | | | | | | | Patch originally from Oswald on Jira QT-10, with few a modifications. If a string contains multiple variants sorted by decreasing length, separated by \x9c, it will try to paint the longest variant which fits into the bounding box. Reviewed-by: Oswald Buddenhagen Task-Number: QT-10
* fix QTextFormat::doubleProperty where qreal is floatJoerg Bornemann2009-08-111-3/+4
| | | | | | | | This function was too strict. It returned 0 if the property wasn't of type QVariant::Double. Now it tests for QMetaType::Float too. Reviewed-by: kh1 Reviewed-by: mauricek
* fix warnings for the qreal == float caseJoerg Bornemann2009-08-112-11/+11
| | | | Reviewed-by: mauricek
* QWidget::isHidden documentation clarification.Jocelyn Turcotte2009-08-111-3/+6
| | | | Reviewed-by: Kavindra
* QDateTimeEdit: setFrame property is respected when a popup calendarMatthew Cattell2009-08-111-0/+1
| | | | | | | | | | has been set. The hasFrame() or frame property of the QStyleOptionSpinBox was not being copiedthrough to the QStyleOptionComboBox inside the paintEvent method if a calendarPopup had been enabled. Task-number:259510 Reviewed-by:Jens Bache-Wiig
* Merge commit 'remotes/wm65/wm65'Thomas Hartmann2009-08-113-368/+4127
|\
| * Cleanup of Windows Mobile StyleThomas Hartmann2009-08-111-76/+61
| | | | | | | | Reviewed-by: Maurice
| * activate wm65 style only for wm65Thomas Hartmann2009-08-111-1/+1
| |
| * adding qt_wince_is_windows_mobile_65()Thomas Hartmann2009-08-111-0/+25
| |
| * using proxy()Thomas Hartmann2009-08-111-103/+103
| |
| * Adding Windows Mobile 6.5 styleThomas Hartmann2009-08-112-271/+4020
| |
* | Merge commit 'remotes/wm65/wm65'Thomas Hartmann2009-08-111-0/+1
|\ \ | |/ | | | | | | Conflicts: src/gui/dialogs/qfiledialog_win.cpp
| * Fixes build for Windows MobileThomas Hartmann2009-07-201-1/+0
| | | | | | | | Reviewed-by: Joerg
* | Merge branch '4.5'Thiago Macieira2009-08-111-6/+7
|\ \ | | | | | | | | | | | | | | | Conflicts: configure tests/auto/moc/tst_moc.cpp
| * | Fix crash in QX11Data::xdndHandleEnter when XGetWindowProperty failsOctavian Voicu2009-08-061-6/+7
| | | | | | | | | | | | | | | | | | | | | Task-number: 259143 Merge-request: 1119 Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
* | | QTableView with swapped headers PageUp/PageDown bugGabriel de Dietrich2009-08-111-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | QTableView with header-swapped rows wouldn't scroll correctly when PageUp or PageDown pressed. Simplified calculation for next currentIndex provided in QTableView::moveCursor. Task-number: 259308 Reviewed-by: olivier
* | | Compile QtGui on Linux with no Gtk development package present.Friedemann Kleint2009-08-111-0/+4
| | |
* | | compile fix for Win32Maurice Kalinowski2009-08-111-1/+1
| | | | | | | | | | | | | | | | | | use correct function pointer (Get) Reviewed-by: Thomas Hartmann
* | | Make compile.Bill King2009-08-112-0/+2
| | |
* | | Doc: Fix links and qdoc warnings.Volker Hilsheimer2009-08-101-3/+3
| | |
* | | Better implementation for commit d13418effc5f00474541ae513a30c9a42c2a1cb3. TheGabriel de Dietrich2009-08-102-26/+36
| | | | | | | | | | | | | | | | | | previous version could run in an endless loop with infinite models. Reviewed-by: olivier
* | | fixing the Windows CE build after adding gesture supportJoerg Bornemann2009-08-101-4/+11
| | | | | | | | | | | | | | | | | | We must guard the code with QT_WINCE_GESTURES. Reviewed-by: TrustMe
* | | Make QGtkStyle react properly to font changes in GNOMEJens Bache-Wiig2009-08-103-18/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | We only reacted to font changes before when the whole theme changed. Two things had to be fixed to support this. We need to check if the font changed in QGtkStyle::updateTheme and we need to make sure that QApplication does not reset these settings for us. Reviewed-by: joao
* | | Introducing icon theme supportJens Bache-Wiig2009-08-1016-1253/+1370
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added some static functions to QIcon to support desktop themes based on the freedesktop spec. It is not intended to replace KIcon and the intention is to use it when available to share icon cache between applications. Applications currently using icon themes are Assistant, Designer and the textedit demo. Reviewed-by: ogoffart
* | | Manual mergeThomas Hartmann2009-08-101-3/+1
| | |
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtThomas Hartmann2009-08-103-2/+10
|\ \ \
| * | | respect QAbstractSpinBox::NoButtons in windowsce / windowsmobile stylesJoerg Bornemann2009-08-102-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Code is adapted from QCommonStyle which handles this case for other styles. Reviewed-by: thartman
| * | | Make chooseConfig work on some EGL implementationsHarald Fernengel2009-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the spec, if we pass a 0 out pointer, EGL should tell us how many configurations are available. However, we pass a 0 out pointer, but say that it's 256 elements big, it confuses some implementations. Fix that by passing a 0 out pointer and saying that it has space for 0 elements. Now we correctly get the amount of available configs. Reviewed-by: Rhys Weatherley <rhys.weatherley@nokia.com>
* | | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtThomas Hartmann2009-08-1030-483/+942
|\ \ \ \ | |/ / / | | | | | | | | | | | | Conflicts: src/gui/kernel/qapplication_win.cpp
| * | | Fixed a possible problem when unplugging a QToolBarThierry Bastian2009-08-101-1/+1
| | | | | | | | | | | | | | | | The 'break' statement was misplaced... This was found thanks to coverity
| * | | Compile fix on Linux.hjk2009-08-103-16/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: brad The declaration of getQApplicationPrivateInternal was only available as 'friend' on Q_WS_WIN.
| * | | Doc: Fix qdoc warningsVolker Hilsheimer2009-08-101-1/+1
| | | |
| * | | Removed unused member in QApplicationPrivateBradley T. Hughes2009-08-101-1/+0
| | | | | | | | | | | | | | | | The appAllTouchPoints variable isn't used on Windows, remove it.
| * | | Compile fix with namespaceshjk2009-08-102-0/+7
| | | |
| * | | Implemented QPinchGesture.Denis Dzyubenko2009-08-107-27/+316
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new standard gesture, which is implemented using a native zoom and rotate gestures on Windows and with a direct touch event handling on other platforms. Improved pan support - we subscribe to native pan gesture only when it's really needed, and we pass proper flags for single finger horizontal/vertical panning. Reviewed-by: Richard Moe Gustavsen
| * | | Made the QGesture::reset function protected.Denis Dzyubenko2009-08-102-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | By default the QGesture::reset function is protected, and it can be made public in the derived class if necessary. Reviewed-by: trustme
| * | | Fix default QWidget size on X servers with XineramaBradley T. Hughes2009-08-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The default widget size is normally calculated from the root window size, but when running on an X server with Xinerama enabled, the root window spans all screens, making the widget far to large. Use the default screen's size instead to give the widget a size that should fit on a single screen.
| * | | Emit axisChanged() when the QGraphicsRotation3D axis changes.Rhys Weatherley2009-08-101-0/+3
| | | | | | | | | | | | | | | | Reviewed-by: Aaron Kennedy
| * | | Set default QGraphicsTransform3D axis to (0, 0, 1)Rhys Weatherley2009-08-101-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The docs said that the default axis was (0, 0, 1), but the code and unit tests were using (0, 0, 0). Modify the code to match the docs because (0, 0, 0) is not very useful. Also optimize the calculation of sin/cos values for 90, 180, and 270 degrees. Reviewed-by: Aaron Kennedy
| * | | QItemSelectionModel did not send selectionChanged signal when deleting an itemGabriel de Dietrich2009-08-072-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in a tree-like model with one of its grand-children being selected. Added recursive deselection for the model. Task-number: 232634 Reviewed-by: thierry
| * | | Fix compiler error on GCC 4.2.0 mips/sh3Anders Bakken2009-08-071-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this patch gcc would fail with this message: internal compiler error: in add_virtual_operand, at tree-ssa-operands.c:1317 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@nokia.com>
| * | | Don't crash if we are drawing an empty image.Jan-Arve Sæther2009-08-071-0/+3
| | | | | | | | | | | | | | | | Reviewed-by: gunnar
| * | | Doc - Removing trailing whitespacesKavindra Devi Palaraja2009-08-071-7/+7
| | | | | | | | | | | | | | | | Reviewed-By: TrustMe
| * | | Doc - Improving the documentation for QListWidget and QListWidgetItemKavindra Devi Palaraja2009-08-071-218/+228
| | | | | | | | | | | | | | | | Reviewed-By: TrustMe
| * | | Refactor the code that reads the KDE config in one fileOlivier Goffart2009-08-077-189/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the code out of qapplication_x11.cpp, and qcommonstyle.cpp to qkde.cpp into the QKde namespace. This removes few of the code duplication, and is much cleaner. This will also let us install hook easily later. Reviewed-by: Jens Bache-Wiig