summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* Use templates to remove code duplication in qdrawhelper.Olivier Goffart2009-04-011-286/+141
| | | | Reviewed-by: Samuel
* Give input context focus only when widget is enabled.Denis Dzyubenko2009-04-013-5/+17
| | | | | | | When disabling a widget that accepts keyboard input we disable input context by calling QInputContext::setFocusWidget(0). Reviewed-by: Prasanth Ullattil
* Improved IME handling on Windows.Denis Dzyubenko2009-04-016-21/+21
| | | | | | | | | | | | QWizard sets focus on a widget when switching to a page before the widget becomes visible, which caused problems with our ime handling which didn't enable ime correctly. The fix is to refactor the code to enable ime handling whenever someone tells input context to set focus by calling QInputContext::setFocusWidget instead of relying on FocusIn/Out events and duplicating updateImeStatus calls all over Qt.. Task-number: 244604 Reviewed-by: Prasanth Ullattil
* Add a semi-colon.Norwegian Rock Cat2009-04-011-1/+1
| | | | Grr... I know it was there before I committed it.
* Add more enums for the search fields.Norwegian Rock Cat2009-03-311-0/+7
| | | | | | | Again these aren't adding symbols, but these enums are available on earlier versions of Mac OS X (10.3) and we can use them. However, it's silly to have to go back to 10.6 just to find the enums. These will come in handy shortly.
* Update the license on this code to match the rest.Thiago Macieira2009-03-3117-17/+527
| | | | | | These sources had the old headers. Update to the new LGPL ones. Reviewed-by: TrustMe
* Allow setting font properties for Command Link ButtonsJens Bache-Wiig2009-03-301-3/+6
| | | | | | | | | Command link buttons use special fonts for labels and description. So when you set this property in designer the point size property is ignored. We now allow you to override these properties. Task-number:232466 Reviewed-by:Prasanth Ullattil
* Consistency between Carbon and Cocoa with fullscreen mode.Norwegian Rock Cat2009-03-302-20/+5
| | | | | | | | | | | | | | On Carbon, we did show/hide menubar, on Cocoa we used SetSystemUIMode. But SetSystemUIMode is available to both, so why not just do that and make everything consistent. We now act more like other fullscreen apps (i.e., we show the menu and dock when the mouse is close to them). The good thing is that it should be easier to override this behavior as well. I also removed some code in our mouse handler where we were calling HideMenuBar as I don't see a great reason for it at the moment in any case, it would be inconsistent between Carbon and Cocoa. Task-number: 249655 Reviewed-by: Prasanth Ullattil
* Call documented API.Norwegian Rock Cat2009-03-301-11/+2
| | | | | | | | | We were using the older CGSSetWindowAlpha function, which really is not well advertised. Instead, Apple eventually added SetWindowAlpha, but we neglected to update. May as well do that now skip the wrath of a change in the private API. Task-number: 244629
* Fix incorrect painting of checked itemview itemsJens Bache-Wiig2009-03-301-1/+1
| | | | | | | | | We should check the item features instead of looking for a valid rect as a subclass trying to override the default checkrect size might not perform this check. Task-number: 232633 Reviewed-by: nrc
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-03-3010-13/+61
|\
| * Fix threaded QImage text drawing under Windows.Trond Kjernaasen2009-03-301-1/+3
| | | | | | | | | | | | | | | | qt_win_display() will always trigger an assert and should not be used in the src/painting directory. Task-number: 248266 Reviewed-by: Samuel Rødal <sroedal@trolltech.com>
| * Don't send QFileOpenEvents for items on the command-lineNorwegian Rock Cat2009-03-302-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cocoa actually has a nice feature that if you pass arguments on the command-line, Cocoa will pass those along as Open events later. This is probably how we should have handled things inside of Qt as it would have unified the file opening code. Unfortunately, we can't turn back time on this, so we need to prevent it because people probably aren't expecting it (i.e., they expect to do the parsing themselves, and not to get events later). This also means that we can send the event immediately instead of posting it, because the race that we had before no longer exists. We only do this check during launch time because that's the only time we may get bitten by it (people usually only parse the arguments once). Someday, people may actually WANT this functionality though. When that comes along, we should make it an application attribute. Task-number: 249553 Reviewed-by: Richard Moe Gustavsen
| * Adjust the opacity value for popupsNorwegian Rock Cat2009-03-301-1/+1
| | | | | | | | | | | | | | | | | | Seems that things are a little less transparent in 10.5 (and have a blur). Getting the blur in is going to be difficult, but adjusting the opacity will get us closer than we are now. Task-number: 249364 Reviewed-by: Jens Bache-Wiig
| * Fix draImage() calls for threaded printing to a PostScript printer.Trond Kjernaasen2009-03-304-5/+35
| | | | | | | | | | | | | | | | QPicture didn't have an implementation for drawImage(). All images were converted to QPixmaps before they were drawn. Task-number: 249322 Reviewed-by: Gunnar Sletta
| * Fix missing fills of rects with negative width/height in raster engine.Samuel Rødal2009-03-301-1/+1
| | | | | | | | | | | | | | Call isEmpty() on the normalized rect instead of the original rect. Task-number: 247505 Reviewed-by:
| * Revert "don't include uic in non-gui configurations"Rohan McGovern2009-03-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7d2c8eb99c563b4fb236fe538123255f52f293a2. This commit was not reviewed and breaks compile of QtNetwork on win32 with this error... src\network\kernel\qauthenticator.cpp(55) : fatal error C1083: Cannot open include file: '../3rdparty/des/des.cpp': No such file or directory ... because the generated Makefile no longer contains src/network as an include path.
* | Allow styling of pressed splitterOlivier Goffart2009-03-302-6/+15
| | | | | | | | | | Task-number: 206494 Reviewed-by: Jens Bache-Wiig
* | Remove all call in itemviews to set/updateDirtyRegionThierry Bastian2009-03-305-29/+24
| | | | | | | | | | | | | | Now we directly call viewport->update Task-number: 248850 Reviewed-by: ogoffart
* | Add SC_CustombaseJens Bache-Wiig2009-03-301-0/+1
| | | | | | | | | | | | | | | | | | This is needed for customers to know where it's safe to add their own members. It basically follows the same pattern as other extendible style enums. Task-number: 244557 Reviewed-by: nrc
* | Make LCD segments filled by defaultJens Bache-Wiig2009-03-301-4/+8
| | | | | | | | | | | | | | | | | | | | This changes the LCD segments to filled by default to make them more readable. It also enables antialiasing for the rendering. The change might be somewhat controversial but since the segments are hardly readable in many styles while using Outline it does not make sense as a default. Reviewed-by: nrc
* | Removed warnings by using qreal instead of floatThierry Bastian2009-03-301-7/+7
| | | | | | | | Reviewed-by: ogoffart
* | Fixed a compile issue on WindowsJens Bache-Wiig2009-03-301-1/+1
| |
* | Provide a previousInFocusChain for consistancyOlivier Goffart2009-03-302-0/+15
| | | | | | | | | | Task-number: 201649 Reviewed-by: Thierry
* | Merge branch '4.5'Thiago Macieira2009-03-279-32/+76
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: tools/linguist/lupdate/qscript.cpp tools/linguist/lupdate/qscript.g tools/linguist/lupdate/ui.cpp tools/linguist/shared/cpp.cpp tools/linguist/shared/qph.cpp tools/linguist/shared/translator.h
| * QDesktopWidget::resized wasn't emitted properly on X11.Denis Dzyubenko2009-03-271-6/+15
| | | | | | | | | | | | | | | | | | | | When the size of one of the screen changes but the geometry of the whole desktop hasn't been changed the resized() signal wasn't emitted. The patch by Lubos Lunak also adds emitting of a signal whenever the screen is turned on or off. Task-number: 226048 Reviewed-by: Brad
| * Fix background of QAbstractScrollArea when styled only with pseudo-classOlivier Goffart2009-03-271-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This may happen if you only have something like QAbstractScrollArea:focus { background: foo; } and you do not have a background set for the general case and the viewport has a different background role (such as QTextEdit, QAbstractItemView, ....) This is a regression from 4.4 since in 4.4 the :focus has no effect if you didn't have a background for the general case. Reviewed-by: bnilsen Task-number: 188195
| * Fix very slow stroking of paths in X11 paint engine.Samuel Rødal2009-03-274-14/+24
| | | | | | | | | | | | | | | | Use QStroker::setRect() to avoid dashing parts of the path that are outside the device rect. Task-number: 246573 Reviewed-by: Trond
| * Fix mismatch between stroke and fill of ellipses on X11.Samuel Rødal2009-03-271-7/+3
| | | | | | | | | | | | | | | | | | | | When drawing ellipse without stroke we need to use the same width/height for the fill as we would use for the stroke for the stroke and fill to match. Filling first and then stroking should produce the same result as filling and stroking in one go. Task-number: 249490 Reviewed-by: Trond
| * Fix QPixmap::fromImage() bug for monochrome images on Mac.Samuel Rødal2009-03-271-1/+1
| | | | | | | | | | | | | | | | Monochrome images should be converted to black and white, not transparent and white. Reported on qt-interest. Task-number: 249175 Reviewed-by: Trond
| * don't include uic in non-gui configurationsOswald Buddenhagen2009-03-271-0/+1
| | | | | | | | | | | | | | | | | | uic is set in default_pre. this leads to useless -I compiler flags when no ui files are used in fact, so it would be nice to get rid of it in cases where it is not used. for backwards compat, don't remove it from the _pre, but add some magic to _post to remove it again if QT does not contain gui. of course, we need a force_uic CONFIG to enable an exception for QtGui itself ...
| * Creating a native window handle doesn't reset input context on X11.Denis Dzyubenko2009-03-271-1/+10
| | | | | | | | | | | | | | | | When the current focus widget enforces the creation of the native window handle we should reset the input context. Task-number: 249578 Reviewed-by: Brad
| * Creating an instance of the QDesktopWidget breaks clipboard on X11.Denis Dzyubenko2009-03-271-2/+9
| | | | | | | | | | | | | | | | | | | | | | On X11 when user manually creates a QDesktopWidget object it breaks notifications from the root window since we have several QDesktopWidgets that have the same native window id and the wid->qwidget mapper (QWidgetPrivate::mapper) goes crazy. So whenever we get x11 event from the root window we cannot find a qwidget that corresponds to the window id and discard these events. Reviewed-by: Brad
* | Style QDial to look betterJens Bache-Wiig2009-03-279-110/+377
| | | | | | | | | | | | | | | | | | | | This widget has been needing an update in appearance for years as it is still featured in our style gallery. This introduces a new and better looking nob control to cleanlooks, gtk, mac, windows xp, vista and cleanlooks. Reviewed-by: nrc Task-number: 159934
* | Clear QLineEdit selection when redoing a delete operation.jasplin2009-03-271-0/+2
| | | | | | | | | | | | | | | | Deleting text in a QLineEdit should never leave a non-empty selection. This is now reflected properly in the redo function. Reviewed-by: janarve Task-number: 248948
* | Merge branch '4.5' of git@scm.dev.troll.no:qt/qtSimon Hausmann2009-03-265-2/+129
|\ \ | |/
| * Squashed commit of the following:David Boddie2009-03-261-0/+2
| | | | | | | | | | | | | | | | | | | | commit b1220858d9c15b661b7825e733be448ea9962895 Author: David Boddie <dboddie@trolltech.com> Date: Thu Mar 26 18:37:47 2009 +0100 Doc: Added information about the default value of QGraphicsTextItem::tabChangesFocus(). Reviewed-by: TrustMe
| * Squashed commit of the following:David Boddie2009-03-261-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 20864878d046b2ce6bf5fc54868be8df346ce0c8 Author: David Boddie <dboddie@trolltech.com> Date: Thu Mar 26 18:30:32 2009 +0100 Doc: Fixed qdoc warning by adding more descriptive text. Reviewed-by: TrustMe commit 3b620a0a4d1b02105c9761384a5abc4ecf11e9d2 Author: David Boddie <dboddie@trolltech.com> Date: Thu Mar 26 18:29:56 2009 +0100 Doc: Added macros for future use. Reviewed-by: TrustMe
| * Fix a bug where lineedits in a second page of a stack widget would not get ↵Norwegian Rock Cat2009-03-263-1/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | key events. We need to be more explicit in setting the first responder, and a bit more agressing about rejecting it when called with no responder. It seems that Cocoa has a tendency to reset the first responder when lots of widgets get hidden or shown. During this it will call "makeFirstResponder" on the window with a nil responder. Doing this will reset our what Cocoa thinks is the focus widget, but Qt will still show a focus widget. The way to solve it is to reject the make first responder if the responder is nil. I'm not sure if there will be far reaching implications for this, but it seems to be doing the right thing at the moment. We also need to share this code between QCocoaWindow and QCocoaPanel. Thanks to the dynamic nature of objective-C we have to have a copy of the code in both places. It's unfortunate. Finally, it's also important to have the QWidget let Cocoa know it has focus after it has been created. So, make sure that is in sync. Task-number: 249296 Reviewed-by: Prasanth Ullattil
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-03-268-17/+36
|\ \ | |/
| * Fix crash when accessing newly constructed QTextObjects.Benjamin Poulain2009-03-267-10/+26
| | | | | | | | | | | | | | | | | | The pieceTable member was only initialized by QTextDocumentPrivate _after_ the call to createObject. This patch initializes it at construction time. Task-number: 246138 Reviewed-by: Simon Hausmann
| * Fix regression where QMacStyle would only draw tabs w/QStyleOptionTabV3.Norwegian Rock Cat2009-03-261-7/+10
| | | | | | | | | | | | | | | | | | This is a good example of how to not use QStyleOption when added new features. It's important to start with the most compatible and then cast to the more specific versions to get the new fields. Task-number: 248769 Reviewed-by: Jens Bache-Wiig
* | Merge branch '4.5'Rohan McGovern2009-03-262-1/+66
|\ \ | |/ | | | | | | Conflicts: tests/auto/selftests/tst_selftests.cpp
| * alphaMask needs to be const, because first bytesPerLine() is called and then ↵Alessandro Portale2009-03-251-1/+1
| | | | | | | | bits(). The non-const bits() may detach and realign the data, so that the previous result of bytesPerLine() ist invalid. On S60, we actually had a 'skew' effect because of that.
| * QGtkStyle: Support styled QFrameJens Bache-Wiig2009-03-251-0/+65
| | | | | | | | | | | | | | | | | | | | This makes QGtkStyle style QFrame. In order to avoid negatively affecting the performance we cheat by using a border image without the center part filled. GtkScrolledWindow style is used as QFrame is generally mapped to item views. 249363 ogoffart
* | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-03-258-1010/+974
|\ \ | |/
| * Fix layout problem in QMainWindowThierry Bastian2009-03-251-4/+8
| | | | | | | | | | | | | | | | | | QDockWidget's minimum title width was not computed correctly and was thus provoking some strange layout issues. We need to ask for the widget's sizeHint for the close and float buttons. Task-number: 241577 Reviewed-by: ogoffart
| * Doc - removed a trailing whitespaceKavindra Devi Palaraja2009-03-251-1/+1
| | | | | | | | | | Task-number: None Reviewed-by: TrustMe
| * Doc - removed mention of an internal function. Also gave theKavindra Devi Palaraja2009-03-251-973/+918
| | | | | | | | | | | | | | | | QApplication class and the QSessionManager class a documentation overhaul. Task-number: 249220 Reviewed-by: TrustMe
| * Fix assertion failure in QCompleter::setCompletionPrefix().jasplin2009-03-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | Calling setCompletionPrefix() on a QCompleter from a slot connected to the editingFinished() signal of the corresponding QLineEdit could in some cases alter the internal state of the completer in such a way that an assertion would fail. The fix prevents the asserting code from being called in this particular state. Reviewed-by: janarve Task-number: 246056