summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'qt/master'Jason Barron2009-08-133286-6252/+10841
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: examples/opengl/samplebuffers/glwidget.cpp src/corelib/io/qfsfileengine_unix.cpp src/corelib/kernel/qobject.cpp src/corelib/tools/qsharedpointer.cpp src/gui/gui.pro tests/auto/qhttp/tst_qhttp.cpp tests/auto/qkeyevent/tst_qkeyevent.cpp
| * Fixes proper quoting under odbc.Bill King2009-08-131-11/+5
| | | | | | | | | | | | | | Query the database for the quoting charachter, don't assume you know what it is. Reviewed-by: Justin McPherson
| * Ugly round corners when no border is drawnGabriel de Dietrich2009-08-122-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When specifying round corners with QStyleSheetStyle and no border-width specified, the round corners were not rendered with antialiasing. Furthermore, if border-width was set to 0, part of the border was rendered in discordance with CSS3. The background in now rendered directly instead of drawing a clipped rectangle. The actual border width is checked before rendering. A test has been added at tests/auto/uiloader/baseline/css_borderradius_allwidgets.ui Task-number: 230362 Reviewed-by: olivier
| * oops: fix an issue when going backward and there is only 1 key value setThierry Bastian2009-08-121-4/+11
| |
| * extern the Qt helper functions with Q_CORE_EXPORTHarald Fernengel2009-08-121-2/+2
| | | | | | | | | | | | | | | | | | The q* helper functions are declared as Q_CORE_EXPORT, so they have to be extern'd like that as well. This fixes a problem where adding a resource to a project would result in undefined symbols on some RVCT versions. Reviewed-by: Andy Shaw <andy.shaw@nokia.com>
| * Make QPropertyAnimation symetric wrt directionThierry Bastian2009-08-122-39/+39
| | | | | | | | | | | | It is now possible to set a start value and no end value and starting the animation will pick the default end value from the current value of the property that's being animated.
| * fixing warnings for qreal=floatThomas Hartmann2009-08-121-1/+1
| | | | | | | | Reviewed-by: Joerg
| * QGraphicsRotation and QGraphicsRotation3D are now merged into 1 classThierry Bastian2009-08-122-119/+94
| | | | | | | | | | | | | | | | You can now also set the axis following hte Qt::Axis enum Note: I'm not 100% sure about the maths in QGraphicsRotation::applyTo Feel free to fix it. Reviewed-by: ogoffart
| * Mouse move events delivered toa blocked widget.Prasanth Ullattil2009-08-121-1/+1
| | | | | | | | | | | | | | | | On windows we were not checking whether the widgets receiving the mouse events are blocked by another modal widget or not. Task-number: 255912 Reviewed-by: Thierry Bastian
| * fix decoration of DontShowOnScreen widgets on Windows CEJoerg Bornemann2009-08-121-1/+1
| | | | | | | | | | | | | | | | Widgets with the WA_DontShowOnScreen attribute must not have a window decoration. Autotest: tst_QWidget::initialPosForDontShowOnScreenWidgets Reviewed-by: thartman
| * Add the typedefs to QSharedPointer and QWeakPointer to make templateThiago Macieira2009-08-121-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usage simpler. For example, this allows writing code like: template <class Pointer> typename Pointer::pointer getPointer(constPointer &p) { return p.data(); } and that code will work for both QSharedPointer and QWeakPointer. Reviewed-by: Harald Fernengel Also add an operator- to make pointer operations possible.
| * Autotest: make sure we can't create QWeakPointer from a QObject in destruction.Thiago Macieira2009-08-121-0/+2
| | | | | | | | This test only works in debug mode
| * Doc: explain the use of QWeakPointer for tracking QObjectsThiago Macieira2009-08-122-14/+98
| | | | | | | | | | | | | | Explain the difference to QPointer and why QWeakPointer should be used instead. Reviewed-by: Trust Me
| * Possible Dead lock in the destructor of QObjectThierry Bastian2009-08-123-13/+11
| | | | | | | | | | | | | | | | | | | | | | The problem was that we were locking a mutex that was global to thread to remove posted events associated with a QObject from the posted event list. We were also immediately deleting those events. If that triggers the deletion of another QObject, you would then trigger a dead-lock. Task-number: 259514 Reviewed-by: brad Reviewed-by: ogoffart
| * Phonon: On windows, cross fading was brokenThierry Bastian2009-08-121-1/+2
| |
| * usage of Q_OS_WINCE fixedJoerg Bornemann2009-08-121-2/+2
| | | | | | | | | | | | There's no QT_OS_WINCE define. Reviewed-by: mauricek
| * Replace "Trolltech" with more appropriate terms.Jason McDonald2009-08-125-5/+4
| | | | | | | | Reviewed-by: Trust Me
| * Compile fix for Windows CE standard SDKThomas Hartmann2009-08-122-6/+8
| | | | | | | | | | | | Q_WS_SINCE_WM ifdefs were broken Reviewed-by: Joerg
| * Update obsolete email addresses.Jason McDonald2009-08-12326-572/+572
| | | | | | | | Reviewed-by: Trust Me
| * Replace some mentions of Trolltech with more appropriate terms.Jason McDonald2009-08-1217-27/+27
| | | | | | | | Reviewed-by: Trust Me
| * Update obsolete URL's in code and docs.Jason McDonald2009-08-121-1/+1
| | | | | | | | Reviewed-by: Trust Me
| * Update references to online documentation.Jason McDonald2009-08-124-4/+4
| | | | | | | | Reviewed-by: Trust Me
| * Eliminate last mentions of "Qt Software".Jason McDonald2009-08-1261-61/+61
| | | | | | | | Reviewed-by: Trust Me
| * Update URL's to use new domain.Jason McDonald2009-08-1212-31/+29
| | | | | | | | Reviewed-by: Trust Me
| * Update contact URL in license headers.Jason McDonald2009-08-123274-3280/+3280
| | | | | | | | Reviewed-by: Trust Me
| * 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-113-3/+5
| | | | | | | | | | | | | | | | | | 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
| * code clean-up and style fixesRitt Konstantin2009-08-116-37/+25
| | | | | | | | | | | | | | | | | | remove unused includes; tabs -> whitespaces; clean extra whitespaces Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * merge nativeAbsoluteFilePath and nativeAbsoluteFilePathCoreRitt Konstantin2009-08-111-11/+5
| | | | | | | | | | Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * optimize inlines in QFSFileEngineRitt Konstantin2009-08-112-7/+7
| | | | | | | | | | | | | | | | un-inline isDirPath() since it too large for this (reduce size of QtCore binary in a few kilobytes) Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * minor optimizationsRitt Konstantin2009-08-111-10/+3
| | | | | | | | | | | | | | | | -in most cases GetFullPathName returns string with at least path.size() chars; -". " isn't valid path; ". " isn't valid path too...should we to pay more? Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * optimize longFileName() a bitRitt Konstantin2009-08-111-5/+6
| | | | | | | | | | | | | | | | | | | | isUncPath() is always called with native separator-ed paths, so we can avoid needless comparisons; don't declare isUncPath() under CE since it never used Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * don't mix link's target's permissions with link's Exe*Perm bitsRitt Konstantin2009-08-111-1/+2
| | | | | | | | | | Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * don't mix calculated and forced permission bitsRitt Konstantin2009-08-111-14/+14
| | | | | | | | | | | | | | this commit just moves closing bracket to the function end Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * move dubbed code into static funtionRitt Konstantin2009-08-111-4/+10
| | | | | | | | | | Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * QFSFileEngine must set LocalDiskFlag regardless file exists or notRitt Konstantin2009-08-111-2/+3
| | | | | | | | | | | | | | | | LocalDiskFlag actually means "Local File Engine" and can be effectively used for testing file path for target storage type (local/network/virtual and so on) Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * '.' and '..' must not be hiddenRitt Konstantin2009-08-112-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _unix code always sets HiddenFlag for special dirs which is wrong; also there is some inconsistence under win: * FindFirstFile sets FILE_ATTRIBUTE_HIDDEN flag for ".." of hidden dir *even* if parent dir is not hidden; * GetFileAttributes sets FILE_ATTRIBUTE_HIDDEN flag for ".." *only* if parent dir is hidden. so, _win part sets HiddenFlag wrong too; finally, we never test parent dir's flags; futhermore hidden special dirs (dotAndDotDot) makes dir iterator's filtering a bit more complex Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * avoid crash when testing HiddenFlag and BaseName is emptyRitt Konstantin2009-08-111-1/+2
| | | | | | | | | | Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * avoid needless const_cast-sRitt Konstantin2009-08-111-9/+10
| | | | | | | | | | | | | | | | tried_stat, could_stat, need_lstat, and is_link are members marked as mutable; prefer mutable over const_cast Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * replace QFile::exists() by QT_STAT() respectivelyRitt Konstantin2009-08-111-3/+7
| | | | | | | | | | | | | | which is a bit faster since it doesn't creates new file engine instance Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * micro-optimization in QFSFileEngine::mkdirRitt Konstantin2009-08-111-3/+3
| | | | | | | | | | Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * don't set FileType flag when link's target doesn't existsRitt Konstantin2009-08-111-3/+4
| | | | | | | | | | Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * QFSFileEngine::mkdir fix on WindowsRitt Konstantin2009-08-111-2/+6
| | | | | | | | | | | | | | | | | | This function now returns early if a non-directory is met in the path. Something like /foo/bar/&&/ will bail out early. Merge-request: 1176 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
| * 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
| * QPoint comparision operators use qFuzzyIsNull instead of qFuzzyCompareJoerg Bornemann2009-08-111-2/+2
| | | | | | | | | | | | | | | | qFuzzyCompare doesn't support 0 as parameter. So this function is pretty useless for QPoint, where coordinates can be zero. Reviewed-by: Harald Fernengel
| * fix warnings for the qreal == float caseJoerg Bornemann2009-08-112-11/+11
| | | | | | | | Reviewed-by: mauricek