Simon Edwards
88b2fcbcd1
Treat args to QPainter.translate(), scale(), and rotate() as doubles, not ints
...
issue #887
2021-11-03 21:21:58 +01:00
Andreas Kröhnke
47c00fabc1
Add QBrush as an argument to QPainter.setBrush
2021-10-14 20:15:03 +02:00
Simon Edwards
c4d9a93e56
Add many TODO comments, methods, and signals to QComboBox
2021-09-29 21:48:56 +02:00
Simon Edwards
c91856641c
Fix QPen being completely broken
2021-09-24 20:21:36 +02:00
Simon Edwards
96b3cbe594
Add more QPainter methods
2021-09-23 20:52:23 +02:00
Simon Edwards
bd6b127358
Add QSizeF and QFontMetricsF
2021-09-20 21:45:14 +02:00
Simon Edwards
328dcea8c8
Remove some dead code in qstyle_wrap.cpp
2021-09-18 10:43:25 +02:00
Simon Edwards
590385339c
Add QStyle.polish(), QStyle.unpolish(), and QWidget.style()
2021-09-13 19:50:53 +02:00
Simon Edwards
a4a961666a
Fill in QFontMetrics methods
2021-09-07 22:46:27 +02:00
Simon Edwards
01096abede
Fill in the QHeaderView methods
2021-09-02 21:33:09 +02:00
Simon Edwards
8110982412
Format C++ code
2021-09-02 19:15:51 +02:00
Nathanael Anderson
4429959fed
Fix QWidgetTableItem Wrapper
2021-09-02 19:10:35 +02:00
Simon Edwards
87af1db2bc
Fix up QHeaderView failing on the default nodejs MS compiler
2021-08-31 18:30:31 +02:00
Simon Edwards
c3c597df4d
Add QStyleFactory and bits to set the app style
2021-08-28 10:58:40 +02:00
Simon Edwards
edf437f056
Fill in QAbstractItemView methods & enums; add QItemSelectionModel
2021-08-26 22:13:35 +02:00
Simon Edwards
55217146ae
More methods for QAbstractItemModel
2021-08-22 09:48:17 +02:00
Simon Edwards
053fc9dc65
Add (basic) QHeaderView; Support wrappers on plain Qt widgets
2021-08-22 09:48:17 +02:00
Simon Edwards
c209fe2adc
Format cpp code
2021-08-22 09:48:17 +02:00
Simon Edwards
f7a4a4d3d1
Add QAbstractItemModel.buddy() support
2021-08-22 09:48:17 +02:00
Simon Edwards
e81b5ae658
Implement QAbstractItemModel.setData() and 5th tutorial example
2021-08-22 09:48:17 +02:00
Simon Edwards
b5a9f30d34
Add the changing data model view example
2021-08-22 09:48:17 +02:00
Simon Edwards
25026a55f7
Add 2nd model view tutorial app
2021-08-22 09:48:17 +02:00
Simon Edwards
9eed41ecd8
Add bold support to QFont
2021-08-22 09:48:17 +02:00
Simon Edwards
25e0d61e01
Add basic QAbstractItemModel and QAbstractTableModel
2021-08-22 09:48:17 +02:00
Simon Edwards
a577689cd4
Add QFontDatabase.applicationFontFamilies()
2021-08-08 20:45:41 +02:00
Simon Edwards
d3f6d6d092
Implement QGridLayout.addLayout()
2021-08-04 20:31:33 +02:00
Simon Edwards
880a8433cb
Add QApplication.setStyleSheet()
2021-07-30 09:34:15 +02:00
Simon Edwards
f319a24ad3
Add QColor.rgb() and QColor.rgba()
2021-07-30 09:34:15 +02:00
Simon Edwards
17462abae7
Add a (basic) QPalette
2021-07-30 09:34:15 +02:00
Simon Edwards
2901d09d01
Extra methodsfor QPainter, string lists in QVariant, and default args for QClipboard ( #858 )
...
* Add string list support to `QVariant`
* Add more methods to `QPainter`
* Give the `QClipboard` methods default params to match C++ API
* Code style fix for `nutils.cpp`
2021-07-16 21:14:16 +02:00
Simon Edwards
d04364a186
Add QInputEvent methods ( #853 )
2021-07-11 12:33:17 +02:00
Simon Edwards
4eebad6f5f
Add way for JS to stop event processing in QObject::event() ( #850 )
...
This adds a couple small methods on `QObject` which makes it possible for
JS code to indicate to the currently running `QObject::event()` override
method whether it should allow more processing of an event or to stop
processing and not call super class `event()` method. This is Qt recommended
(C++) way of overriding event behaviour and stopping default behaviour.
2021-07-10 20:49:43 +02:00
Simon Edwards
1bc346d22c
Add QEvent methods to all subclasses + some random methods ( #848 )
...
* Add `clearFocus()` to `QWidget`
* Add `Alignment` param to `QBoxLayout.addWidget()`
* Add `setViewportMargins()` & `viewportMargins()` to `QScrollArea`
* Add `QEvent` methods to all event related subclasses
* Tell C++ that our 0 is zero and not a null pointer
2021-07-08 22:45:41 +02:00
Simon Edwards
f4e0ca1677
More random methods and events ( #847 )
...
* Add `maximumViewportSize()`, `setHorizontalScrollBar()` & `setVerticalScrollBar()` to `QAbstractScrollArea`
* Log any JS exceptions thrown during Qt event dispatch
* Add `setData()` & `data()` to `QAction`
* Add `clear()` to `QMenu`
* Add `triggered` event support to `QMenu`
* Code style fixes
* Add `focusWindowChanged` event to `QApplication`
* Add `isActiveWindow()` to `QWidget`
2021-07-04 12:55:41 +02:00
Simon Edwards
2b26ea4ddd
Extra font and painter related methods and classes ( #845 )
...
* Add `QPaintEvent`
* Add `setStyleName()` to `QFont`
* Add `isFixedPitch()` and `styles()` to `QFontDatabase`
* Add `drawImage()` to `QPainter`
* Add `setFocusPolicy()` to `QWidget`
2021-06-26 18:37:53 +02:00
Simon Edwards
a59274c371
Extra drawing related methods ( #844 )
...
* Add `setPixelSize()` & `pixelSize()` to `QFont`
* Add `xHeight()` to `QFontMetrics`
* Export `QImageFormat`
* Add `drawArc()`, `setFont()`, `setTransform()`, & `fillRect()` to `QPainter`
* Improve `QPainter.setTransform()` docs
2021-06-19 11:34:40 +02:00
Simon Edwards
953b553089
Add extra QMouseEvent and QPainter methods ( #837 )
...
* Add `buttons()` to `QMouseEvent`
* Add `beginNativePainting()` and `endNativePainting()` to `QPainter`
2021-06-12 17:51:42 +02:00
Steven Koch
69e6d8d6e2
Add painter.drawPie method and fix painterPath.arcTo arguments ( #782 )
2021-03-07 21:31:30 +01:00
Atul R
8f7bde6e0a
scrollarea fix
2021-03-07 20:27:31 +01:00
Wyatt Kirby
3fe8f17f94
Fix incorrect behavior of minimum size for yoga layout ( #814 )
2021-02-25 22:43:45 +01:00
Maks
f13673bff1
Add QFontMetrics (issue #799 ) ( #803 )
2021-02-09 18:00:20 +01:00
Atul R
f1b9665c53
Fixes for ts v4 and lint fixes
2021-01-24 19:49:38 +01:00
4h7l
107b57849e
QImage support ( #789 )
...
* Add QImage to class list
* implement some methods and constructors
* ignore cmake-build-debug folder
* fix method name
* implement more methods
* Add static QPixmap.fromImage
* implement more methods
* implement other methods
* add API docs
2021-01-24 18:51:17 +01:00
Atul R
d9f035ef44
lint fix
2020-12-11 19:29:17 +05:30
Nathanael Anderson
65db04d3f9
Add most the missing QTableWidget properties and functions. ( #758 )
2020-12-11 19:22:51 +05:30
Nathanael Anderson
9b96a443ce
Add the missing QTableWidgetItem properties and functions. ( #756 )
2020-12-11 00:00:15 +05:30
Ranieri
8b6abd75f8
Add QDesktopWidget ( #738 )
...
* Add QDesktopWidget
* Add docs
2020-11-25 01:09:24 +05:30
Ruslan Garifullin
0b5ee00b58
Added QSvgWidget ( #710 )
...
* feat: added QSvgWidget
* docs: fix sidebars syntax
2020-10-18 16:37:52 +02:00
HENRIQUE DE SOUZA NERY
7bcbe2f01d
QTableWidget SelectedRanges function fix ( #663 )
...
Co-authored-by: Henrique Nery <hnery@automni.com.br>
2020-08-13 11:55:43 +02:00
Doug Barbieri
fc64e7af99
Add QIcon support to QTreeWidgetItem. ( #657 )
...
* Add QIcon support to QTreeWidgetItem.
Signed-off-by: R. Douglas Barbieri <doug@dooglio.net>
* Move to QTreeWidgetItem from QTableWidgetItem...
I made a mistake and added the icon support to `QTableWidgetItem`
instead of the tree widget.
* Ran prettier.
* Add small test for the widget and item.
* Added tree widget test to demo.
2020-08-12 16:03:29 +02:00