Skip to content

Fix deprecated code#1008

Open
gargan26 wants to merge 1 commit intoleozide:masterfrom
gargan26:qt6.10
Open

Fix deprecated code#1008
gargan26 wants to merge 1 commit intoleozide:masterfrom
gargan26:qt6.10

Conversation

@gargan26
Copy link
Copy Markdown

@gargan26 gargan26 commented Jan 7, 2026

Moved all deprecated code into #if...#endif QT_VERSION_CHECK blocks.

  • Qt 6.7:

    • QCheckBox: stateChanged() -> checkStateChanged()
  • Qt 6.3:

    • QCryptographicHash: addData(const char *data, qsizetype length) -> addData(QByteArrayView bytes)
  • Qt 6.0:

    • QDropEvent: pos() -> position() keyboardModifiers() -> modifiers()

    • QKeyCombination (new)

    • QKeySequence: int operator[] -> QKeyCombination operator[]

    • QMouseEvent: x() -> position().x() y() -> position().y()

Moved all deprecated code into #if...#endif QT_VERSION_CHECK blocks.

* Qt 6.7:
  - QCheckBox:
    stateChanged() -> checkStateChanged()

* Qt 6.3:
  - QCryptographicHash:
    addData(const char *data, qsizetype length) -> addData(QByteArrayView bytes)

* Qt 6.0:
  - QDropEvent:
    pos() -> position()
    keyboardModifiers() -> modifiers()

  - QKeyCombination (new)

  - QKeySequence:
    int operator[] -> QKeyCombination operator[]

  - QMouseEvent:
    x() -> position().x()
    y() -> position().y()
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.

1 participant