Skip to content

FIX: Re fix/add QTableWidget features#1044

Merged
sedwards2009 merged 2 commits intonodegui:masterfrom
NathanaelA:reAddTableFeatures
Mar 3, 2024
Merged

FIX: Re fix/add QTableWidget features#1044
sedwards2009 merged 2 commits intonodegui:masterfrom
NathanaelA:reAddTableFeatures

Conversation

@NathanaelA
Copy link
Copy Markdown
Contributor

Apparently several months back in PR #1018 - many things were accidentally broken in the QTableWidget class.

  • Somehow the get/set rowCount/columnCount was removed.
  • Also broke about 15 older QTableWidge calls because they weren't registered in the init.

This PR fixes these issues so that the QTableWidget functions properly again..

InstanceMethod("columnCount", &QTableWidgetWrap::columnCount),
InstanceMethod("rowCount", &QTableWidgetWrap::rowCount),
InstanceMethod("setColumnCount", &QTableWidgetWrap::setColumnCount),
InstanceMethod("setRowCount", &QTableWidgetWrap::setRowCount),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we have a whole bunch of code in there which just was never hooked up to the nodejs wrapper?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I added the 4 actual missing functions that everything got somehow removed, and then re-wired the 15 or so missing InstanceMethod that should have been tied to code that still existed in both the C/H & TS files -- but somehow lost the InstanceMethods. So that code was failing from the TS/JS side since they weren't actually wired up...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should probably also mention the existing code still works and was originally from one of my prior PR's. It was hooked up before the refactoring, as I've been using several of those functions with QT 5. I finally upgraded the library to the current version and found all the broken issues.

My program seems to now be working again with the changes I've made into this PR.

@sedwards2009 sedwards2009 merged commit 3c1b84e into nodegui:master Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants