Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy/paste behaviour #61

Merged
merged 11 commits into from
Jan 27, 2023
Merged

Add copy/paste behaviour #61

merged 11 commits into from
Jan 27, 2023

Conversation

davidfokkema
Copy link
Owner

Working on #19.

@davidfokkema davidfokkema linked an issue Jan 27, 2023 that may be closed by this pull request
@davidfokkema davidfokkema added enhancement New feature or request high priority Should be fixed as soon as possible labels Jan 27, 2023
@davidfokkema
Copy link
Owner Author

Works mostly now. Data can be copied and pasted in Tailor, and also from and to Numbers and Excel. However, reordered columns break everything. If the columns are not in the correct order anymore, data can't be read from and to the model directly. Maybe this should be as expected. The underlying storage in a dataframe should be private.

@davidfokkema
Copy link
Owner Author

I was not accessing underlying private data, but using the Qt-provided data() and setData() methods. Still no dice.

This should solve a major headache resulting from the fact that Qt specifies indexes and column numbers into the underlying data, but the UI may have an entirely different idea of how columns are ordered.
@davidfokkema
Copy link
Owner Author

Yes! I finally managed to always move the data and keep the visual columns in logical order. But now the UI will always scroll back to the most-left column, or so it seems. Damn, Qt.

@davidfokkema davidfokkema merged commit bb758da into main Jan 27, 2023
@davidfokkema davidfokkema changed the title Add copypaste behaviour Add copy/paste behaviour Jan 27, 2023
@davidfokkema davidfokkema deleted the 19-add-copypaste-behaviour branch May 10, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority Should be fixed as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add copy/paste behaviour
1 participant