| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
For the QFontMetrics test, the different way of computing the with of a
text returs different value (1 to 2 pixel difference).
So we need to make sure to use the same way to compute the with that the
one used to ellide.
|
|
|
|
|
| |
On embedded, the size of the screen is too small to leave enough space
for the dock widgets.
|
|
|
|
|
|
|
|
|
|
| |
The QTestLib XML output system throws exceptions when the system is
out of memory, which is normally quite reasonable. However when it is
used to report warnings during a catch block, this terminates the
program. So this change temporarily disables allocation failures while
the warning is being recorded.
Reviewed-by: Jason Barron
|
|
|
|
| |
Reviewed-by: Jeremy Katz
|
|
|
|
|
| |
It's acceptable for the exceptionthrow test to output:
terminate called after throwing an instance of `int'
|
| |
|
|
|
|
| |
Reviewed-by: thartman
|
|
|
|
| |
Reviewed-by: thartman
|
|
|
|
| |
Reviewed-by: thartman
|
|
|
|
| |
Reviewed-by: thartman
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QFontMetrics::boundingRect() that takes a string needs to account for
the right bearing of the last glyph, as it is documented to be the
rectangle that contains the pixels of the text. I've added a test for
this, and fixed tst_QFontMetrics::elidedText() to use boundingRect() to
find the actual width of the text drawn (width() will return the advance
of the text, which is larger than the actual width of the pixels.)
I've also fixed a small typo in the "len" -> "ilen".
Reviewed-by: Simon Hausmann
|
|
|
|
|
|
|
|
| |
Removes dangling subFocusItem pointers when changing focus after
reparenting. This change also includes a mini-optimization when adding
focusable items to an inactive scene.
Reviewed-by: brad
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change ensures that only active scenes can have active input
focus items. If you try to set input focus on items that are in an
inactive scene, these items will gain input focus only when the scene
is activated.
For scenes attached to a view, this change should only fix the bug that
you could have a blinking line edit in a scene when the view is inactive,
meaning you couldn't type into the line edit.
For scenes that have no view, you now must activate the scene in order
to give the items active input focus. This will affect those who use
QGraphicsScene with custom key and focus handling.
Reviewed-by: brad
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change partially reverts f68fed388dcdba6ab6dad3af4933bcd3aa123cf8,
which was an attempt at getting FocusRealms working. Turns out this
approach is wrong. The flag behaves badly when reparenting, and the
feature conflicts with plain old setting focus.
Discussed with Aaron; this change was already reverted in the
kinetic-declarativeui branch.
Reviewed-by: TrustMe
|
|
|
|
|
|
| |
Currently the QScriptEngineDebugger uses far too much memory.
Until task 261062 is resolved, we skip these test cases.
Discussed with Kent.
|
|
|
|
|
|
|
|
| |
It fails on some platforms because of a bug in the autotest.
There might be more platforms also, but these are the ones
that currently report the problem.
Reviewed-by: paul
|
|
|
|
| |
This test would crash once in while.
|
|
|
|
| |
Reviewed-by: Olivier
|
|\ |
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
The resource compiler still generates files that don't have the LPGL header.
|
|
|
|
|
|
|
|
| |
beginthread() is not reliable when the new thread exits fast. So we are
changing this to use _beginthreadex() instead.
Reviewed-by: Trond
Reviewed-by: Bradley T. Hughes
|
|
|
|
| |
The resource compiler still generates files that don't have the LPGL header.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is one actual bug fix, checking for null pointer return.
The exception safety test code now initialises the fonts system.
The S60 fonts system does not survive OOM testing
without this.
Otherwise some duplicate tests are removed and code tidied up.
Reviewed-by: Liang Qi
Reviewed-by: Harald Fernengel
Reviewed-by: Alessandro Portale
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Give it another spin through the event loop, to make sure that all
the painting gets done. (This is not connected to the glib timer
event test failure.)
|
| | |
|
|/
|
|
| |
Reviewed-by: Janne Koskinen
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Reviewed-by: Trust Me
|
| |\
| | |
| | |
| | |
| | |
| | | |
Conflicts:
tests/auto/network-settings.h
tests/auto/qpainter/tst_qpainter.cpp
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We need to floor instead of round to prevent rectangles that are on the
edge from being shifted one pixel down / right.
Task-number: 258776
Reviewed-by: Kim
|
| | |
| | |
| | |
| | | |
Reviewed-by: Jesper
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Have QWindowsPipeWriter emit a bytesWritten signal and have
QLocalSocket connect this to its own bytesWritten signal.
This change contains an autotest to check for the signal emission.
Previously there was no implementation to emit the signal.
|
| | |
| | |
| | |
| | | |
Reviewed-by: thartman
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The refactoring of current++ and src++ out of the new line makes the
code easier to understand but it also seems to be significant at least
in the ::isComplex case. I suspect that the ordering increment
operations vs throw from new is not well defined, or not implemented as
you might hope (with the ++ happening very last).
The changes in the catch blocks mean that it deletes the created
objects, rather than trying with the first failed object.
The test code has been updated with a +=(Container) test, and to force
testing of both static and moveable types.
Reviewed-by: Harald Fernengel
|
| | | |
|
| | |
| | |
| | |
| | | |
This reverts commit 69e5a3fce4d355822367dc1a17179a364111632e.
|
| | |
| | |
| | |
| | | |
Reviewed-by: TrustMe
|
| | |
| | |
| | |
| | | |
Reviewed-by: trustme
|
| |\ \ |
|
| | | | |
|
| |\ \ \
| | |/ / |
|