[bt-devel] Eliminate KFontChooser from Configuration Dialog

Martin Gruner mg.pub at gmx.net
Tue Nov 11 13:30:06 MST 2008


Hi Gary,

your changes look great.

I noticed that when I change the settings for a font, it seems to be applied 
immediately and remembered, even if I click "cancel". That sould only happen 
with "Ok" or "Apply".

God bless,

mg

On Monday 10 November 2008 04:03:22 Gary Holmlund wrote:
> I have changed the Configure dialog under the Language tab. The purpose
> was to remove the KDE KFontChooser and use only Qt. The part I changed
> is in the dialog below the "Use Custom Font" checkbox. I have written a
> new class, CFontChooser.
>
> In writing the new class I had to render text in a web view. I initially
> used QWebView to do this, however out of the numerous fonts three of
> them did not render the same as KHTML in the main windows. These fonts
> were "It wasn't me", Monospace, and Serif. I then put KHTML classes into
> the CFontChooser which makes all the fonts preview the same as they will
> be in the main windows.
>
> I put the following  into  cfontchooser.h
> #define USE_KHTML
> //#define USE_QWEBKIT
>
> This allows choosing KDE or QT for the font rendering in the
> CFontChooser. This will make it easy do eliminate KDE from this class
> when we eventually eliminate it in the main window. You can enable both
> of these at the same time and see exactally what looks different between
> them. KDE rendered text will show up above the Qt rendered text.
>
> Gary
>
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel




More information about the bt-devel mailing list