D28774: [KFontRequester] Port from QFontDialog to KFontChooserDialog

Ahmad Samir noreply at phabricator.kde.org
Mon Apr 13 14:04:40 BST 2020


ahmadsamir added inline comments.

INLINE COMMENTS

> ahmadsamir wrote in kfontrequester.cpp:188
> Plus we can't end up with a non-valid QFont, the dialog is filled from QFontDataBase; so unless the user went and uninstalled the font while the dialog was open, it should be OK. Also, font substitution will take care of a font-gone-MIA (I am sure of that on Linux, and most likely other OS's have similar solutions).
> 
> I was curious so I looked at QColorDialog::getColor() and it looks like they changed it (or you meant getRgba?).

And yes, it's not obvious that m_selFont is modified, I had to go read the API docs KFontChooser multiple times... but I got used to it.

REPOSITORY
  R236 KWidgetsAddons

REVISION DETAIL
  https://phabricator.kde.org/D28774

To: ahmadsamir, #frameworks, dfaure, cfeck
Cc: kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200413/e6304e38/attachment.html>


More information about the Kde-frameworks-devel mailing list