summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change license headers from Nokia to Digia4.6Sergio Ahumada2013-03-12126-2359/+2348
| | | | | Change-Id: I3e7c5fc0ad9fba12d791930fab0f1e115a2a379a Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Take const QString& to setException instead of QString.Mike Arthur2010-03-193-3/+3
| | | | | Merge-request: 1853 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Add support for throwing exceptions through the bindings to allow compilationMike Arthur2010-03-1911-5/+63
| | | | | | | of code that already uses exceptions. Merge-request: 1853 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix empty if/else generation bug.Mike Arthur2010-03-191-1/+1
| | | | | Merge-request: 1854 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* rename .qs files to .jsKent Hansen2009-11-2617-1/+1
| | | | No need to use our file extension; it's JavaScript code.
* Update licensing informationKent Hansen2009-11-26127-1958/+5119
| | | | Trolltech ASA is no more, long live Qt by Nokia!
* Add bindings for QDate, QDateTime and QRegExpKent Hansen2009-11-252-6/+13
| | | | | | Since Date and RegExp are actually ECMA-compliant in 4.6, we should now generate bindings for the corresponding Qt classes, so that those may be used when you want Qt semantics.
* Update 4.6 bindings based on Eskil's QtJambi tree.Kent Hansen2009-11-2524-2036/+3274
|
* Work with some stricter compilersKent Hansen2009-11-243-0/+5
|
* Support global namespace enums and automatically include enum header file.Mike Arthur2009-10-303-18/+51
| | | | | Merge-request: 1714 Reviewed-by: Kent Hansen <khansen@trolltech.com>
* Add support for no-argument functions in the format "returnType function(void)".Mike Arthur2009-09-291-0/+7
| | | | | Merge-request: 1531 Reviewed-by: Kent Hansen <khansen@trolltech.com>
* remove references to QStateMachine::rootState in exampleKent Hansen2009-08-261-2/+2
| | | | rootState is no more, the machine is the root.
* fix compiler warningKent Hansen2009-08-071-3/+3
|
* fix compiler warningKent Hansen2009-08-071-1/+1
| | | | | */* is slightly ambigious for the compiler, and depends on the preceding code. MSVC warns about it.
* make Calendar and Screenshot examples work againKent Hansen2009-07-132-9/+9
| | | | | the qscript connect() function throws an error when attempting to connect to an overloaded signal, so we need to disambiguate.
* Merge branch 'master' into 46Kent Hansen2009-07-091-2/+2
|\
| * fix issue introduced by 04e49d162b15d7a32d4e5837e5f5ef284ea226baKent Hansen2009-07-091-2/+2
| | | | | | | | | | The shellimplgenerator was not updated to pass in the correct path. This caused linker errors.
* | Merge branch 'master' into 46Kent Hansen2009-07-034-8/+9
|\|
| * give init.cpp files unique namesKent Hansen2009-07-034-8/+9
| | | | | | | | | | | | Prefix by the package name, e.g. com_trolltech_qt_core_init.cpp. This way qmake doesn't get confused if you include multiple .pri files in the same project.
* | Two-way button state machine example ported to QtScriptKent Hansen2009-06-041-0/+21
| |
* | Merge branch 'master' into 4.6Kent Hansen2009-06-042-2/+1
|\|
| * add bindings for QGraphicsSceneDragDropEventKent Hansen2009-06-042-2/+1
| | | | | | | | Hey, seems to compile now.
* | add basic example of using animation+statesKent Hansen2009-06-031-0/+55
| |
* | fix typesystem bugKent Hansen2009-06-033-5/+5
| | | | | | | | QEasingCurve is a value type.
* | Merge branch 'master' into 4.6Kent Hansen2009-06-032-1/+4
|\|
| * support #warning directiveKent Hansen2009-06-032-1/+4
| | | | | | | | Avoid heaps of warnings.
* | change ownership of the C++ objectKent Hansen2009-06-032-0/+24
| | | | | | | | The cheap way for now.
* | add new enumKent Hansen2009-06-032-0/+4
| |
* | add bindings for animation and state machine classes (new in 4.6)Kent Hansen2009-06-035-0/+140
| |
* | really avoid infinite recursionKent Hansen2009-06-031-2/+5
|/ | | | Follow-up to http://code.google.com/p/qtscriptgenerator/issues/detail?id=8
* Fixes: add build_all.txt and qtscript_masterinclude.h to resourcesKent Hansen2009-03-262-2/+4
|
* Fixes: separate bindings init function from plugin classKent Hansen2009-03-1913-218/+236
| | | | | Details: makes it easy to statically compile the bindings into an application without requiring a plugin; just include the generated .pri file in your .pro file, then call e.g. qtscript_initialize_com_trolltech_qt_gui_bindings()
* Fixes: warn when the bindings can't be loadedKent Hansen2009-02-201-11/+35
|
* Fixes: move QTextCodecPlugin binding from gui to coreKent Hansen2009-02-046-7/+9
| | | | Details: it's a bug in Jambi's typesystem, but we can still fix it
* Fixes: use QScriptValue::isNumber() to check for shorts and floatsKent Hansen2009-02-021-0/+6
| | | | | | | Task: http://code.google.com/p/qtscriptgenerator/issues/detail?id=29 Details: the generic conversion will check if the meta-type ID is that of short or float, which it's not going to be because all numbers are doubles when stored in a QScriptValue.
* Fixes: add bindings for QDrag and QDropEventKent Hansen2009-01-272-3/+1
|
* Fixes: make sure plugins get the 'd' suffix if appropriate (debug version)Kent Hansen2009-01-081-0/+1
|
* Fixes: make phonon bindings compile when the generator is used with qt 4.5Kent Hansen2009-01-053-2/+52
|
* Fixes: make sure that function parameters are not hiddenKent Hansen2008-12-233-23/+23
| | | | Task: http://code.google.com/p/qtscriptgenerator/issues/detail?id=21
* Fixes: make sure pointers are validKent Hansen2008-12-231-5/+7
| | | | Task: http://code.google.com/p/qtscriptgenerator/issues/detail?id=18
* Fixes: add bindings for QAbstractTableModelKent Hansen2008-12-235-16/+15
| | | | Task: http://code.google.com/p/qtscriptgenerator/issues/detail?id=16
* Fixes: kill the QPainter(QPaintDevice*) constructorKent Hansen2008-12-232-0/+2
| | | | | | | Details: this one is provided as a convenience in C++, but in QtScript you'll just end up forgetting to call end() on the painter (very typical error, I still make it myself!). So now you have to call begin(), which makes it balanced.
* Fixes: make QImage.prototype.save(fileName) workKent Hansen2008-12-232-20/+0
|
* Fixes: integrate the qtscript debugger into the script runnerKent Hansen2008-12-172-1/+12
| | | | | Details: the debugger will pop up if there is an uncaught exception, or if the debugger keyword is encountered
* Fixes: generate bindings for QAbstractItemModel and friendsKent Hansen2008-11-112-5/+4
|
* Fixes: get the number of actual warnings down to 0Kent Hansen2008-11-0621-83/+173
| | | | | | Details: no more noise when running the generator. Many of the warnings were Jambi-specific, many were just plain annoying. Yet others were valid and have now been fixed.
* Fixes: add bindings for QItemSelectionModel and QItemSelectionRangeKent Hansen2008-11-052-3/+1
| | | | | | Task: none, reported on qtscript-bindings mailing list Details: the classes were excluded because they didn't compile at some point; well, they seem to compile just fine now. :-)
* Fixes: avoid infinite recursion when calling QProgressBar.showKent Hansen2008-11-051-2/+10
| | | | | | | | | | | | | | Task: http://code.google.com/p/qtscriptgenerator/issues/detail?id=8 Details: The situation occurs when the virtual function QProgressBar::text() is called from C++. As usual, the binding will try to look up a property with the corresponding name ("text") in the script object. "text" is also the name of a Qt (C++) property, so it will be resolved through the dynamic QObject binding, which will call the C++ getter again, and so on and so on... This submit fixes the problem by having the binding add a "_qs_" prefix when doing the script property lookup; so if a script wanted to reimplement the text() function, it would have to store it in a property named _qs_text. Probably not optimal, but at least it fixes the recursion while still allowing you to reimplement the function. It might or might not become the official (i.e. documented) way of doing it, at some point.
* Fixes: possible memory leakKent Hansen2008-11-051-2/+4
| | | | Task: http://code.google.com/p/qtscriptgenerator/issues/detail?id=15
* Fixes: overload resolution for functions with QVariant argumentsKent Hansen2008-10-101-0/+2
| | | | | Details: checking for isVariant() is useless; what we want to do is just skip the test for the QVariant argument, since it effectively means "any value is accepted"