| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a vulnerability in some implementations. Qt isn't affected
because... well, we never implemented the decoding of escape sequences
:-)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
QTemporaryFile on Windows doesn't open the file as a sharable, and
doens't close the file when you call .close(). So the testcase
fails on Windows with a Sharing Violation when the compiler tries
to compile the file.
By switching to QFile we can at least close the file before letting
the compiler chew on it, and remove it at the end when the testcase
is done. Open the file with Truncate, in case the testcase fails to
remove the file.
Reviewed-by: trustme
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On mac, we prefer testing with mp3 rather than ogg, Because in the latter
case, you must install perian to make it work. And the test machines
dont.
Reviewed-by: brad
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The test was failing because the goal of the test expect to get only
directories displayed. But if you don't have some in the current dir
then it fails. home dir should be enough.
Reviewed-by:TrustMe
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
previous version could run in an endless loop with infinite models.
Reviewed-by: olivier
|
| | |
| | |
| | |
| | |
| | | |
The QTabletWidget shows the informations provided by the last
QTabletEvent.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | | |
Reviewed-by: Leo
|
| | |
| | |
| | |
| | |
| | |
| | | |
We cannot create too many threads on Windows CE.
Reviewed-By: thartman
|
| | |
| | |
| | |
| | | |
Reviewed-by: Kim
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A lot of the JSC::ExecState functions rely on scopeChain() not
being 0. This means we shouldn't pop the scope chain if doing so
would make it empty; otherwise when you call e.g. pushScope() or
evaluate(), you will crash. So instead of popping the chain
completely, we now set the sole scope chain item's object pointer to
0 and add appropriate checks elsewhere.
A second issue, not solved in this commit, is that JSC expects
the Global Object to always be the last item in every scope
chain. If it's not, you will crash.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For arguments, we always need to skip the implicit 'this' argument
For line number, we walk thought the stack frames from the top to find
the one above the requested one, which contains the returnPC we need.
Also fixed a crash because QScriptContext::parentContext would have
returned a pointer with flags inside.
Reviewed-by: Kent Hansen
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Also fix some autotest failures, improve the descriptions of failures,
and make the tests run to completion.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In the JSC-based back-end, script-owned QObjects are not always
deleted immediately by the GC. I don't know what precisely
determines the deletion time yet. (Inserting a qDebug() before
evaluate("gc()") seems to fix it, though...)
|
| | |
| | |
| | |
| | |
| | | |
Added the properties to the activation object: __extension__,
__setupPackage__ and __postInit__.
|
| | |
| | |
| | |
| | |
| | | |
It's an internal function, and currently not implemented
in the JSC-based back-end.
|
| | |
| | |
| | |
| | |
| | | |
QScriptContext::backtrace() is implemented now (since commit
34511e1001471ed4041794640aefe508f50ad01c), so the tests work.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It doesn't work for overloaded methods yet (unless you just
happened to call the overload that's defined last in the source
file).
In the old back-end we stored the actual overload that was being
called in the QScriptContextPrivate. Since QScriptContext is a
JSC::ExecState now, we either have to add the information to
JSC::ExecState, or add some mapping scheme so we can go
determine the meta-index for a particular (ExecState, QtFunction)
pair.
Also in this commit: Marked expected failures, so the autotests
will run to completion.
|
| | |
| | |
| | |
| | |
| | | |
Look up the property as a normal JS property before falling back
to the dynamic query mechanism. This is the documented behavior.
|
| | |
| | |
| | |
| | |
| | | |
Doesn't pass the test yet, but at least it returns something that
might be useful on occasion.
|
| | |
| | |
| | |
| | |
| | | |
returnValue() and setReturnValue() are internal functions not
implemented in the JSC-based back-end.
|
| | |
| | |
| | |
| | |
| | | |
QScriptValue::scope() and QScriptValue::setScope() are internal
function that we don't implement fully in the JSC-based back-end.
|
| | |
| | |
| | |
| | | |
Missing parentheses in function expression (JSC requires them).
|
| | |
| | |
| | |
| | | |
Accept the presence of a JSON object.
|
| | |
| | |
| | |
| | |
| | | |
JSObject::getPropertyAttributes() does not follow the prototype
chain, so we have to do it.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
qtscript-jsc-backend
Conflicts:
src/script/api/qscriptable.cpp
src/script/api/qscriptable_p.h
src/script/qscriptclassdata.cpp
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The code block associated with QBENCHMARK_ONCE macro will only be executed once,
whether the backend returns a valid result or not. The "-iterations" command line
argument is also ignored.
This is useful for benchmarking code that has side effects.
Revby: jasplin
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The documentation implies that start restarts. Which it did, but only if the
timeline was finished _and_ the duration hadn't been changed meanwhile.
So after a setDuration(), start() would do nothing, which was unexpected.
Merge-request: 1145
Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | |
| | | |
| | | |
| | | | |
Task-number: 258459
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
If the current index is invalid, start would be (0,0) but would be
skiped
Task-number: 220195
Reviewed-by: thierry
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
... by prepending SRCDIR to the loaded files.
Reviewed-by: TrustMe
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
On windows mobile with native menubar integration the menubar is not
a child of the mainwindow
Reviewed-by: Joerg
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This extra check prevents a crash if plugin loading fails
Reviewed-by: Joerg
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Windows CE is sometimes a little bit slow
Reviewed-by: Joerg
|
| | | |
| | | |
| | | |
| | | | |
Reviewed-by: Joerg
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We cannot remove a file that's still opened.
Reviewed-by: ossi
|