Commit Graph

324 Commits

Author SHA1 Message Date
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
Atul R
c742712f6f
Qwidget wrap fix (#433)
* skip setting up miniqt if customQt is on

* adds opengl context

* adds NodeWidgetWrap

* changed the mode of qode.js to make it executable

* 0.15.3
2020-03-08 16:47:56 +01:00
Atul R
86c3ef089c
Integration with Qode 2.0 (#400)
* Moves qt integration solely to the nodegui core addon

* Adds lint fixes

* moved to integration core

* cleans up export snippet

* revert package.json

* Add exit if app->exec finishes.

* lint fix

* Makes QApplication custom

* adds qobject to wrap of qapp

* Adds working qt run looper

* Adds font default

* Adds qt installer

* Updates qode integration to v2.0.1

* fix cpp lints

* Fixes lint and deps

* Adds miniqt installation

* adds setup mini qt script

* skips tests due to issues with jest

* fix config and download path for linux and windows

* Adds multiple artifact downloader

* fix qt config and compilation

* Fixes qode path for windows (now it can load dll's easily)

* Add compilation

* fix windows path setup

* use scripts directly

* enabled tests back

* fix ubuntu deps

* update to alpha release

* fix workflow

* adds more artifacts and funding field

* change to alpha v2

* update prebuild yml

* revert build action

* disabling prebuild for now

* switch to stable release 5.14.1

* version bump
2020-03-07 10:28:30 +01:00
Atul R
07d70e6321
Add more tabwidgets methods (#422)
* add qtabwidget indexOf

* Adds setTabIcon
2020-02-27 01:06:34 +01:00
Shubham Zanwar
57cf0d4836
improv: adding the ability to change the tab text (#421)
* adding the setTabText to the QTabWidgetWrap definition

* implementing the setTabText funciton in the cpp module

* implementing the setTabText in the ts module

* adding a demo for the tab text change feature

* fixing lint issues

* exporting the QSettings enums
2020-02-25 09:36:58 +01:00
feng8848
9e1e8e576c
Add QFrame and other improvements (#420) 2020-02-25 08:50:53 +01:00
Shubham Zanwar
5415fa3576
improv: return the index of the last added tab (#405)
* widgets(tabs): return the index of the last added tab

* widgets(tabs): returning the index of the newly added tab

* demo: using the tab component in the demo to verify

* lint: fixing lint
2020-02-20 08:32:44 +01:00
feng8848
cf7d241b51
Add QTableView support (#406)
* Add QTableView support

* Fix template to move public expanded methods to private

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-02-20 07:53:31 +01:00
feng8848
ab6c28166e
Add QPicture and other improvements (#399) 2020-02-17 20:45:57 +01:00
Solant
07ac11c6ab
Qsettings (#401)
* initial qsettings implementation

* fix qsettings object constructor initialization

* added sync method

* added setValue method

* implemented value method

* pass actual app name and org name

* accept any value that can be converted to QVariant in setValue method

* implemented value method with proper QVariant wrap

* added tests

* removed testing data, fixed warning

* fixed cpp linting
2020-02-17 20:44:29 +01:00
feng8848
c47f788094
Add QScrollBar and other improvements (#383)
* Add QScrollBar and other improvements

* Add Windows plugin export

* Fixes QDateEdit and QTimeEdit.

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-02-07 20:22:49 +01:00
Solant
c97efce5f6
implemented QFontDatabase families method (#392)
* implemented QFontDatabase families method

* fixed linting
2020-02-07 19:20:05 +01:00
Atul R
ba088d441a
Adds Qinputdialog (#381)
* wip

* Adds qinputdialog

* fix lint

* revert package.json
2020-01-30 23:05:29 +01:00
Atul R
e6c2eb4380
wrapWithUvloop waker (#380) 2020-01-28 20:21:06 +01:00
Atul R
0f4f0c5567
fixes qmovie breaking on error. (#370)
Adds default error handler for all event listeners
2020-01-27 20:43:52 +01:00
Atul R
626045549f
Fix/windows addon lib (#369)
* Adds libs and exp to windows addon building

* fixes refex on windows prebuilt

* 0.13.1
2020-01-25 21:52:15 +01:00
Atul R
a84bc69a26
Adds prebuilt binary builder setup (#366)
* Prebuilt setup (#3)

* Adds prebuild

* Adds prebuild

* fix branch name

* adds prebuild upload

* fix windows build and performance bump for prebuild

* remove pre-release

* adds updated

* edited

* test

* move to all platforms

* change to master

* change to release event

* install qode explicitly

* Adds npm skip build flag

* Adds build triggers

* Repo dispatchs

* change to all events

* Update prebuild.yml

* test

* fix prevuild

* test

* test

* change to master release

* change to nodegui

* change the master tag check

* adds conditional before overwriting NAPI_VERSION
2020-01-24 19:11:01 +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
Atul R
7dcc329cf8
Adds plugin support for windows platform (#364)
* updates cmake file for windows plugin support

* basic exports

* minor export fixes

* rename macro

* rename export macro

* fixes build error on windows

* cleanup cmakelist

* updated headers
2020-01-22 21:15:30 +01:00
robertkruis
50c55e090e QStatusBar support. Fixes #346 (#349)
* Add QStatusBar

* Add QStatusBar signals/events

* Lint fixes
2020-01-18 11:51:45 +01:00
feng8848
8d5b3ca476 Add QSlider and other improvements (#348) 2020-01-12 23:05:33 +05:30
robertkruis
3a8f405e2d Further enhancements on the QTreeWidget and QTreeWidgetItem (#340)
* Extend QTreeWidget implementation

* Added more QTreeWidget and QTreeWidgetItem APIs

Supports itemClicked and itemChanged events and several APIs to be able to edit columns of the QTreeWidgetItem

* Incorporate suggested changes

* Implemented all QTreeWidget signals

* fix currentItem

* lint fix

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-01-11 12:29:46 +05:30
Atul R
a0522ccce3
Fixes spacing and doc generation (#343) 2020-01-10 12:11:00 +05:30
blncd2020
a8796c9c60 Additional documentation and code examples (#339)
* additional documentation and code examples

* Update QTabWidget.ts

* Update QTableWidget.ts

* Update QTableWidgetItem.ts

* Update QTreeWidget.ts

* Update QTreeWidgetItem.ts

* Update QTreeWidget.ts

* Fixup doc comments

* fix nodedialog

* fix abstract class docs

* lint fix

* Adds QFileDialog

* Adds QGroupBox

* Adds qmessagebox, qpainter and qgroupbox

* adds link to advanced qpainter example

* Adds qtablewidget qstackedwidget and qtoolbutton

* Adds Qtreewidget docs

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-01-10 11:10:25 +05:30
mspencer92
6b92bc5676 Add QButtonGroup (#336)
* Added QButtonGroup

* Update

* Update

* Update demo.ts

* Updates

Changed buttonClicked for QButtonGroup to return the id of the button and updated the demo.

* Update QButtonGroup.ts

* Format main.cpp

* Fixes button qgroups

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-01-08 21:18:27 +05:30
feng8848
5d6806fe7d Add DateTime related Class (#332) 2020-01-06 20:06:37 +05:30
slidinghotdog
1ed3172f9e add setFont() and font() to QWidget and font() to QAction (#327)
* add setFont() and font() to QWidget and font() to QAction

* fix QAction constructor weight type

* Fix for native element constructor QFont

Co-authored-by: Atul R <atulanand94@gmail.com>
2020-01-05 20:01:50 +05:30
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
feng8848
f409eeb7b0 Add QListWidget Support (#320) 2019-12-31 20:42:01 +05:30
slidinghotdog
9fada0e168 Move QColor from QtCore to QtGui (#311)
* Change QColor from QtCore to QtGui

* lint
2019-12-29 10:41:43 +05:30