Copy KFontDialog from KDELibs4Support to KWidgetAddons, now KFontChooserDialog

Authored by ahmadsamir on Mar 17 2020, 8:14 PM.

Description

Copy KFontDialog from KDELibs4Support to KWidgetAddons, now KFontChooserDialog

Summary:

  • Drop relative size bits, seems not that useful or widely used
  • Use a KFontDialogPrivate class instead of KFontDialog::Private (see: https://mail.kde.org/pipermail/kde-frameworks-devel/2015-August/025956.html)
  • Port to QDialog
  • Drop the fontList parameter in the ctor, it's not useful, 99% of the times users of this class called the static getFont() methods
  • Make the parent QWidget * the last param. in the ctor, a la Qt API
  • Update the screenshot of the font dialog

See https://phabricator.kde.org/D27808 for more details.

Test Plan: it builds and kfontchooserdialog works (see test app)

Reviewers: Frameworks, davidedmundson, cfeck, broulik, ervin, meven, bport, dfaure

Reviewed By: meven, dfaure

Subscribers: kde-frameworks-devel

Tags: Frameworks

Maniphest Tasks: T12760

Differential Revision: https://phabricator.kde.org/D28122