Commit Graph

36 Commits

Author SHA1 Message Date
Simon Edwards
9f9e61289b More QWidget methods and properties 2021-12-26 18:53:49 +01:00
Simon Edwards
94ce790891 Apply code formatting 2021-12-11 15:31:43 +01:00
Simon Edwards
1ab7d13b96 Add QWidget.setFixedHeight(), QWidget.setFixedWidth(), and QWidget.sizeHint() 2021-12-11 15:31:43 +01:00
Simon Edwards
47b3d514bb Add QWidget.setParent() 2021-12-11 15:31:43 +01:00
Simon Edwards
0e33e39759
Remove most unneeded or buggy Napi:HandleScope uses (#895) 2021-12-03 19:02:06 +01:00
Simon Edwards
f7f86d5cfa Pass env to WrapperCache::get() 2021-10-31 17:02:43 +01:00
Simon Edwards
2b2d2a65b2 Make the wrapper cache generic. Apply it to QWindow and QScreen 2021-10-31 09:32:37 +01:00
Simon Edwards
8ce6dde45b Add QScreen and QWindow, remove the deprecated QDesktopWidget 2021-10-22 22:15:59 +02:00
Simon Edwards
8ddc4172cd Add more QWidget methods 2021-10-16 16:43:24 +02:00
Simon Edwards
590385339c Add QStyle.polish(), QStyle.unpolish(), and QWidget.style() 2021-09-13 19:50:53 +02:00
Simon Edwards
44bb1e5f0e QWidget: Add TODO comments, setSizePolicy(), set max/min width/height methods 2021-09-11 12:14: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
Ruslan Garifullin
979989e166
Added setFocus to QWidget (nodegui#661) (#669) 2020-08-17 23:47:18 +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
流君酱
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
Mihkel
17239ae5cf
added support for QWidget::removeAction #548 (#549) 2020-05-08 08:40:00 +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
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
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
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
gluaxspeed
34d32a1e74 Improving Menu Bars (#347)
* menu and menubar changes so far

* attempting to add a simpler way to create menubars

* menu and menubar changes so far

* attempting to add a simpler way to create menubars

* attempting to add a simpler way to create menubars

* rebased from master

* rebased from master

* Move qaction creation to qwidget macro

* removed addMenuWithName

* exec, and popup working

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-01-22 22:06:12 +01:00
mspencer92
fd270c18ac Added QMessageBox (#326)
* Added QMessageBox

* Adds Qdialog

* Fixes inheritance and adds pointer based event listener

* Cleans up Qmessagebox so that we create all buttons

* change to abstract button

* fix rawData fetching from the template

* formatting fixes

* change to Objectwrap for better type casting

* Adds Native element part in qpushbutton

* Adds NapiExternal check and use ptr for initialization

* Adds all button classes

* fix c

* fix merge conflicts

* lint fix

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-01-05 15:53:49 +05:30
Atul R
42e92ecbff
Adds Signals inheritance (#288)
* Inherit signals

* export signals

* Fix Qvariant build

* Adds Abstract button signals

* added more test cases
2019-12-20 23:48:53 +05:30
Atul R
8793f172e3
Cleanup and bump version (#285)
* Cleans up and bumps version

* Change to npm blacklist

* geometry now returns QRect
2019-12-19 23:10:32 +05:30
feng8848
6c92f02edd Add QToolButton Mainly (#265) 2019-12-15 21:19:01 +05:30
Maksim Karelov
9cb47c7d8a Add stack-related methods to QWidget (#262)
- `activateWindow`
- `raise`
- `lower`
2019-12-12 14:27:21 +05:30
Atul R
edcdbb510e
Adds dynamic content support for flex layout. (#199)
* layout performance fix

* adjust size, webdefaults

* Add flexlayout owner to the context

* revert

* reorders setlayout and setflexnode

* add defaults

* fix mainwindow rootNode

* properties to methods

* Adds defaultsAdds flexutils  measurewidget

* introduce configure for all types of nodes.

* lint fix

* Revams flexlayout to handle dynamic content

* Adds dynamic layout support for flex layout.

* lint fix

* fix few code updates
2019-11-18 00:52:29 +01:00
Atul R
e3667c0bbd
Adds QSize and few more test cases for pixmap, qsize and qvariant (#194)
* Adds qsize, qvariant adn qpixmap testcases

* lint
2019-11-11 22:51:15 +01:00
Atul R
95cdcb37be
Adds QObject exports (#184)
* Adds QObject wrapper

* disable source map in the dist since its of no use

* rename to nodeobject

* Adds qobject setProperty and auto conversion of napi to qvariant (mvp version)

* fix

* moved qobject methods to qobject from qwidget

* added qobject test cases
2019-11-10 01:04:37 +01:00
Atul R
bd65329641
Adds linters, code formatters for both js and c++ and adds prepush hook (#178) 2019-11-08 19:30:01 +01:00
Atul R
36329a44b3
Experimental menu and tests (#139)
* Adds basic tests for window and label

* Adds few test cases for QWidget

* Adds working tests setup

* Adds inital code for menus
2019-10-07 19:24:17 +02:00
Sebastián Gurin
4d617c9321 inherits (#125) 2019-09-30 21:33:30 +02:00
Atul R
a287d9ca59 separates include headers and implementation 2019-09-21 22:53:25 +02:00