summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
Commit message (Collapse)AuthorAgeFilesLines
* Compile on embeddedOlivier Goffart2009-07-222-2/+2
|
* Support for very large range in QProgressBarOlivier Goffart2009-07-223-7/+6
| | | | | | Regression since my last commit. Task-number: 152227
* Simplify the computation of the QProgressBar progress.Olivier Goffart2009-07-222-6/+5
| | | | | | | This is also a work around for a bug in gcc on powerpc (embedded-linux) Task-number: 258358 Reviewed-by: jbache
* 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>
* Merge commit 'origin/4.5'Oswald Buddenhagen2009-07-201-2/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * 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
* | optimize painting of dithered disabled textOswald Buddenhagen2009-07-171-2/+3
| | | | | | | | | | | | no need to calculate the bounding rect twice Reviewed-by: jbache
* | Add priority property to QActionJens Bache-Wiig2009-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* | Move QMacStyle icon handling down to the common style.Norwegian Rock Cat2009-07-172-124/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-171-3/+11
| | | | | | | | | | | | | | It was not visible wicause its height was 0 Task-number: 257481 Reviewed-by: mbm
* | Allow picking up tool button style from the systemJens Bache-Wiig2009-07-166-3/+79
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | fix build on linuxThierry Bastian2009-07-151-11/+1
| |
* | Compile fix.Denis Dzyubenko2009-07-151-0/+1
| | | | | | | | Include the qstylehelper header file since the macro uses it.
* | Fix warnings for mingwThierry Bastian2009-07-156-43/+40
| | | | | | | | | | did a small refactor and used QStyleHelper::uniqueName in plastique and windows styles
* | Bad drawing of styled viewports within QAbstractScrollAreaOlivier Goffart2009-07-151-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch includes lots of refactoring, but the real problem was that in QWidgetPrivate::paintBackground we call drawPrimitive(PE_Widget) with a potentialy translated painter, but the opt.rect is not translated. When having a scroll area the calling function used to translated the painter and then pass the offset around to rectify. but drawPrimitive cannot rectify it. The solution is not to translate the painter but use other way to rectify the brush Task-number: 257517 Reviewed-by: bnilsen
* | Fix painting of the background of QAbstractItemView, QTextEdit and coOlivier Goffart2009-07-151-1/+1
| | | | | | | | when only setting a border with the stylesheet
* | Fix font propagation issues with QComboBox and the popup menu.Norwegian Rock Cat2009-07-132-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | src/gui: Remove QT_WA and non-Unicode code paths, dropping Win9x and NT supportminiak2009-07-013-87/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | Also - Make winPeekMessage() & winPostMessage() obsolete - FlashWindowEx, IsValidLanguageGroup functions no longer resolved dynamically (available on >= Windows 2000) - LoadIcon/LoadCursor -> LoadImage w/LR_SHARED for system icons/cursors - qsystemtrayicon_win: use Shell_NotifyIconGetRect if available (Windows 7) Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* | doc: Fixed several qdoc error reports.Martin Smith2009-07-011-66/+61
| | | | | | | | | | Also changed qdoc not to warn about undocumented parameters if the function is marked with the \reimp command.
* | Merge branch '4.5'Marius Storm-Olsen2009-06-301-2/+1
|\ \ | |/
| * Fix coverity warningJens Bache-Wiig2009-06-291-2/+1
| | | | | | | | | | | | | | | | Coverity was complaining because we were not checking the return value of find() but instead using the pixmap handle to check the result. This makes the call more consistent Reviewed-by: mgoetz
* | Fix some coverity warningsThierry Bastian2009-06-291-1/+2
| |
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-266-76/+151
|\ \
| * | Improved support for DPI on Mac and Vista/7Jens Bache-Wiig2009-06-256-75/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This significantly improves the support for higher DPI-values on these platforms by ensuring that common pixelmetrics are scaled accordingly. In addition we mark all Qt apps as DPI-aware on Windows 7 by calling SetProcessDPIAware. We also changed the way we draw pixmaps on the mac paintengine when using dpi scaling > 1 to ensure smooth pixmap scaling. Reviewed-by: nrc Task-id: 242417
| * | QToolBar: fixed a typo that would make the handle wider.Thierry Bastian2009-06-251-1/+1
| | |
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-246-1821/+168
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/kernel/qapplication_x11.cpp
| * | Kill the drawPantherTab stuff as it's no longer necessary.Norwegian Rock Cat2009-06-242-1576/+22
| | | | | | | | | | | | | | | | | | We now can draw the tab ourselves and use the QStyleHelper to get the drawing correct, so do it all that way. This should also slim the library a little as we also remove all these old pixmaps.
| * | Fix the painting of item view background when items are disabled.Marius Bugge Monsen2009-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | | Change QTableView to use the style to draw the background. Change QCommonStyle to draw the background correctly when the item is disabled. Task-number: 250682 Reviewed-by: Jens Bache-Wiig
| * | Remove some more old Panther code.Norwegian Rock Cat2009-06-241-111/+79
| | | | | | | | | | | | I still can't kill drawPantherTabs, but that is close.
| * | Put back in these status bar changes for 10.4Norwegian Rock Cat2009-06-231-0/+4
| | | | | | | | | | | | | | | | | | I was a bit overzelous removing them, but they should remain for 10.4 Reviewed-by: Morten Sørvig
| * | Reduced button height in standard dialogs on WindowsXP/VistaJens Bache-Wiig2009-06-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is somewhat related to task 254526. The height of buttons on Vista/XP is a few pixels too tall in standard dialogs because they incorrectly reserve space for a default frame which is not used in these styles. Reviewed-by: prasanth
| * | More culling of Panther Code.Norwegian Rock Cat2009-06-231-145/+68
| | | | | | | | | | | | | | | | | | Removed lots of places where we check for Tiger. Now we can assume it. Reviewed-by: Morten Sørvig
| * | Clean up the font hash and palette hash stuff.Norwegian Rock Cat2009-06-232-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | These are used enough (at least on the mac) to justify them being accessible in a private header. As a bonus it "hides" the actual container being used, so we could potentially sway it out with something different. Reviewed by: Jens Bache-Wiig
| * | Fix option rect offset for QComboBox on Vista styleJens Bache-Wiig2009-06-231-2/+3
| | | | | | | | | | | | | | | Task-number: 254805 Reviewed-by: prasanth
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-224-8/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | Conflicts: doc/src/qnamespace.qdoc src/corelib/global/qnamespace.h src/gui/graphicsview/qgraphicsscene.cpp
| * | Use QTransform more efficiently.Bjørn Erik Nilsen2009-06-184-8/+4
| | | | | | | | | | | | Reviewed-by: Samuel
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-1755-128/+125
|\ \ \ | |/ / | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsscene_p.h
| * | doc: Fixed several qdoc warnings.Martin Smith2009-06-171-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | All the qdoc errors are fixed in QStringBuilder, but because the class is a template class and uses strange templates, qdoc gets very confused, and the resulting documentation for QStringBuilder is not complete and accurate. To fix this correctly will require changes to the qdoc program.
| * | Update license headers in files that are new in 4.6.Jason McDonald2009-06-175-10/+10
| | | | | | | | | | | | Reviewed-by: Trust Me
| * | Merge license header changes from 4.5Volker Hilsheimer2009-06-1650-109/+106
| |\ \ | | |/
| | * Update license headers as requested by the marketing department.Jason McDonald2009-06-1650-100/+100
| | | | | | | | | | | | Reviewed-by: Trust Me
| | * Improved styling of expander arrows with Gtk+Jens Bache-Wiig2009-06-161-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current implementation was based on the GtkExpander widget. However we do not have such a widget and the primary use case is for expanders inside item views. Hence it makes sense to base it on gtktreeview instead. As I can not reproduce the crash with any recent versions of cleanice I will remove the workaround as well. omment and edit as applicable ]---| Task-number: 256146 Reviewed-by: Thorbjørn
* | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-162-57/+119
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/qnamespace.qdoc doc/src/snippets/code/src_gui_qproxystyle.cpp src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebKit/qt/ChangeLog src/gui/graphicsview/qgraphicsscene.cpp src/gui/kernel/qapplication.cpp src/gui/kernel/qapplication_x11.cpp src/gui/kernel/qt_x11_p.h src/gui/kernel/qwidget.cpp src/gui/styles/qproxystyle.cpp src/gui/styles/qstyle.cpp src/scripttools/debugging/qscriptdebugger.cpp src/scripttools/debugging/qscriptenginedebugger.cpp src/sql/drivers/odbc/qsql_odbc.cpp src/sql/kernel/qsqldatabase.cpp src/sql/kernel/qsqldriver.cpp
| * | doc: Added info on two ways to customize the style.Martin Smith2009-06-162-10/+19
| | |
| * | doc: Fixed several qdoc errors.Martin Smith2009-06-161-5/+8
| | |
| * | doc: First review of QProxyStyle doc; mainly just corrected qdoc errors.Martin Smith2009-06-152-47/+97
| | |
| * | CompileJens Bache-Wiig2009-06-123-0/+559
| | | | | | | | | | | | | | | | | | Adding missing files for proxy style after commit 4d0cc0b9600f8530bb0e8712b4bb109d1810c4a7 Reviewed-by: trust me
| * | Integrating QProxyStyleJens Bache-Wiig2009-06-1213-737/+784
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This class adds convenient support for proxy styles in Qt. Note that to support proper proxying, styles now call their functions through proxy() so that the proxy regains control over subcomponents. Note that there is a small price to be payed by the extra function call which can at the cost of readability be redirected to the private class member in the future. Task-number: 229556 Reviewed-by: trond
| * | Merge commit 'origin/4.5'Bjørn Erik Nilsen2009-06-121-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: demos/boxes/glshaders.cpp src/gui/graphicsview/qgraphicsitem.cpp tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp tools/linguist/shared/cpp.cpp translations/linguist_ja.qm translations/qt_ru.qm