Commit Graph

353 Commits

Author SHA1 Message Date
Atul R
9946dfa568
Fixes constructor types (#634) 2020-07-15 06:35:31 +02:00
swittk
92b7a9b798
Fixes QTableWidget.setHorizontalHeaderItem crash (#633)
Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-07-14 20:51:53 +02:00
swittk
5c62cdcc8a
Implemented QDrag Class (#626)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

* adding dropaction

* fix typos

* Added more functions to QPainterPath

* Added more functions to QPainterPath

* Fixed multiple typos

* Fixed multiple typos

* Got QPainterPath additions working.

* Modified QPainterPath to use qreal instead

* Added QPointF, added a few missing methods to QPoint

* Added QRectF

* implemented QRectF

* Added acceptDrops and setAcceptDrops to QWidget, will be useful for addon implementation of Drag and Drop

* Added more methods to QUrl

* Added QMimeData, additional methods to QUrl, and Dropping should now be supported

* refactored

* Fixed more merge conflicts

* Is this my final merge conflict??

* All merge conflicts resolved

* All merge conflicts resolved

* Adds guide for drag and drop

* lint fix

* added preliminary stuff, will need to tweak to make compilable..

* Compile passed, let's see if it works...

* QDrag added, working

* pause a bit, QDrag causes delayed error of 'QPaintDevice: Cannot destroy paint device that is being painted'

* Revert "Implemented QDrag class"

* Disabled problematic functions

* pulling from origin

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
Co-authored-by: Atul R <atulanand94@gmail.com>
2020-07-04 19:58:40 +02:00
Atul R
ca792e2c7f
Adds high dpi scaling (#616) 2020-06-28 17:31:55 +02:00
Shubham Zanwar
c54826de6a
feat: adding ordering and next sibling method to flex layout (#615)
* feat: adding methods to get the child index and next child

* feat: ordering children properly in insert before
2020-06-28 14:01:05 +02:00
swittk
3cb3424250
Added QMimeData, additional methods to QUrl, and Dropping should now be supported (#614)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

* adding dropaction

* fix typos

* Added more functions to QPainterPath

* Added more functions to QPainterPath

* Fixed multiple typos

* Fixed multiple typos

* Got QPainterPath additions working.

* Modified QPainterPath to use qreal instead

* Added QPointF, added a few missing methods to QPoint

* Added QRectF

* implemented QRectF

* Added acceptDrops and setAcceptDrops to QWidget, will be useful for addon implementation of Drag and Drop

* Added more methods to QUrl

* Added QMimeData, additional methods to QUrl, and Dropping should now be supported

* refactored

* Fixed more merge conflicts

* Is this my final merge conflict??

* All merge conflicts resolved

* All merge conflicts resolved

* Adds guide for drag and drop

* lint fix

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
Co-authored-by: Atul R <atulanand94@gmail.com>
2020-06-27 17:35:31 +02:00
Atul R
f4d656d8ef lint and update docs 2020-06-26 17:05:02 +02:00
swittk
3fadf33113
Added setAcceptDrops, acceptDrops to QWidget for creating drag-drop extensions (#613)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

* adding dropaction

* fix typos

* Added more functions to QPainterPath

* Added more functions to QPainterPath

* Fixed multiple typos

* Fixed multiple typos

* Got QPainterPath additions working.

* Modified QPainterPath to use qreal instead

* Added QPointF, added a few missing methods to QPoint

* Added QRectF

* implemented QRectF

* Added acceptDrops and setAcceptDrops to QWidget, will be useful for addon implementation of Drag and Drop

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-06-26 16:53:43 +02:00
swittk
b0570fcdc5
Added Support For QTabletEvent and QNativeGestureEvents (#611)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-06-22 14:47:05 +02:00
swittk
2b74e3cd77
Added Support for QWheelEvent (#609)
* Added QWheelEvent

* removed x y

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-06-22 09:24:20 +02:00
Atul R
cb5cab493e lint fix 2020-06-09 19:43:42 +02:00
Atul R
558086655f updates docs and bump version 2020-06-09 19:37:29 +02:00
Adam Gastineau
4ea054084c
Implemented QGridLayout property accessors (#598)
* Implemented QGridLayout property accessors

* Remove unnecessary demo code

* Minor formatting changes
2020-06-09 16:15:02 +02:00
Akiva Levy
ad134527d4
Fix missing include of cstdint in yoga event.h (#593)
This is a short-term fix until [PR #1009][1] is approved and merged into
Yoga. Once merged, the latest version of Yoga may be included, as this
will be no longer necessary. The effects of this issue can be seen in
NodeGUI's [issue 591][2].

[1]: https://github.com/facebook/yoga/pull/1009
[2]: https://github.com/nodegui/nodegui/issues/591
2020-06-05 08:05:22 +02:00
Adam Gastineau
cab30f4822
Added support for setRow/ColumnCount (#578) 2020-05-25 16:08:28 +02:00
流君酱
fa7ddaa531
added support for QWidget::maximumSize && QWidget::minimumSize (#574) 2020-05-22 16:49:38 +02:00
Atul R
1bd0a5ca10
Upgrade deps (#562)
* upgrade qode

* 0.20.0

* dep updates

* formatting and fix exports

* fix type rename
2020-05-13 09:15:46 +02:00
Stephen A
b4c8cf61e7
add QPainterPath and additional QPainter functions (#552) 2020-05-12 09:43:32 +02:00
Mihkel
17239ae5cf
added support for QWidget::removeAction #548 (#549) 2020-05-08 08:40:00 +02:00
Singha360
5f2bc51bbc
Added method to set column width to QTreeWidget (#523)
* Fixed slight error in dependencies installation command (Ubuntu)

* Implemented setColumnWidth method for QTreeWidget

* Added an example of using setColumnWidth method

* Fixed doc error for setColumnWidth method.
2020-04-19 10:07:40 +02:00
mspencer92
e8c97e1938
Added fromString functions to QDate, QTime, and QDateTime (#518)
Added fromString functions to QDate, QTime, and QDateTime and added a demo on how to show and sort QDate and QTime in a QTreeWidget.
2020-04-14 19:16:02 +02:00
feng8848
527a18a1e5
fix issue #503 (#519)
* fix issue #481

* fix lint

* Add QTextEdit and QTextBrowser

* Add QGraphicsBlurEffect

* Add QGraphicsDropShadowEffect

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-04-14 19:10:34 +02:00
Atul R
e0cddc9a7b bring back event loop activator 2020-04-13 23:34:58 +02:00
Solant
300925260e
Set cursor (#505)
* implemented QCursor setter for QWidget::setCursor method

* sorted includes, removed console.log statement from tests
2020-04-13 10:18:30 +02:00
Solant
0043c50f32
Fixed return type of QMouseEvent.button() method (#500) 2020-04-11 15:02:06 +02:00
feng8848
e1906ff533
Add QTextEdit and QTextBrowser (#495)
* fix issue #481

* fix lint

* Add QTextEdit and QTextBrowser

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-04-06 19:30:12 +02:00
mspencer92
7836aadd71
Fix bug in QDialog (#485)
QDialog should return DialogCode either Rejected or Accepted.
2020-04-05 10:05:35 +02:00
feng8848
44e64b007b
fix issue #481 (#483)
Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-04-01 11:54:38 +02:00
feng8848
e09333c948
fix issue #473 (#475)
* fix issue #473

* fix ts lint

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-30 20:05:27 +02:00
mspencer92
117be556cf
Update QTreeWidget (#474)
* Update QTreeWidget

Fixed a bug with QTreeWidget::currentItem() crashing when nothing is selected and added QTreeWidget::takeTopLevelItem() and QTreeWidget::clear()

* Fix garbage collection

* Fix garbage collection
2020-03-30 20:03:24 +02:00
Atul R
4d4589a1b8 fix mouse typo 2020-03-28 23:14:50 +01:00
Atul R
7b8a3b8088
Update docs 14 (#470)
* Adds docs for handling events

* updates docs to latest version

* adds more text

* fixes docs

* upgrade yarn lock
2020-03-28 20:46:26 +01:00
feng8848
0ec2b3f2cb
Export more class (#469)
* Add QDoubleSpinBox

* Add QBrush

* Add QListView and improve QListWidget

* Add QErrorMessage

* Add QFontDialog

* Add QProgressDialog

* Add QLCDNumber

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-28 18:15:23 +01:00
feng8848
5e241f43b0
Add QBrush (#468)
* Add QDoubleSpinBox

* Add QBrush

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-27 17:24:25 +01:00
mspencer92
6bc7f12746
Added QStandardModel (#467)
* Added QStandardModel

* Update demo.ts
2020-03-25 22:06:53 +01:00
Atul R
e283488256 cleanup eslint fixes 2020-03-24 20:39:24 +01:00
Atul R
c499645797 cleanup memory for scrollarea
Adds basic format
2020-03-24 20:35:29 +01:00
mspencer92
e0dad876ec
Added more functions for QTreeWidget and QTreeWidgetItem and added a function to sort and filter QTreeWidget (#465) 2020-03-24 20:31:50 +01:00
feng8848
cf4e221fdf
Add QDoubleSpinBox (#463)
Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-24 20:15:57 +01:00
Shubham Zanwar
3b53e8b69d
tabs: adding insertTab function to insert tabs at a given index (#462)
* add cpp method to insert tab at a given index

* add ts method to insert tab at given index

* add insert tab demo

* fixing lint issues in cpp code

* fix: passing the native widgets to insertTab
2020-03-23 13:34:41 +01:00
feng8848
d80d27a10c
Add QColorDialog (#455)
* fix issue #439

* Add QTabBar

* Add QColorDialog

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-22 10:49:21 +01:00
mspencer92
38b8c9536d
Added QTreeWidget functions (#452)
https://github.com/nodegui/nodegui/issues/231#issuecomment-601390056
2020-03-20 09:43:54 +01:00
feng8848
d7060f3256
Add QTabBar (#451)
* fix issue #439

* Add QTabBar

Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-17 08:25:54 +01:00
Atul R
50f43d955a
adds memoization and perf fixes (#450)
* adds memoization and perf fixes

* 0.16.1
2020-03-17 00:17:15 +01:00
nilchu
c57a6048cf
Fix example in documentation (#447) 2020-03-16 11:12:54 +01:00
Atul R
863e72a256 Fix docs website 2020-03-15 12:35:48 +01:00
Atul R
22b28f8cd4
Adds pixmap support to clipboard (#445)
* adds pixmap setters and getters to qclipboard

* upgrade deps

* Adds  inlinestylesheet fix on objectname test
2020-03-14 19:29:26 +01:00
Atul R
86b8dd966e Adds repolish for setObjectName 2020-03-13 21:39:59 +01:00
Atul R
65da42e1f3 stylesheet performance fix 2020-03-13 20:38:04 +01:00
feng8848
2359ca8838
fix issue #439 (#440)
Co-authored-by: wuxiaofeng <wuxiaofeng@erayt.com>
2020-03-12 16:21:56 +01:00