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

Deal with recent Qt methods deprecation #3801

Merged
merged 2 commits into from
Aug 28, 2019

Conversation

ctrlaltca
Copy link
Contributor

@ctrlaltca ctrlaltca commented Aug 22, 2019

  • Use std::sort, std::less instead of qSort/qLess
  • Use QFontMetrics::horizontalAdvance instead of ::width
  • Use qApp->primaryScreen() instead of QDesktopWidget
  • use lambas instead of QSignalMapper
  • Use QTreeWidgetItem::setForeground instead of ::setTextColor
  • Use QDir::setPath instead of operator=(QString)
  • Use QList::swapItemsAt instead of ::swap

 * Use std::sort, std::less instead of qSort/qLess
 * Use QFontMetrics::horizontalAdvance instead of ::width
 * Use qApp->primaryScreen() instead of QDesktopWidget
 * use lambas instead of QSignalMapper
 * Use QTreeWidgetItem::setForeground instead of ::setTextColor
 * Use QDir::setPath instead of operator=(QString)
 * Use QList::swapItemsAt instead of ::swap
Copy link
Member

@ZeldaZach ZeldaZach left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup!

@ZeldaZach ZeldaZach merged commit b6df5a4 into Cockatrice:master Aug 28, 2019
@ctrlaltca ctrlaltca deleted the deprecation_is_free branch March 26, 2020 16:43
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.

None yet

2 participants